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

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

Pact.swf

This is the info page for
Flash #211238

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


ActionScript [AS1/AS2]
Combined Code
movieClip 5 { } movieClip 6 room_exit { } movieClip 19 { frame 1 { gotoAndStop(Math.ceil(Math.random() * 10)); } } movieClip 26 room { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } instance of movieClip 5 { } } movieClip 33 player_location { } movieClip 36 { } movieClip 37 { } movieClip 39 { } movieClip 41 { frame 1 { stop(); } } movieClip 44 { } movieClip 45 { } movieClip 48 { } movieClip 51 { frame 1 { stop(); } } movieClip 52 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 54 Newgrounds API Classes { #initclip Object.registerClass('Newgrounds API Classes', com.newgrounds.shims.APIShim); #endinitclip } movieClip 94 { } movieClip 97 { } movieClip 102 { } movieClip 106 { } movieClip 107 { } movieClip 108 { } movieClip 109 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 110 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 109 FlashAd { onClipEvent (construct) { apiId = ''; showBorder = true; adType = 'Video'; } } instance loader of movieClip 52 Preloader { onClipEvent (construct) { autoPlay = false; mainClass = ''; } } } frame 1 { stop(); } // unknown tag 88 length 73 instance of movieClip 110 APIConnector { onClipEvent (construct) { apiId = '34803:S5jxHBQ8'; encryptionKey = 'U10UOQDX0sjhCm4DOew3FJ4nCz3AjRL8'; debugMode = 'Simulate Logged-in User'; movieVersion = ''; connectorType = 'Flash Ad + Preloader'; redirectOnNewVersion = true; redirectOnHostBlocked = true; adType = 'Video'; } } // unknown tag 88 length 72 movieClip 116 { } instance of movieClip 116 { onClipEvent (load) { globalsound = new Sound(); keyListener = new Object(); keyListener.onKeyDown = function () { if (Key.isDown(32)) { if (_parent.muted == true) { globalsound.setVolume(100); _parent.muted = false; } else { globalsound.setVolume(0); _parent.muted = true; } } }; Key.addListener(keyListener); } } // unknown tag 88 length 78 movieClip 120 { frame 30 { } } instance menu hider of movieClip 120 { onClipEvent (load) { Stage.showMenu = false; _root._focusrect = false; TextField.prototype.tabEnabled = false; Button.prototype.tabEnabled = TextField.prototype.tabEnabled; MovieClip.prototype.tabEnabled = TextField.prototype.tabEnabled; ASSetPropFlags(MovieClip.prototype, ['tabEnabled'], 1); ASSetPropFlags(Button.prototype, ['tabEnabled'], 1); ASSetPropFlags(TextField.prototype, ['tabEnabled'], 1); } } movieClip 62 __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 56 __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 55 __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 57 __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 60 __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 66 __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 61 __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 58 __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 77 __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 74 __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 75 __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 73 __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 71 __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 72 __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 67 __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 76 __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 68 __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 70 __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 59 __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 78 __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 1178 __Packages.Map { #initclip if (!_global.Map) { var v1 = function (layoutRaw, attributes) { var v6 = ((layoutRaw.join('')).split(' ')).join(''); this.layout = v6.split(''); if (this.layout.length != this.width * this.height) { throw new Error('Your map must be exactly ' + this.width + 'x' + this.height + '.'); } for (var v5 in attributes) { this[v5] = attributes[v5]; } if (!_root.savefile.data.visible[this.id]) { _root.savefile.data.visible[this.id] = new Array(Math.ceil(this.width * this.height / 32)); var v3 = 0; v3 = 0; while (v3 < _root.savefile.data.visible[this.id].length) { _root.savefile.data.visible[this.id][v3] = 0; ++v3; } } this.stopped = false; }; _global.Map = v1; var v2 = v1.prototype; v2.start = function () { trace('STARTING MAP ' + this.title); if (!this.frame) { throw new Error('Please set a frame on the map.'); } this.frame.zoneName.text = this.title; this.frame.zoneDesc.text = this.desc; this.roomClips = new Array(); var v3; var v4; var v5; var v7; v4 = 0; while (v4 < this.height) { v3 = 0; while (v3 < this.width) { v5 = 1; var v6 = this.getTile(v3, v4); if (this.getVisibility(v3, v4)) { if (v6 == '.' || this.isEvent(v6)) { v5 = 2; } else { if (this.isExit(v6)) { v5 = 3; } } } else { v5 = 4; } v7 = this.frame.attachMovie('room', 'roomTile_' + v3 + '_' + v4, this.frame.getNextHighestDepth(), {'_x': this.mapPaddingX + this.tileWidth * v3, '_y': this.mapPaddingY + this.tileHeight * v4}); v7.gotoAndStop(v5); this.roomClips.push(v7); ++v3; } ++v4; } this.locationIndicator = this.frame.attachMovie('player_location', 'player_location_instance', this.frame.getNextHighestDepth(), {'_x': this.mapPaddingX + this.tileWidth * _global.playerposition[0], '_y': this.mapPaddingY + this.tileHeight * _global.playerposition[1]}); this.revealSurroundings(); var self = this; this.keyListener = {'onKeyDown': function () { self.handleKeyDown(); }, 'onKeyUp': function () { self.handleKeyUp(); }}; Key.addListener(this.keyListener); this.mouseListener = {'onMouseDown': function () { self.handleMouseClick(); }}; Mouse.addListener(this.mouseListener); }; v2.tearDown = function () { var v2; this.locationIndicator.removeMovieClip(); v2 = 0; while (v2 < this.roomClips.length) { this.roomClips[v2].removeMovieClip(); ++v2; } clearTimeout(this.autoMoveTimeout); Key.removeListener(this.keyListener); Mouse.removeListener(this.mouseListener); this.stopped = true; }; v2.isExit = function (t) { return t.charCodeAt(0) >= '0'.charCodeAt(0) && t.charCodeAt(0) <= '9'.charCodeAt(0); }; v2.isEvent = function (t) { return this.events[t] != null; }; v2.exitToIndex = function (t) { return t.charCodeAt(0) - '0'.charCodeAt(0); }; v2.getTile = function (x, y) { return this.layout[this.coordToIndex(x, y)]; }; v2.coordToIndex = function (x, y) { return x + y * this.width; }; v2.getVisibility = function (x, y) { var v3 = this.coordToIndex(x, y); var v4 = Math.floor(v3 / 32); var v5 = v3 % 32; return (_root.savefile.data.visible[this.id][v4] & 1 << v5) != 0; }; v2.reveal = function (x, y) { var v3 = this.coordToIndex(x, y); var v5 = Math.floor(v3 / 32); var v6 = v3 % 32; _root.savefile.data.visible[this.id][v5] |= 1 << v6; _root.savefile.flush(); var v4 = this.getTile(x, y); if (v4 == '.' || this.isEvent(v4)) { this.roomClips[v3].gotoAndStop(2); } else { if (this.isExit(v4)) { this.roomClips[v3].gotoAndStop(3); } else { this.roomClips[v3].gotoAndStop(1); } } }; v2.revealSurroundings = function () { var v3; var v4; v4 = -1; while (v4 <= 1) { v3 = -1; while (v3 <= 1) { this.reveal(_global.playerposition[0] + v3, _global.playerposition[1] + v4); ++v3; } ++v4; } }; v2.markEventComplete = function (event) { var v3 = this.id + '.' + event; if (!_root.savefile.data.events) { _root.savefile.data.events = {}; } _root.savefile.data.events[v3] = true; _root.savefile.flush(); }; v2.isEventComplete = function (event) { var v3 = this.id + '.' + event; return _root.savefile.data.events != null && _root.savefile.data.events[v3]; }; v2.playerAttemptMove = function (x, y) { if (this.stopped) { return undefined; } var v6 = _global.playerposition[0] + x; var v5 = _global.playerposition[1] + y; var v4 = this.getTile(v6, v5); var self = this; if (v4 == '#') { return undefined; } this.locationIndicator._x = this.mapPaddingX + this.tileWidth * v6; this.locationIndicator._y = this.mapPaddingY + this.tileHeight * v5; _global.playerposition[0] = v6; _global.playerposition[1] = v5; this.revealSurroundings(); if (this.isExit(v4)) { var exit = this.exits[this.exitToIndex(v4)]; trace('EXIT -> ' + exit[0] + ' @ ' + exit[1] + ',' + exit[2]); _global.playerposition[0] = exit[1]; _global.playerposition[1] = exit[2]; this.stopped = true; setTimeout(function () { self.tearDown(); _root.gotoAndStop(exit[0]); }, 150); return undefined; } if (this.isEvent(v4) && !this.isEventComplete(v4)) { var event = this.events[v4]; trace('EVENT -> ' + event); this.markEventComplete(v4); this.stopped = true; setTimeout(function () { self.tearDown(); _root.gotoAndStop(event); }, 150); return undefined; } if (this.enemyGroups.length > 0 && Math.random() * 100 < this.fightChance) { var v7 = Math.floor(Math.random() * this.enemyGroups.length); trace('LET\'S FIGHT ' + this.enemyGroups[v7] + '(' + v7 + ')'); _global.EnemyGroup = this.enemyGroups[v7]; this.stopped = true; setTimeout(function () { self.tearDown(); _root.gotoAndStop('fight'); }, 150); } }; v2.handleMouseClick = function () { var v5 = Math.floor((_root._xmouse - this.mapPaddingX) / this.tileWidth); var v4 = Math.floor((_root._ymouse - this.mapPaddingY) / this.tileHeight); if (v5 >= 0 && v5 < this.width && v4 >= 0 && v4 < this.width) { if (this.getTile(v5, v4) != '#') { trace('LET\'S GO TO ' + v5 + ',' + v4 + ' from ' + _global.playerposition.join(',')); clearTimeout(this.autoMoveTimeout); this.findPath(_global.playerposition[0], _global.playerposition[1], v5, v4); this.stepPath(); } } }; v2.stepPath = function () { if (this.currentPath.length < 1 || this.stopped) { return undefined; } var v2 = this.currentPath.shift(); switch (v2) { case 1: this.playerAttemptMove(0, -1); break; case 2: this.playerAttemptMove(1, 0); break; case 3: this.playerAttemptMove(-1, 0); break; case 4: this.playerAttemptMove(0, 1); break; default: throw new Error('Oh god what'); } var self = this; this.autoMoveTimeout = setTimeout(function () { self.stepPath(); }, 100); }; v2.isPassable = function (x, y) { return this.getTile(x, y) != '#' && this.getVisibility(x, y); }; v2.findPath = function (originX, originY, targetX, targetY) { var v6; var v4 = []; var v3; var v2; var v5; var v10; var v9; var v8; var v7; this.pathfindingScratch = new Array(this.width * this.height); if (!this.isPassable(targetX, targetY)) { return undefined; } v4.push([targetX, targetY, 0, null]); while (v4.length > 0) { v6 = v4.shift(); v3 = v6[0]; v2 = v6[1]; v5 = v6[2]; v10 = v6[3]; v9 = this.coordToIndex(v3, v2); if (this.pathfindingScratch[v9] == undefined || this.pathfindingScratch[v9].dist > v5) { this.pathfindingScratch[v9] = {'dist': v5, 'direction': v10}; v8 = originX - v3; v7 = originY - v2; if (Math.abs(v7) > Math.abs(v8)) { if (v7 < 0) { if (this.isPassable(v3, v2 - 1)) { v4.push([v3, v2 - 1, v5 + 1, 4]); } if (v8 < 0) { if (this.isPassable(v3 - 1, v2)) { v4.push([v3 - 1, v2, v5 + 1, 2]); } if (this.isPassable(v3 + 1, v2)) { v4.push([v3 + 1, v2, v5 + 1, 3]); } } else { if (this.isPassable(v3 + 1, v2)) { v4.push([v3 + 1, v2, v5 + 1, 3]); } if (this.isPassable(v3 - 1, v2)) { v4.push([v3 - 1, v2, v5 + 1, 2]); } } if (this.isPassable(v3, v2 + 1)) { v4.push([v3, v2 + 1, v5 + 1, 1]); } } else { if (this.isPassable(v3, v2 + 1)) { v4.push([v3, v2 + 1, v5 + 1, 1]); } if (v8 < 0) { if (this.isPassable(v3 - 1, v2)) { v4.push([v3 - 1, v2, v5 + 1, 2]); } if (this.isPassable(v3 + 1, v2)) { v4.push([v3 + 1, v2, v5 + 1, 3]); } } else { if (this.isPassable(v3 + 1, v2)) { v4.push([v3 + 1, v2, v5 + 1, 3]); } if (this.isPassable(v3 - 1, v2)) { v4.push([v3 - 1, v2, v5 + 1, 2]); } } if (this.isPassable(v3, v2 - 1)) { v4.push([v3, v2 - 1, v5 + 1, 4]); } } } else { if (v8 < 0) { if (this.isPassable(v3 - 1, v2)) { v4.push([v3 - 1, v2, v5 + 1, 2]); } if (v7 < 0) { if (this.isPassable(v3, v2 - 1)) { v4.push([v3, v2 - 1, v5 + 1, 4]); } if (this.isPassable(v3, v2 + 1)) { v4.push([v3, v2 + 1, v5 + 1, 1]); } } else { if (this.isPassable(v3, v2 + 1)) { v4.push([v3, v2 + 1, v5 + 1, 1]); } if (this.isPassable(v3, v2 - 1)) { v4.push([v3, v2 - 1, v5 + 1, 4]); } } if (this.isPassable(v3 + 1, v2)) { v4.push([v3 + 1, v2, v5 + 1, 3]); } } else { if (this.isPassable(v3 + 1, v2)) { v4.push([v3 + 1, v2, v5 + 1, 3]); } if (v7 < 0) { if (this.isPassable(v3, v2 - 1)) { v4.push([v3, v2 - 1, v5 + 1, 4]); } if (this.isPassable(v3, v2 + 1)) { v4.push([v3, v2 + 1, v5 + 1, 1]); } } else { if (this.isPassable(v3, v2 + 1)) { v4.push([v3, v2 + 1, v5 + 1, 1]); } if (this.isPassable(v3, v2 - 1)) { v4.push([v3, v2 - 1, v5 + 1, 4]); } } if (this.isPassable(v3 - 1, v2)) { v4.push([v3 - 1, v2, v5 + 1, 2]); } } } } } if (this.pathfindingScratch[this.coordToIndex(originX, originY)] == undefined) { return undefined; } v3 = originX; v2 = originY; this.currentPath = []; for (;;) { if (!(v3 != targetX || v2 != targetY)) break; v6 = this.pathfindingScratch[this.coordToIndex(v3, v2)]; this.currentPath.push(v6.direction); switch (v6.direction) { case 1: --v2; break; case 2: ++v3; break; case 3: --v3; break; case 4: ++v2; break; default: throw new Error('Oh god pathfinding broke somehow.'); } } }; v2.handleKeyDown = function () { if (this.stopped) { return undefined; } switch (Key.getCode()) { case 37: this.playerAttemptMove(-1, 0); break; case 38: this.playerAttemptMove(0, -1); break; case 39: this.playerAttemptMove(1, 0); break; case 40: this.playerAttemptMove(0, 1); } }; v2.handleKeyUp = function () {}; v2.width = 10; v2.height = 10; v2.tileWidth = 39; v2.tileHeight = 39; v2.mapPaddingX = 7; v2.mapPaddingY = 7; ASSetPropFlags(_global.Map.prototype, null, 1); } #endinitclip } movieClip 1179 __Packages.com.greensock.core.Animation { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.core) { _global.com.greensock.core = new Object(); } if (!_global.com.greensock.core.Animation) { var v1 = function (duration, vars) { this.vars = vars || {}; this._totalDuration = duration || 0; this._duration = this._totalDuration; this._delay = Number(this.vars.delay) || 0; this._timeScale = 1; this._time = 0; this._totalTime = 0; this.data = this.vars.data; this._rawPrevTime = -1; this._paused = false; if (com.greensock.core.Animation._rootTimeline == null) { if (com.greensock.core.Animation._rootFrame === -1) { com.greensock.core.Animation._rootFrame = 0; com.greensock.core.Animation._rootFramesTimeline = new com.greensock.core.SimpleTimeline(); com.greensock.core.Animation._rootTimeline = new com.greensock.core.SimpleTimeline(); com.greensock.core.Animation._rootTimeline._startTime = getTimer() / 1000; com.greensock.core.Animation._rootFramesTimeline._startTime = 0; com.greensock.core.Animation._rootFramesTimeline._active = true; com.greensock.core.Animation._rootTimeline._active = com.greensock.core.Animation._rootFramesTimeline._active; com.greensock.core.Animation._addTickListener('tick', com.greensock.core.Animation._updateRoot, com.greensock.core.Animation); } else { return undefined; } } if (com.greensock.core.Animation.ticker.onEnterFrame !== com.greensock.core.Animation._tick) { com.greensock.core.Animation._jumpStart(_root); } var v3 = this.vars.useFrames ? com.greensock.core.Animation._rootFramesTimeline : com.greensock.core.Animation._rootTimeline; v3.add(this, v3._time); this._reversed = this.vars.reversed == true; if (this.vars.paused) { this.paused(true); } }; com.greensock.core.Animation = v1; var v2 = v1.prototype; v2.play = function (from, suppressEvents) { if (arguments.length) { this.seek(from, suppressEvents); } this.reversed(false); return this.paused(false); }; v2.pause = function (atTime, suppressEvents) { if (arguments.length) { this.seek(atTime, suppressEvents); } return this.paused(true); }; v2.resume = function (from, suppressEvents) { if (arguments.length) { this.seek(from, suppressEvents); } return this.paused(false); }; v2.seek = function (time, suppressEvents) { return this.totalTime(Number(time), suppressEvents != false); }; v2.restart = function (includeDelay, suppressEvents) { this.reversed(false); this.paused(false); if (!includeDelay) { return this.totalTime(0, suppressEvents != false, true); } return this.totalTime(-this._delay, suppressEvents != false, true); }; v2.reverse = function (from, suppressEvents) { if (arguments.length) { this.seek(from || this.totalDuration(), suppressEvents); } this.reversed(true); return this.paused(false); }; v2.render = function (time, suppressEvents, force) {}; v2.invalidate = function () { return this; }; v2._enabled = function (enabled, ignoreTimeline) { this._gc = !enabled; this._active = enabled && !this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration; if (ignoreTimeline != true) { if (enabled && this.timeline == null) { this._timeline.add(this, this._startTime - this._delay); return false; } if (!enabled && this.timeline != null) { this._timeline._remove(this, true); } } return false; }; v2._kill = function (vars, target) { return this._enabled(false, false); }; v2.kill = function (vars, target) { this._kill(vars, target); return this; }; v2._uncache = function (includeSelf) { var v2 = includeSelf ? this : this.timeline; while (v2) { v2._dirty = true; v2 = v2.timeline; } return this; }; v1._updateRoot = function () { ++com.greensock.core.Animation._rootFrame; com.greensock.core.Animation._rootTimeline.render((getTimer() / 1000 - com.greensock.core.Animation._rootTimeline._startTime) * com.greensock.core.Animation._rootTimeline._timeScale, false, false); com.greensock.core.Animation._rootFramesTimeline.render((com.greensock.core.Animation._rootFrame - com.greensock.core.Animation._rootFramesTimeline._startTime) * com.greensock.core.Animation._rootFramesTimeline._timeScale, false, false); }; v1._addTickListener = function (type, callback, scope, useParam, priority) { if (type === 'tick') { priority = priority || 0; var v1 = com.greensock.core.Animation._onTick.length; var v2 = 0; var v3; while (--v1 > -1) { v3 = com.greensock.core.Animation._onTick[v1]; if (v3.c === callback) { com.greensock.core.Animation._onTick.splice(v1, 1); } else { if (v2 === 0 && v3.p < priority) { v2 = v1 + 1; } } } com.greensock.core.Animation._onTick.splice(v2, 0, {'c': callback, 's': scope, 'up': useParam, 'p': priority}); } }; v1._removeTickListener = function (type, callback) { var v1 = com.greensock.core.Animation._onTick.length; while (--v1 > -1) { if (com.greensock.core.Animation._onTick[v1].c === callback && type === 'tick') { com.greensock.core.Animation._onTick.splice(v1, 1); return undefined; } } }; v1._tick = function () { var v2 = com.greensock.core.Animation._onTick.length; var v1; while (--v2 > -1) { v1 = com.greensock.core.Animation._onTick[v2]; if (v1.up) { v1.c.call(v1.s, {'type': 'tick', 'target': com.greensock.core.Animation.ticker}); } else { v1.c.call(v1.s); } } }; v1._findSubloadedSWF = function (mc) { for (var v3 in mc) { if (typeof mc[v3] == 'movieclip') { if (mc[v3]._url != _root._url && mc[v3].getBytesLoaded() != undefined) { return mc[v3]; } else { if (com.greensock.core.Animation._findSubloadedSWF(mc[v3])) { return com.greensock.core.Animation._findSubloadedSWF(mc[v3]); } } } } return undefined; }; v1._jumpStart = function (root) { if (com.greensock.core.Animation.ticker != undefined) { com.greensock.core.Animation.ticker.removeMovieClip(); } var v2 = (root.getBytesLoaded() == undefined) ? com.greensock.core.Animation._findSubloadedSWF(root) : root; var v1 = 999; while (v2.getInstanceAtDepth(v1)) { ++v1; } com.greensock.core.Animation.ticker = v2.createEmptyMovieClip('_gsAnimation' + ((String(com.greensock.core.Animation.version)).split('.')).join('_'), v1); com.greensock.core.Animation.ticker.onEnterFrame = com.greensock.core.Animation._tick; com.greensock.core.Animation.ticker.addEventListener = com.greensock.core.Animation._addTickListener; com.greensock.core.Animation.ticker.removeEventListener = com.greensock.core.Animation._removeTickListener; com.greensock.core.Animation._rootTimeline._totalTime = (getTimer() / 1000 - com.greensock.core.Animation._rootTimeline._startTime) * com.greensock.core.Animation._rootTimeline._timeScale; com.greensock.core.Animation._rootTimeline._time = com.greensock.core.Animation._rootTimeline._totalTime; return com.greensock.core.Animation.ticker; }; v2._swapSelfInParams = function (params) { var v2 = params.length; var v3 = params.concat(); while (--v2 > -1) { if (params[v2] === '{self}') { v3[v2] = this; } } return v3; }; v2.eventCallback = function (type, callback, params, scope) { if (type == null) { return null; return this; } if (type.substr(0, 2) === 'on') { if (arguments.length === 1) { return this.vars[type]; } if (callback == null) { delete this.vars[type]; } else { this.vars[type] = callback; this.vars[type + 'Params'] = (params instanceof Array && (params.join('')).indexOf('{self}') !== -1) ? this._swapSelfInParams(params) : params; this.vars[type + 'Scope'] = scope; } if (type === 'onUpdate') { this._onUpdate = callback; } } return this; }; v2.delay = function (value) { if (!arguments.length) { return this._delay; } if (this._timeline.smoothChildTiming) { this.startTime(this._startTime + value - this._delay); } this._delay = value; return this; }; v2.duration = function (value) { if (!arguments.length) { this._dirty = false; return this._duration; } this._totalDuration = value; this._duration = this._totalDuration; this._uncache(true); if (this._timeline.smoothChildTiming) { if (this._time > 0) { if (this._time < this._duration) { if (value != 0) { this.totalTime(this._totalTime * (value / this._duration), true); } } } } return this; }; v2.totalDuration = function (value) { this._dirty = false; return !arguments.length ? this._totalDuration : this.duration(value); }; v2.time = function (value, suppressEvents) { if (!arguments.length) { return this._time; } if (this._dirty) { this.totalDuration(); } if (value > this._duration) { value = this._duration; } return this.totalTime(value, suppressEvents); }; v2.totalTime = function (time, suppressEvents, uncapped) { if (!arguments.length) { return this._totalTime; } if (this._timeline) { if (time < 0 && !uncapped) { time += this.totalDuration(); } if (this._timeline.smoothChildTiming) { if (this._dirty) { this.totalDuration(); } if (time > this._totalDuration && !uncapped) { time = this._totalDuration; } var v3 = this._timeline; this._startTime = (this._paused ? this._pauseTime : v3._time) - (!this._reversed ? time : this._totalDuration - time) / this._timeScale; if (!this._timeline._dirty) { this._uncache(false); } if (v3._timeline != null) { while (v3._timeline) { if (v3._timeline._time !== (v3._startTime + v3._totalTime) / v3._timeScale) { v3.totalTime(v3._totalTime, true); } v3 = v3._timeline; } } } if (this._gc) { this._enabled(true, false); } if (this._totalTime != time) { this.render(time, suppressEvents, false); } } return this; }; v2.startTime = function (value) { if (!arguments.length) { return this._startTime; } if (value != this._startTime) { this._startTime = value; if (this.timeline) { if (this.timeline._sortChildren) { this.timeline.add(this, value - this._delay); } } } return this; }; v2.timeScale = function (value) { if (!arguments.length) { return this._timeScale; } value = value || 1.0e-006; if (this._timeline && this._timeline.smoothChildTiming) { var v4 = (this._pauseTime || this._pauseTime == 0) ? this._pauseTime : this._timeline._totalTime; this._startTime = v4 - (v4 - this._startTime) * this._timeScale / value; } this._timeScale = value; return this._uncache(false); }; v2.reversed = function (value) { if (!arguments.length) { return this._reversed; } if (value != this._reversed) { this._reversed = value; this.totalTime(this._totalTime, true); } return this; }; v2.paused = function (value) { if (!arguments.length) { return this._paused; } if (value != this._paused) { if (this._timeline) { var v4 = this._timeline.rawTime(); var v5 = v4 - this._pauseTime; if (!value && this._timeline.smoothChildTiming) { this._startTime += v5; this._uncache(false); } this._pauseTime = value ? v4 : NaN; this._paused = value; this._active = Boolean(!value && this._totalTime > 0 && this._totalTime < this._totalDuration); if (!value && v5 !== 0 && this._duration !== 0) { this.render(this._timeline.smoothChildTiming ? this._totalTime : (v4 - this._startTime) / this._timeScale, true, true); } } } if (this._gc && !value) { this._enabled(true, false); } return this; }; v1.version = '12.0.13'; v1.ticker = com.greensock.core.Animation._jumpStart(_root); v1._rootFrame = -1; v1._onTick = []; ASSetPropFlags(com.greensock.core.Animation.prototype, null, 1); } #endinitclip } movieClip 1180 __Packages.com.greensock.core.SimpleTimeline { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.core) { _global.com.greensock.core = new Object(); } if (!_global.com.greensock.core.SimpleTimeline) { var v1 = function (vars) { super(0, vars); this.smoothChildTiming = true; this.autoRemoveChildren = this.smoothChildTiming; }; com.greensock.core.SimpleTimeline = v1; com.greensock.core.SimpleTimeline extends com.greensock.core.Animation; var v2 = v1.prototype; v2.insert = function (tween, time) { return this.add(tween, time || 0); }; v2.add = function (child, position, align, stagger) { child._startTime = Number(position || 0) + child._delay; if (child._paused) { if (this != child._timeline) { child._pauseTime = child._startTime + (this.rawTime() - child._startTime) / child._timeScale; } } if (child.timeline) { child.timeline._remove(child, true); } child._timeline = this; child.timeline = child._timeline; if (child._gc) { child._enabled(true, true); } var v2 = this._last; if (this._sortChildren) { var v4 = child._startTime; for (;;) { if (!(v2 && v2._startTime > v4)) break; v2 = v2._prev; } } if (v2) { child._next = v2._next; v2._next = com.greensock.core.Animation(child); } else { child._next = this._first; this._first = com.greensock.core.Animation(child); } if (child._next) { child._next._prev = child; } else { this._last = com.greensock.core.Animation(child); } child._prev = v2; if (this._timeline) { this._uncache(true); } return this; }; v2._remove = function (tween, skipDisable) { if (tween.timeline == this) { if (!skipDisable) { tween._enabled(false, true); } tween.timeline = null; if (tween._prev) { tween._prev._next = tween._next; } else { if (this._first === tween) { this._first = tween._next; } } if (tween._next) { tween._next._prev = tween._prev; } else { if (this._last === tween) { this._last = tween._prev; } } if (this._timeline) { this._uncache(true); } } return this; }; v2.render = function (time, suppressEvents, force) { var v2 = this._first; var v4; this._rawPrevTime = time; this._time = this._rawPrevTime; this._totalTime = this._rawPrevTime; while (v2) { v4 = v2._next; if (v2._active || time >= v2._startTime && !v2._paused) { if (!v2._reversed) { v2.render((time - v2._startTime) * v2._timeScale, suppressEvents, force); } else { v2.render((!v2._dirty ? v2._totalDuration : v2.totalDuration()) - (time - v2._startTime) * v2._timeScale, suppressEvents, force); } } v2 = v4; } }; v2.rawTime = function () { return this._totalTime; }; ASSetPropFlags(com.greensock.core.SimpleTimeline.prototype, null, 1); } #endinitclip } movieClip 1181 __Packages.com.greensock.easing.Ease { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.easing) { _global.com.greensock.easing = new Object(); } if (!_global.com.greensock.easing.Ease) { var v1 = function (func, extraParams, type, power) { this._func = func; this._params = extraParams ? com.greensock.easing.Ease._baseParams.concat(extraParams) : com.greensock.easing.Ease._baseParams; this._type = type || 0; this._power = power || 0; }; com.greensock.easing.Ease = v1; var v2 = v1.prototype; v2.getRatio = function (p) { if (this._func) { this._params[0] = p; return this._func.apply(null, this._params); } else { var v2 = (this._type === 1) ? 1 - p : ((this._type === 2) ? p : (p < 0.5 ? p * 2 : (1 - p) * 2)); if (this._power === 1) { v2 *= v2; } else { if (this._power === 2) { v2 *= v2 * v2; } else { if (this._power === 3) { v2 *= v2 * v2 * v2; } else { if (this._power === 4) { v2 *= v2 * v2 * v2 * v2; } } } } return (this._type === 1) ? 1 - v2 : ((this._type === 2) ? v2 : (p < 0.5 ? v2 / 2 : 1 - v2 / 2)); } }; v1._baseParams = [0, 0, 1, 1]; ASSetPropFlags(com.greensock.easing.Ease.prototype, null, 1); } #endinitclip } movieClip 1182 __Packages.com.greensock.TweenLite { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.TweenLite) { var v1 = function (target, duration, vars) { super(duration, vars); if (!com.greensock.TweenLite._overwriteLookup) { com.greensock.TweenLite._overwriteLookup = {'none': 0, 'all': 1, 'auto': 2, 'concurrent': 3, 'allOnStart': 4, 'preexisting': 5}; com.greensock.TweenLite._overwriteLookup.true = 1; com.greensock.TweenLite._overwriteLookup.false = 0; com.greensock.core.Animation._addTickListener('tick', com.greensock.TweenLite._dumpGarbage, com.greensock.TweenLite); } this.ratio = 0; this.target = target; this._ease = com.greensock.TweenLite.defaultEase; this._overwrite = (this.vars.overwrite == null) ? com.greensock.TweenLite._overwriteLookup[com.greensock.TweenLite.defaultOverwrite] : ((typeof this.vars.overwrite === 'number') ? this.vars.overwrite >> 0 : com.greensock.TweenLite._overwriteLookup[this.vars.overwrite]); if (this.target instanceof Array && (typeof this.target[0] === 'object' || typeof this.target[0] === 'movieclip')) { this._targets = this.target.concat(); this._propLookup = []; this._siblings = []; var v3 = this._targets.length; while (--v3 > -1) { this._siblings[v3] = com.greensock.TweenLite._register(this._targets[v3], this, false); if (this._overwrite === 1) { if (this._siblings[v3].length > 1) { com.greensock.TweenLite._applyOverwrite(this._targets[v3], this, null, 1, this._siblings[v3]); } } } } else { this._propLookup = {}; this._siblings = com.greensock.TweenLite._register(target, this, false); if (this._overwrite === 1) { if (this._siblings.length > 1) { com.greensock.TweenLite._applyOverwrite(target, this, null, 1, this._siblings); } } } if (this.vars.immediateRender || duration === 0 && this._delay === 0 && this.vars.immediateRender != false) { this.render(-this._delay, false, true); } }; com.greensock.TweenLite = v1; com.greensock.TweenLite extends com.greensock.core.Animation; var v2 = v1.prototype; v2._init = function () { var v7 = this.vars.immediateRender; var v3; var v6; var v2; var v4; var v5; if (this.vars.startAt) { if (this._startAt != null) { this._startAt.render(-1, true); } this.vars.startAt.overwrite = 0; this.vars.startAt.immediateRender = true; this._startAt = new com.greensock.TweenLite(this.target, 0, this.vars.startAt); if (v7) { if (this._time > 0) { this._startAt = null; } else { if (this._duration !== 0) { return undefined; } } } } else { if (v7 && this.vars.runBackwards && this._duration !== 0) { if (this._startAt != null) { this._startAt.render(-1, true); this._startAt = null; } else { if (this._time === 0) { v5 = {}; for (v4 in this.vars) { if (com.greensock.TweenLite._reservedProps[v4] == null) { v5[v4] = this.vars[v4]; } } v5.overwrite = 0; this._startAt = com.greensock.TweenLite.to(this.target, 0, v5); return undefined; } } } } if (this.vars.ease instanceof com.greensock.easing.Ease) { this._ease = this.vars.easeParams instanceof Array ? this.vars.ease.config.apply(this.vars.ease, this.vars.easeParams) : this.vars.ease; } else { if (typeof this.vars.ease === 'function') { this._ease = new com.greensock.easing.Ease(this.vars.ease, this.vars.easeParams); } else { this._ease = com.greensock.TweenLite.defaultEase; } } this._easeType = this._ease._type; this._easePower = this._ease._power; this._firstPT = null; if (this._targets) { v3 = this._targets.length; while (--v3 > -1) { this._propLookup[v3] = {}; if (this._initProps(this._targets[v3], this._propLookup[v3], this._siblings[v3], this._overwrittenProps ? this._overwrittenProps[v3] : null)) { v6 = true; } } } else { v6 = this._initProps(this.target, this._propLookup, this._siblings, this._overwrittenProps); } if (v6) { com.greensock.TweenLite._onPluginEvent('_onInitAllProps', this); } if (this._overwrittenProps) { if (this._firstPT == null) { if (typeof this.target !== 'function') { this._enabled(false, false); } } } if (this.vars.runBackwards) { v2 = this._firstPT; while (v2) { v2.s += v2.c; v2.c = -v2.c; v2 = v2._next; } } this._onUpdate = this.vars.onUpdate; this._initted = true; }; v2._initProps = function (target, propLookup, siblings, overwrittenProps) { var v4; var v6; var v16; var v3; var v2; if (target == null) { return false; } for (v4 in this.vars) { v2 = this.vars[v4]; if (com.greensock.TweenLite._reservedProps[v4]) { if (v2 instanceof Array) { if ((v2.join('')).indexOf('{self}') !== -1) { this.vars[v4] = this._swapSelfInParams(v2); } } } else { if (com.greensock.TweenLite._plugins[v4] && v3._onInitTween(target, this.vars[v4], this)) { this._firstPT = {'_next': this._firstPT, 't': v3, 'p': 'setRatio', 's': 0, 'c': 1, 'f': true, 'n': v4, 'pg': true, 'pr': v3._priority}; v6 = v3._overwriteProps.length; while (--v6 > -1) { propLookup[v3._overwriteProps[v6]] = this._firstPT; } if (v3._priority || v3._onInitAllProps) { v16 = true; } if (v3._onDisable || v3._onEnable) { this._notifyPluginsOfEnabled = true; } } else { propLookup[v4] = {'_next': this._firstPT, 't': target, 'p': v4, 'f': typeof target[v4] === 'function', 'n': v4, 'pg': false, 'pr': 0}; this._firstPT = propLookup[v4]; this._firstPT.s = !this._firstPT.f ? Number(target[v4]) : target[(v4.indexOf('set') || typeof target['get' + v4.substr(3)] !== 'function') ? v4 : 'get' + v4.substr(3)](); this._firstPT.c = (typeof v2 === 'number') ? Number(v2) - this._firstPT.s : ((typeof v2 === 'string' && v2.charAt(1) === '=') ? Number(v2.charAt(0) + '1') * Number(v2.substr(2)) : (Number(v2) || 0)); } } if (this._firstPT) { if (this._firstPT._next) { this._firstPT._next._prev = this._firstPT; } } } if (overwrittenProps) { if (this._kill(overwrittenProps, target)) { return this._initProps(target, propLookup, siblings, overwrittenProps); } } if (this._overwrite > 1) { if (this._firstPT) { if (siblings.length > 1) { if (com.greensock.TweenLite._applyOverwrite(target, this, propLookup, this._overwrite, siblings)) { this._kill(propLookup, target); return this._initProps(target, propLookup, siblings, overwrittenProps); } } } } return v16; }; v2.render = function (time, suppressEvents, force) { var v10; var v5; var v2; var v11 = this._time; if (time >= this._duration) { this._time = this._duration; this._totalTime = this._time; this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1; if (!this._reversed) { v10 = true; v5 = 'onComplete'; } if (this._duration === 0) { if (time === 0 || this._rawPrevTime < 0) { if (this._rawPrevTime !== time) { force = true; if (this._rawPrevTime > 0) { v5 = 'onReverseComplete'; if (suppressEvents) { time = -1; } } } } this._rawPrevTime = time; } } else { if (time < 1.0e-007) { this._time = 0; this._totalTime = 0; this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0; if (v11 !== 0 || this._duration === 0 && this._rawPrevTime > 0) { v5 = 'onReverseComplete'; v10 = this._reversed; } if (time < 0) { this._active = false; if (this._duration === 0) { if (this._rawPrevTime >= 0) { force = true; } this._rawPrevTime = time; } } else { if (!this._initted) { force = true; } } } else { this._time = time; this._totalTime = this._time; if (this._easeType) { var v3 = time / this._duration; var v8 = this._easeType; var v9 = this._easePower; if (v8 === 1 || v8 === 3 && v3 >= 0.5) { v3 = 1 - v3; } if (v8 === 3) { v3 *= 2; } if (v9 === 1) { v3 *= v3; } else { if (v9 === 2) { v3 *= v3 * v3; } else { if (v9 === 3) { v3 *= v3 * v3 * v3; } else { if (v9 === 4) { v3 *= v3 * v3 * v3 * v3; } } } } if (v8 === 1) { this.ratio = 1 - v3; } else { if (v8 === 2) { this.ratio = v3; } else { if (time / this._duration < 0.5) { this.ratio = v3 / 2; } else { this.ratio = 1 - v3 / 2; } } } } else { this.ratio = this._ease.getRatio(time / this._duration); } } } if (this._time === v11 && !force) { return undefined; } else { if (!this._initted) { this._init(); if (!this._initted) { return undefined; } if (this._time && !v10) { this.ratio = this._ease.getRatio(this._time / this._duration); } else { if (v10 && this._ease._calcEnd) { this.ratio = this._ease.getRatio((this._time === 0) ? 0 : 1); } } } } if (!this._active) { if (!this._paused && this._time !== v11 && time >= 0) { this._active = true; } } if (v11 === 0) { if (this._startAt != null) { if (time >= 0) { this._startAt.render(time, suppressEvents, force); } else { if (!v5) { v5 = '_dummyGS'; } } } if (this.vars.onStart) { if (this._time !== 0 || this._duration === 0) { if (!suppressEvents) { this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams); } } } } v2 = this._firstPT; while (v2) { if (v2.f) { v2.t[v2.p](v2.c * this.ratio + v2.s); } else { v2.t[v2.p] = v2.c * this.ratio + v2.s; } v2 = v2._next; } if (this._onUpdate != null) { if (time < 0 && this._startAt != null) { this._startAt.render(time, suppressEvents, force); } if (!suppressEvents) { this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams); } } if (v5) { if (!this._gc) { if (time < 0 && this._startAt != null && this._onUpdate == null) { this._startAt.render(time, suppressEvents, force); } if (v10) { if (this._timeline.autoRemoveChildren) { this._enabled(false, false); } this._active = false; } if (!suppressEvents) { if (this.vars[v5]) { this.vars[v5].apply(this.vars[v5 + 'Scope'] || this, this.vars[v5 + 'Params']); } } } } }; v2._kill = function (vars, target) { if (vars === 'all') { vars = null; } if (vars == null) { if (target == null || target == this.target) { return this._enabled(false, false); } } target = target || this._targets || this.target; var v3; var v8; var v4; var v2; var v5; var v9; var v10; var v11; if (target instanceof Array && (typeof target[0] === 'object' || typeof target[0] === 'movieclip')) { v3 = target.length; while (--v3 > -1) { if (this._kill(vars, target[v3])) { v9 = true; } } return v9; } if (this._targets) { v3 = this._targets.length; while (--v3 > -1) { if (target === this._targets[v3]) { v5 = this._propLookup[v3] || {}; this._overwrittenProps = this._overwrittenProps || []; this._overwrittenProps[v3] = vars ? (this._overwrittenProps[v3] || {}) : 'all'; v8 = this._overwrittenProps[v3]; break; } } } else { if (target !== this.target) { return false; } else { v5 = this._propLookup; this._overwrittenProps = vars ? (this._overwrittenProps || {}) : 'all'; v8 = this._overwrittenProps; } } if (v5) { v10 = vars || v5; v11 = vars != v8 && v8 != 'all' && vars != v5 && (typeof vars != 'object' || vars._tempKill != true); for (v4 in v10) { v2 = v5[v4]; if (v2) { if (v2.pg && v2.t._kill(v10)) { v9 = true; } if (!v2.pg || v2.t._overwriteProps.length === 0) { if (v2._prev) { v2._prev._next = v2._next; } else { if (v2 == this._firstPT) { this._firstPT = v2._next; } } if (v2._next) { v2._next._prev = v2._prev; } v2._prev = null; v2._next = v2._prev; } delete v5[v4]; } if (v11) { v8[v4] = 1; } } if (this._firstPT == null && this._initted) { this._enabled(false, false); } } return v9; }; v2.invalidate = function () { if (this._notifyPluginsOfEnabled) { com.greensock.TweenLite._onPluginEvent('_onDisable', this); } this._firstPT = null; this._overwrittenProps = null; this._onUpdate = null; this._startAt = null; this._notifyPluginsOfEnabled = false; this._active = this._notifyPluginsOfEnabled; this._initted = this._notifyPluginsOfEnabled; if (!this._targets) { this._propLookup = []; return this; } this._propLookup = {}; return this; }; v2._enabled = function (enabled, ignoreTimeline) { if (enabled && this._gc) { if (this._targets) { var v3 = this._targets.length; while (--v3 > -1) { this._siblings[v3] = com.greensock.TweenLite._register(this._targets[v3], this, true); } } else { this._siblings = com.greensock.TweenLite._register(this.target, this, true); } } super._enabled(enabled, ignoreTimeline); if (this._notifyPluginsOfEnabled) { if (this._firstPT) { return com.greensock.TweenLite._onPluginEvent(enabled ? '_onEnable' : '_onDisable', this); } } return false; }; v1.to = function (target, duration, vars) { return new com.greensock.TweenLite(target, duration, vars); }; v1.from = function (target, duration, vars) { vars.runBackwards = true; if (vars.immediateRender != false) { vars.immediateRender = true; } return new com.greensock.TweenLite(target, duration, vars); }; v1.fromTo = function (target, duration, fromVars, toVars) { toVars.startAt = fromVars; toVars.immediateRender = toVars.immediateRender != false && fromVars.immediateRender != false; return new com.greensock.TweenLite(target, duration, toVars); }; v1.delayedCall = function (delay, callback, params, scope, useFrames) { return new com.greensock.TweenLite(callback, 0, {'delay': delay, 'onComplete': callback, 'onCompleteParams': params, 'onCompleteScope': scope, 'onReverseComplete': callback, 'onReverseCompleteParams': params, 'onReverseCompleteScope': scope, 'immediateRender': false, 'useFrames': useFrames, 'overwrite': 0}); }; v1._dumpGarbage = function () { if (!(com.greensock.core.Animation._rootFrame % 60)) { var v2; var v1; var v3; for (v3 in com.greensock.TweenLite._tweenLookup) { v1 = com.greensock.TweenLite._tweenLookup[v3].tweens; v2 = v1.length; while (--v2 > -1) { if (v1[v2]._gc) { v1.splice(v2, 1); } } if (v1.length === 0) { delete com.greensock.TweenLite._tweenLookup[v3]; } } } }; v1.set = function (target, vars) { return new com.greensock.TweenLite(target, 0, vars); }; v1.killTweensOf = function (target, vars) { var v2 = com.greensock.TweenLite.getTweensOf(target); var v1 = v2.length; while (--v1 > -1) { v2[v1]._kill(vars, target); } }; v1.killDelayedCallsTo = function (func) { com.greensock.TweenLite.killTweensOf(func); }; v1.getTweensOf = function (target) { var v1; var v2; var v3; var v4; if (target instanceof Array && (typeof target[0] === 'object' || typeof target[0] === 'movieclip')) { v1 = target.length; v2 = []; while (--v1 > -1) { v2 = v2.concat(com.greensock.TweenLite.getTweensOf(target[v1])); } v1 = v2.length; while (--v1 > -1) { v4 = v2[v1]; v3 = v1; while (--v3 > -1) { if (v4 === v2[v3]) { v2.splice(v1, 1); } } } return v2; } v2 = (com.greensock.TweenLite._register(target)).concat(); v1 = v2.length; while (--v1 > -1) { if (v2[v1]._gc) { v2.splice(v1, 1); } } return v2; }; v1._register = function (target, tween, scrub) { var v5; var v1; var v4; var v2; var v3 = com.greensock.TweenLite._tweenLookup; if (typeof target === 'movieclip') { v5 = String(target); } else { for (v2 in v3) { if (v3[v2].target === target) { v5 = v2; break; } } } if (!v3[v5]) { v3[v5] = {'target': target, 'tweens': []}; } if (tween) { v4 = v3[v5].tweens; v1 = v4.length; v4[v1] = tween; if (scrub) { while (--v1 > -1) { if (v4[v1] === tween) { v4.splice(v1, 1); } } } } return v3[v5].tweens; }; v1._applyOverwrite = function (target, tween, props, mode, siblings) { var v2; var v4; var v1; if (mode === 1 || mode >= 4) { var v12 = siblings.length; v2 = 0; while (v2 < v12) { v1 = siblings[v2]; if (v1 !== tween) { if (!v1._gc) { if (v1._enabled(false, false)) { v4 = true; } } } else { if (mode === 5) { break; } } ++v2; } return v4; } var v8 = tween._startTime + 1.0e-010; var v7 = []; var v10 = 0; var v5 = tween._duration == 0; var v9; v2 = siblings.length; while (--v2 > -1) { v1 = siblings[v2]; if (v1 === tween || v1._gc || v1._paused) { } else { if (v1._timeline != tween._timeline) { v9 = v9 || com.greensock.TweenLite._checkOverlap(tween, 0, v5); if (com.greensock.TweenLite._checkOverlap(v1, v9, v5) === 0) { v7[v10++] = v1; } } else { if (v1._startTime <= v8) { if (v1._startTime + v1.totalDuration() / v1._timeScale + 1.0e-010 > v8) { if (!((v5 || !v1._initted) && v8 - v1._startTime <= 2.0e-010)) { v7[v10++] = v1; } } } } } } v2 = v10; while (--v2 > -1) { v1 = v7[v2]; if (mode === 2) { if (v1._kill(props, target)) { v4 = true; } } if (mode !== 2 || !v1._firstPT && v1._initted) { if (v1._enabled(false, false)) { v4 = true; } } } return v4; }; v1._checkOverlap = function (tween, reference, zeroDur) { var v1 = tween._timeline; var v3 = v1._timeScale; var v2 = tween._startTime; var v4 = 1.0e-010; while (v1._timeline) { v2 += v1._startTime; v3 *= v1._timeScale; if (v1._paused) { return -100; } v1 = v1._timeline; } v2 /= v3; return v2 > reference ? v2 - reference : ((zeroDur && v2 == reference || !tween._initted && v2 - reference < 2 * v4) ? v4 : (v2 > reference + v4 ? 0 : v2 - reference - v4)); }; v1.version = '12.0.16'; v1.defaultEase = new com.greensock.easing.Ease(null, null, 1, 1); v1.defaultOverwrite = 'auto'; v1.ticker = com.greensock.core.Animation.ticker; v1._plugins = {}; v1._tweenLookup = {}; v1._cnt = 0; v1._reservedProps = {'ease': 1, 'delay': 1, 'overwrite': 1, 'onComplete': 1, 'onCompleteParams': 1, 'onCompleteScope': 1, 'useFrames': 1, 'runBackwards': 1, 'startAt': 1, 'onUpdate': 1, 'onUpdateParams': 1, 'onUpdateScope': 1, 'onStart': 1, 'onStartParams': 1, 'onStartScope': 1, 'onReverseComplete': 1, 'onReverseCompleteParams': 1, 'onReverseCompleteScope': 1, 'onRepeat': 1, 'onRepeatParams': 1, 'onRepeatScope': 1, 'easeParams': 1, 'yoyo': 1, 'orientToBezier': 1, 'immediateRender': 1, 'repeat': 1, 'repeatDelay': 1, 'data': 1, 'paused': 1, 'reversed': 1}; ASSetPropFlags(com.greensock.TweenLite.prototype, null, 1); } #endinitclip } movieClip 1183 __Packages.com.greensock.plugins.TweenPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.TweenPlugin) { var v1 = function (props, priority) { this._overwriteProps = props.split(','); this._propName = this._overwriteProps[0]; this._priority = priority || 0; }; com.greensock.plugins.TweenPlugin = v1; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { return false; }; v2._addTween = function (target, propName, start, end, overwriteProp, round) { var v4; if (end != null && v4) { this._firstPT = {'_next': this._firstPT, 't': target, 'p': propName, 's': start, 'c': v4, 'f': typeof target[propName] == 'function', 'n': overwriteProp || propName, 'r': round}; if (this._firstPT._next) { this._firstPT._next._prev = this._firstPT; } return this._firstPT; } return null; }; v2.setRatio = function (v) { var v2 = this._firstPT; var v3; while (v2) { v3 = v2.c * v + v2.s; if (v2.r) { v3 = v3 + (v3 > 0 ? 0.5 : -0.5) | 0; } if (v2.f) { v2.t[v2.p](v3); } else { v2.t[v2.p] = v3; } v2 = v2._next; } }; v2._kill = function (lookup) { if (lookup[this._propName] != null) { this._overwriteProps = []; } else { var v3 = this._overwriteProps.length; while (--v3 > -1) { if (lookup[this._overwriteProps[v3]] != null) { this._overwriteProps.splice(v3, 1); } } } var v2 = this._firstPT; while (v2) { if (lookup[v2.n] != null) { if (v2._next) { v2._next._prev = v2._prev; } if (v2._prev) { v2._prev._next = v2._next; v2._prev = null; } else { if (this._firstPT == v2) { this._firstPT = v2._next; } } } v2 = v2._next; } return false; }; v2._roundProps = function (lookup, value) { var v2 = this._firstPT; while (v2) { if (lookup[this._propName] || v2.n != null && lookup[(v2.n.split(this._propName + '_')).join('')]) { v2.r = value; } v2 = v2._next; } }; v1._onTweenEvent = function (type, tween) { var v1 = tween._firstPT; var v7; if (type === '_onInitAllProps') { var v2; var v3; var v5; var v4; while (v1) { v4 = v1._next; v2 = v3; for (;;) { if (!(v2 && v2.pr > v1.pr)) break; v2 = v2._next; } v1._prev = v2 ? v2._prev : v5; if (v1._prev) { v1._prev._next = v1; } else { v3 = v1; } v1._next = v2; if (v1._next) { v2._prev = v1; } else { v5 = v1; } v1 = v4; } tween._firstPT = v3; v1 = tween._firstPT; } while (v1) { if (v1.pg) { if (typeof v1.t[type] === 'function') { if (v1.t[type]()) { v7 = true; } } } v1 = v1._next; } return v7; }; v1.activate = function (plugins) { com.greensock.TweenLite._onPluginEvent = com.greensock.plugins.TweenPlugin._onTweenEvent; var v1 = plugins.length; while (--v1 > -1) { if (plugins[v1].API == com.greensock.plugins.TweenPlugin.API) { com.greensock.TweenLite._plugins[(new plugins[v1]())._propName] = plugins[v1]; } } return true; }; v1.version = '12.0.13'; v1.API = 2; ASSetPropFlags(com.greensock.plugins.TweenPlugin.prototype, null, 1); } #endinitclip } movieClip 1184 __Packages.com.greensock.plugins.AutoAlphaPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.AutoAlphaPlugin) { var v1 = function () { super('autoAlpha,_alpha,_visible'); }; com.greensock.plugins.AutoAlphaPlugin = v1; com.greensock.plugins.AutoAlphaPlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { this._target = target; this._addTween(this._target, '_alpha', target._alpha, value); return true; }; v2._kill = function (lookup) { this._ignoreVisible = lookup.hasOwnProperty('_visible'); return super._kill(lookup); }; v2.setRatio = function (v) { super.setRatio(v); if (!this._ignoreVisible) { this._target._visible = this._target._alpha != 0; } }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.AutoAlphaPlugin.prototype, null, 1); } #endinitclip } movieClip 1185 __Packages.com.greensock.plugins.EndArrayPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.EndArrayPlugin) { var v1 = function () { super('endArray'); this._info = []; }; com.greensock.plugins.EndArrayPlugin = v1; com.greensock.plugins.EndArrayPlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { if (!(target instanceof Array) || !(value instanceof Array)) { return false; } this._init(Array(target), Array(value)); return true; }; v2._init = function (start, end) { this._a = start; var v2 = end.length; var v7 = 0; while (--v2 > -1) { if (start[v2] != end[v2] && start[v2] != null) { this._info[v7++] = {'i': v2, 's': this._a[v2], 'c': end[v2] - this._a[v2]}; } } }; v2._roundProps = function (lookup, value) { if (lookup.endArray) { this._round = value; } }; v2.setRatio = function (v) { var v3 = this._info.length; var v2; var v4; if (this._round) { while (--v3 > -1) { v2 = this._info[v3]; v4 = v2.c * v + v2.s; this._a[v2.i] = v4 > 0 ? v4 + 0.5 >> 0 : v4 - 0.5 >> 0; } } else { while (--v3 > -1) { v2 = this._info[v3]; this._a[v2.i] = v2.c * v + v2.s; } } }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.EndArrayPlugin.prototype, null, 1); } #endinitclip } movieClip 1186 __Packages.com.greensock.plugins.FramePlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.FramePlugin) { var v1 = function () { super('frame,frameLabel,frameForward,frameBackward'); }; com.greensock.plugins.FramePlugin = v1; com.greensock.plugins.FramePlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { if (typeof target != 'movieclip' || isNaN(value)) { return false; } this._target = MovieClip(target); this.frame = this._target._currentframe; this._addTween(this, 'frame', this.frame, value, 'frame', true); return true; }; v2.setRatio = function (v) { super.setRatio(v); if (this.frame != this._target._currentframe) { this._target.gotoAndStop(this.frame); } }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.FramePlugin.prototype, null, 1); } #endinitclip } movieClip 1187 __Packages.com.greensock.plugins.TintPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.TintPlugin) { var v1 = function () { super('tint,colorTransform,removeTint'); }; com.greensock.plugins.TintPlugin = v1; com.greensock.plugins.TintPlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { if (typeof target != 'movieclip' && !(target instanceof TextField)) { return false; } var v2 = (tween.vars._alpha != undefined) ? tween.vars._alpha : ((tween.vars.autoAlpha != null) ? tween.vars.autoAlpha : target._alpha); var v4 = Number(value); if (!(value == null || tween.vars.removeTint == true)) { var v6 = {'rb': v4 >> 16, 'gb': v4 >> 8 & 255, 'bb': v4 & 255, 'ra': 0, 'ga': 0, 'ba': 0, 'aa': v2}; this._init(target, v6); return true; } var v6 = {'rb': 0, 'gb': 0, 'bb': 0, 'ab': 0, 'ra': v2, 'ga': v2, 'ba': v2, 'aa': v2}; this._init(target, v6); return true; }; v2._init = function (target, end) { this._color = new Color(target); var v2 = this._color.getTransform(); for (var v4 in end) { if (v2[v4] != end[v4]) { this._addTween(v2, v4, v2[v4], end[v4], 'tint'); } } }; v2.setRatio = function (v) { var v3 = this._color.getTransform(); var v2 = this._firstPT; while (v2) { v3[v2.p] = v2.c * v + v2.s; v2 = v2._next; } this._color.setTransform(v3); }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.TintPlugin.prototype, null, 1); } #endinitclip } movieClip 1188 __Packages.com.greensock.plugins.RemoveTintPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.RemoveTintPlugin) { var v1 = function () { super(); this._propName = 'removeTint'; }; com.greensock.plugins.RemoveTintPlugin = v1; com.greensock.plugins.RemoveTintPlugin extends com.greensock.plugins.TintPlugin; var v2 = v1.prototype; v1.API = 2; ASSetPropFlags(com.greensock.plugins.RemoveTintPlugin.prototype, null, 1); } #endinitclip } movieClip 1189 __Packages.com.greensock.plugins.VisiblePlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.VisiblePlugin) { var v1 = function () { super('_visible'); }; com.greensock.plugins.VisiblePlugin = v1; com.greensock.plugins.VisiblePlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { this._target = target; this._tween = tween; if (!this._tween.vars.runBackwards) { this._progress = 1; this._initVal = this._target._visible; this._visible = Boolean(value); return true; } this._progress = 0; this._initVal = this._target._visible; this._visible = Boolean(value); return true; }; v2.setRatio = function (v) { this._target._visible = (v == 1 && (this._tween._time / this._tween._duration == this._progress || this._tween._duration == 0)) ? this._visible : this._initVal; }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.VisiblePlugin.prototype, null, 1); } #endinitclip } movieClip 1190 __Packages.com.greensock.plugins.VolumePlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.VolumePlugin) { var v1 = function () { super('volume'); }; com.greensock.plugins.VolumePlugin = v1; com.greensock.plugins.VolumePlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { if (isNaN(value) || typeof target != 'movieclip' && !(target instanceof Sound)) { return false; } if (typeof target != 'movieclip') { this._sound = Sound(target); this.volume = this._sound.getVolume(); this._addTween(this, 'volume', this.volume, value, 'volume'); return true; } this._sound = new Sound(target); this.volume = this._sound.getVolume(); this._addTween(this, 'volume', this.volume, value, 'volume'); return true; }; v2.setRatio = function (v) { super.setRatio(v); this._sound.setVolume(this.volume); }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.VolumePlugin.prototype, null, 1); } #endinitclip } movieClip 1191 __Packages.com.greensock.plugins.FilterPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.FilterPlugin) { var v1 = function (props, priority) { super(props, priority); }; com.greensock.plugins.FilterPlugin = v1; com.greensock.plugins.FilterPlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._initFilter = function (target, props, tween, type, defaultFilter, propNames) { this._target = target; this._tween = tween; this._type = type; var v5 = this._target.filters; var v2; var v4; var v6; var v8 = props instanceof flash.filters.BitmapFilter ? {} : props; if (v8.index != null) { this._index = v8.index; } else { this._index = v5.length; if (v8.addFilter != true) { for (;;) { if (!(--this._index > -1 && !(v5[this._index] instanceof this._type))) break; } } } if (this._index < 0 || !(v5[this._index] instanceof this._type)) { if (this._index < 0) { this._index = v5.length; } if (this._index > v5.length) { v4 = v5.length - 1; while (++v4 < this._index) { v5[v4] = new flash.filters.BlurFilter(0, 0, 1); } } v5[this._index] = defaultFilter; this._target.filters = v5; } this._filter = v5[this._index]; this._remove = v8.remove == true; v4 = propNames.length; while (--v4 > -1) { v2 = propNames[v4]; if (props[v2] != null && this._filter[v2] != props[v2]) { if (v2 == 'color' || v2 == 'highlightColor' || v2 == 'shadowColor') { v6 = new com.greensock.plugins.HexColorsPlugin(); v6._initColor(this._filter, v2, props[v2]); this._addTween(v6, 'setRatio', 0, 1, this._propName); } else { if (v2 == 'quality' || v2 == 'inner' || v2 == 'knockout' || v2 == 'hideObject') { this._filter[v2] = props[v2]; } else { this._addTween(this._filter, v2, this._filter[v2], props[v2], this._propName); } } } } return true; }; v2.setRatio = function (v) { super.setRatio(v); var v3 = this._target.filters; if (!(v3[this._index] instanceof this._type)) { this._index = v3.length; for (;;) { if (!(--this._index > -1 && !(v3[this._index] instanceof this._type))) break; } if (this._index == -1) { this._index = v3.length; } } if (v == 1 && this._remove && this._tween._time == this._tween._duration) { if (this._index < v3.length) { v3.splice(this._index, 1); } } else { v3[this._index] = this._filter; } this._target.filters = v3; }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.FilterPlugin.prototype, null, 1); } #endinitclip } movieClip 1192 __Packages.com.greensock.plugins.HexColorsPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.HexColorsPlugin) { var v1 = function () { super('hexColors'); this._overwriteProps = []; this._colors = []; }; com.greensock.plugins.HexColorsPlugin = v1; com.greensock.plugins.HexColorsPlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { for (var v4 in value) { this._initColor(target, v4, Number(value[v4])); } return true; }; v2._initColor = function (target, p, end) { var v4 = typeof target[p] == 'function'; var v2 = !v4 ? target[p] : target[(p.indexOf('set') || typeof target['get' + p.substr(3)] !== 'function') ? p : 'get' + p.substr(3)](); if (v2 != end) { var v6 = v2 >> 16; var v8 = v2 >> 8 & 255; var v5 = v2 & 255; this._colors[this._colors.length] = {'t': target, 'p': p, 'f': v4, 'rs': v6, 'rc': (end >> 16) - v6, 'gs': v8, 'gc': (end >> 8 & 255) - v8, 'bs': v5, 'bc': (end & 255) - v5}; this._overwriteProps[this._overwriteProps.length] = p; } }; v2._kill = function (lookup) { var v3 = this._colors.length; while (--v3 > -1) { if (lookup[this._colors[v3].p] != null) { this._colors.splice(v3, 1); } } return super._kill(lookup); }; v2.setRatio = function (v) { var v5 = this._colors.length; var v2; var v3; while (--v5 > -1) { v2 = this._colors[v5]; v3 = v2.rs + v * v2.rc << 16 | v2.gs + v * v2.gc << 8 | v2.bs + v * v2.bc; if (v2.f) { v2.t[v2.p](v3); } else { v2.t[v2.p] = v3; } } }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.HexColorsPlugin.prototype, null, 1); } #endinitclip } movieClip 1193 __Packages.com.greensock.plugins.BevelFilterPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.BevelFilterPlugin) { var v1 = function () { super('bevelFilter'); }; com.greensock.plugins.BevelFilterPlugin = v1; com.greensock.plugins.BevelFilterPlugin extends com.greensock.plugins.FilterPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { return this._initFilter(target, value, tween, flash.filters.BevelFilter, new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, value.quality || 2), com.greensock.plugins.BevelFilterPlugin._propNames); }; v1.API = 2; v1._propNames = ['distance', 'angle', 'highlightColor', 'highlightAlpha', 'shadowColor', 'shadowAlpha', 'blurX', 'blurY', 'strength', 'quality']; ASSetPropFlags(com.greensock.plugins.BevelFilterPlugin.prototype, null, 1); } #endinitclip } movieClip 1194 __Packages.com.greensock.plugins.BezierPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.BezierPlugin) { var v1 = function () { super('bezier'); this._overwriteProps.pop(); this._func = {}; this._round = {}; }; com.greensock.plugins.BezierPlugin = v1; com.greensock.plugins.BezierPlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { this._target = target; var v8 = value instanceof Array ? {'values': value} : value; this._props = []; this._timeRes = (v8.timeResolution == null) ? 6 : v8.timeResolution >> 0; var v11 = v8.values || []; var v6 = {}; var v12 = v11[0]; var v13 = v8.autoRotate || tween.vars.orientToBezier; var v2; var v10; var v5; var v4; var v7; var v9; this._autoRotate = v13 ? (v13 instanceof Array ? [v13][0] : [['_x', '_y', '_rotation', (v13 === true) ? 0 : Number(v13)]]) : null; for (v2 in v12) { this._props.push(v2); } v5 = this._props.length; while (--v5 > -1) { v2 = this._props[v5]; this._overwriteProps.push(v2); this._func[v2] = typeof target[v2] === 'function'; v10 = this._func[v2]; v6[v2] = !v10 ? target[v2] : target[(v2.indexOf('set') || typeof target['get' + v2.substr(3)] !== 'function') ? v2 : 'get' + v2.substr(3)](); if (!v9) { if (v6[v2] !== v11[0][v2]) { v9 = v6; } } } this._beziers = (v8.type !== 'cubic' && v8.type !== 'quadratic' && v8.type !== 'soft') ? com.greensock.plugins.BezierPlugin.bezierThrough(v11, isNaN(v8.curviness) ? 1 : v8.curviness, false, v8.type === 'thruBasic', v8.correlate, v9) : com.greensock.plugins.BezierPlugin._parseBezierData(v11, v8.type, v6); this._segCount = this._beziers[v2].length; if (this._timeRes) { var v14 = com.greensock.plugins.BezierPlugin._parseLengthData(this._beziers, this._timeRes); this._length = v14.length; this._lengths = v14.lengths; this._segments = v14.segments; this._si = 0; this._s1 = 0; this._li = 0; this._l1 = 0; this._l2 = this._lengths[0]; this._curSeg = this._segments[0]; this._s2 = this._curSeg[0]; this._prec = 1 / this._curSeg.length; } v7 = this._autoRotate; if (v7) { if (!(v7[0] instanceof Array)) { v7 = [v7]; this._autoRotate = v7; } v5 = v7.length; while (--v5 > -1) { v4 = 0; while (v4 < 3) { v2 = v7[v5][v4]; this._func[v2] = (typeof target[v2] === 'function') ? target[(v2.indexOf('set') || typeof target['get' + v2.substr(3)] !== 'function') ? v2 : 'get' + v2.substr(3)] : false; ++v4; } } } return true; }; v1.bezierThrough = function (values, curviness, quadratic, basic, correlate, prepend) { if (curviness == null) { curviness = 1; } var v8 = {}; var v6 = []; var v13 = prepend || values[0]; var v2; var v3; var v1; var v4; var v9; var v5; var v10; var v14; correlate = (typeof correlate === 'string') ? ',' + correlate + ',' : ',_x,_y,x,y,z,'; for (v3 in values[0]) { v6.push(v3); } if (values.length > 1) { v14 = values[values.length - 1]; v10 = true; v2 = v6.length; while (--v2 > -1) { v3 = v6[v2]; if (Math.abs(v13[v3] - v14[v3]) > 0.05) { v10 = false; break; } } if (v10) { values = values.concat(); if (prepend) { values.unshift(prepend); } values.push(values[1]); prepend = values[values.length - 3]; } } com.greensock.plugins.BezierPlugin._r3.length = 0; com.greensock.plugins.BezierPlugin._r2.length = 0; com.greensock.plugins.BezierPlugin._r1.length = 0; v2 = v6.length; while (--v2 > -1) { v3 = v6[v2]; com.greensock.plugins.BezierPlugin._corProps[v3] = correlate.indexOf(',' + v3 + ',') !== -1; v8[v3] = com.greensock.plugins.BezierPlugin._parseAnchors(values, v3, com.greensock.plugins.BezierPlugin._corProps[v3], prepend); } v2 = com.greensock.plugins.BezierPlugin._r1.length; while (--v2 > -1) { com.greensock.plugins.BezierPlugin._r1[v2] = Math.sqrt(com.greensock.plugins.BezierPlugin._r1[v2]); com.greensock.plugins.BezierPlugin._r2[v2] = Math.sqrt(com.greensock.plugins.BezierPlugin._r2[v2]); } if (!basic) { v2 = v6.length; while (--v2 > -1) { if (com.greensock.plugins.BezierPlugin._corProps[v3]) { v4 = v8[v6[v2]]; v9 = v4.length - 1; v1 = 0; while (v1 < v9) { v5 = v4[v1 + 1].da / com.greensock.plugins.BezierPlugin._r2[v1] + v4[v1].da / com.greensock.plugins.BezierPlugin._r1[v1]; com.greensock.plugins.BezierPlugin._r3[v1] = (com.greensock.plugins.BezierPlugin._r3[v1] || 0) + v5 * v5; ++v1; } } } v2 = com.greensock.plugins.BezierPlugin._r3.length; while (--v2 > -1) { com.greensock.plugins.BezierPlugin._r3[v2] = Math.sqrt(com.greensock.plugins.BezierPlugin._r3[v2]); } } v2 = v6.length; v1 = quadratic ? 4 : 1; while (--v2 > -1) { v3 = v6[v2]; v4 = v8[v3]; com.greensock.plugins.BezierPlugin._calculateControlPoints(v4, curviness, quadratic, basic, com.greensock.plugins.BezierPlugin._corProps[v3]); if (v10) { v4.splice(0, v1); v4.splice(v4.length - v1, v1); } } return v8; }; v1._parseBezierData = function (values, type, prepend) { type = type || 'soft'; var v17 = {}; var v10 = (type === 'cubic') ? 3 : 2; var v14 = type === 'soft'; var v3; var v8; var v7; var v13; var v2; var v15; var v16; var v1; var v9; var v5; var v4; var v6; if (v14 && prepend) { values = [prepend].concat(values); } if (values == null || values.length < v10 + 1) { trace('invalid Bezier data'); } v15 = []; for (v5 in values[0]) { v15.push(v5); } v16 = v15.length; while (--v16 > -1) { v5 = v15[v16]; v2 = []; v17[v5] = v2; v4 = 0; v9 = values.length; v1 = 0; while (v1 < v9) { v3 = (prepend == null) ? values[v1][v5] : ((typeof v6 === 'string' && v6.charAt(1) === '=') ? prepend[v5] + Number(v6.charAt(0) + v6.substr(2)) : Number(v6)); if (v14) { if (v1 > 1) { if (v1 < v9 - 1) { v2[v4++] = (v3 + v2[v4 - 2]) / 2; } } } v2[v4++] = v3; ++v1; } v9 = v4 - v10 + 1; v4 = 0; v1 = 0; while (v1 < v9) { v3 = v2[v1]; v8 = v2[v1 + 1]; v7 = v2[v1 + 2]; v13 = (v10 === 2) ? 0 : v2[v1 + 3]; v2[v4++] = (v10 === 3) ? new com.greensock.plugins.core.Segment(v3, v8, v7, v13) : new com.greensock.plugins.core.Segment(v3, (2 * v8 + v3) / 3, (2 * v8 + v7) / 3, v7); v1 += v10; } v2.length = v4; } return v17; }; v1._parseAnchors = function (values, p, correlate, prepend) { var v8 = []; var v9; var v1; var v5; var v4; var v7; var v6; if (prepend) { values = [prepend].concat(values); v1 = values.length; while (--v1 > -1) { v6 = values[v1][p]; if (typeof v6 === 'string') { if (v6.charAt(1) === '=') { values[v1][p] = prepend[p] + Number(v6.charAt(0) + v6.substr(2)); } } } } v9 = values.length - 2; if (v9 < 0) { v8[0] = new com.greensock.plugins.core.Segment(values[0][p], 0, 0, values[v9 < -1 ? 0 : 1][p]); return v8; } v1 = 0; while (v1 < v9) { v5 = values[v1][p]; v4 = values[v1 + 1][p]; v8[v1] = new com.greensock.plugins.core.Segment(v5, 0, 0, v4); if (correlate) { v7 = values[v1 + 2][p]; com.greensock.plugins.BezierPlugin._r1[v1] = (com.greensock.plugins.BezierPlugin._r1[v1] || 0) + (v4 - v5) * (v4 - v5); com.greensock.plugins.BezierPlugin._r2[v1] = (com.greensock.plugins.BezierPlugin._r2[v1] || 0) + (v7 - v4) * (v7 - v4); } ++v1; } v8[v1] = new com.greensock.plugins.core.Segment(values[v1][p], 0, 0, values[v1 + 1][p]); return v8; }; v1._calculateControlPoints = function (a, curviness, quad, basic, correlate) { var v19 = a.length - 1; var v10 = 0; var v6 = a[0].a; var v5; var v4; var v2; var v16; var v1; var v3; var v7; var v13; var v15; var v9; var v8; var v11; var v17; v5 = 0; while (v5 < v19) { v1 = a[v10]; v4 = v1.a; v2 = v1.d; v16 = a[v10 + 1].d; if (correlate) { v8 = com.greensock.plugins.BezierPlugin._r1[v5]; v11 = com.greensock.plugins.BezierPlugin._r2[v5]; v17 = (v11 + v8) * curviness * 0.25 / (basic ? 0.5 : (com.greensock.plugins.BezierPlugin._r3[v5] || 0.5)); v3 = v2 - (v2 - v4) * (basic ? curviness * 0.5 : ((v8 !== 0) ? v17 / v8 : 0)); v7 = v2 + (v16 - v2) * (basic ? curviness * 0.5 : ((v11 !== 0) ? v17 / v11 : 0)); v13 = v2 - (v3 + ((v7 - v3) * (v8 * 3 / (v8 + v11) + 0.5) / 4 || 0)); } else { v3 = v2 - (v2 - v4) * curviness * 0.5; v7 = v2 + (v16 - v2) * curviness * 0.5; v13 = v2 - (v3 + v7) / 2; } v3 += v13; v7 += v13; v15 = v3; v1.c = v15; if (v5 != 0) { v1.b = v6; } else { v6 = v1.a + (v1.c - v1.a) * 0.6; v1.b = v6; } v1.da = v2 - v4; v1.ca = v15 - v4; v1.ba = v6 - v4; if (quad) { v9 = com.greensock.plugins.BezierPlugin.cubicToQuadratic(v4, v6, v15, v2); a.splice(v10, 1, v9[0], v9[1], v9[2], v9[3]); v10 += 4; } else { ++v10; } v6 = v7; ++v5; } v1 = a[v10]; v1.b = v6; v1.c = v6 + (v1.d - v6) * 0.4; v1.da = v1.d - v1.a; v1.ca = v1.c - v1.a; v1.ba = v6 - v1.a; if (quad) { v9 = com.greensock.plugins.BezierPlugin.cubicToQuadratic(v1.a, v6, v1.c, v1.d); a.splice(v10, 1, v9[0], v9[1], v9[2], v9[3]); } }; v1.cubicToQuadratic = function (a, b, c, d) { var v4 = {'a': a}; var v2 = {}; var v1 = {}; var v3 = {'c': d}; var v8 = (a + b) / 2; var v11 = (b + c) / 2; var v6 = (c + d) / 2; var v7 = (v8 + v11) / 2; var v5 = (v11 + v6) / 2; var v12 = (v5 - v7) / 8; v4.b = v8 + (a - v8) / 4; v2.b = v7 + v12; v2.a = (v4.b + v2.b) / 2; v4.c = v2.a; v1.a = (v7 + v5) / 2; v2.c = v1.a; v1.b = v5 - v12; v3.b = v6 + (d - v6) / 4; v3.a = (v1.b + v3.b) / 2; v1.c = v3.a; return [v4, v2, v1, v3]; }; v1.quadraticToCubic = function (a, b, c) { return new com.greensock.plugins.core.Segment(a, (2 * b + a) / 3, (2 * b + c) / 3, c); }; v1._parseLengthData = function (obj, precision) { if (precision == null) { precision = 6; } var v6 = []; var v12 = []; var v3 = 0; var v7 = 0; var v10 = precision - 1; var v13 = []; var v5 = []; var v8; var v2; var v11; var v1; for (v8 in obj) { com.greensock.plugins.BezierPlugin._addCubicLengths(obj[v8], v6, precision); } v11 = v6.length; v2 = 0; while (v2 < v11) { v3 += Math.sqrt(v6[v2]); v1 = v2 % precision; v5[v1] = v3; if (v1 == v10) { v7 += v3; v1 = v2 / precision >> 0; v13[v1] = v5; v12[v1] = v7; v3 = 0; v5 = []; } ++v2; } return {'length': v7, 'lengths': v12, 'segments': v13}; }; v1._addCubicLengths = function (a, steps, precision) { if (precision == null) { precision = 6; } var v15 = 1 / precision; var v9 = a.length; var v3; var v7; var v10; var v12; var v14; var v13; var v1; var v2; var v5; var v6; var v4; while (--v9 > -1) { v6 = a[v9]; v10 = v6.a; v12 = v6.d - v10; v14 = v6.c - v10; v13 = v6.b - v10; v7 = 0; v3 = v7; v2 = 1; while (v2 <= precision) { v1 = v15 * v2; v5 = 1 - v1; v7 = (v1 * v1 * v12 + 3 * v5 * (v1 * v14 + v5 * v13)) * v1; v3 = v7 - v7; v4 = v9 * precision + v2 - 1; steps[v4] = (steps[v4] || 0) + v3 * v3; ++v2; } } }; v2._kill = function (lookup) { var v5 = this._props; var v4; var v3; for (v4 in this._beziers) { if (lookup[v4] != null) { delete this._beziers[v4]; delete this._func[v4]; v3 = v5.length; while (--v3 > -1) { if (v5[v3] === v4) { v5.splice(v3, 1); } } } } return super._kill(lookup); }; v2._roundProps = function (lookup, value) { var v4 = this._overwriteProps; var v2 = v4.length; while (--v2 > -1) { if (lookup[v4[v2]] != null || lookup.bezier || lookup.bezierThrough) { this._round[v4[v2]] = value; } } }; v2.setRatio = function (v) { var v23 = this._segCount; var v20 = this._func; var v12 = this._target; var v16; var v19; var v2; var v5; var v3; var v4; var v7; var v18; var v17; var v15; if (this._timeRes == 0) { v16 = v < 0 ? 0 : (v >= 1 ? v23 - 1 : v23 * v >> 0); v4 = (v - v16 * (1 / v23)) * v23; } else { v17 = this._lengths; v15 = this._curSeg; v *= this._length; v2 = this._li; if (v > this._l2 && v2 < v23 - 1) { v18 = v23 - 1; for (;;) { if (!(v2 < v18 && this._l2 <= v)) break; } this._l1 = v17[v2 - 1]; this._li = v2; v15 = this._segments[v2]; this._curSeg = v15; this._si = 0; this._s1 = 0; this._s2 = v15[0]; } else { if (v < this._l1 && v2 > 0) { for (;;) { if (!(v2 > 0 && this._l1 >= v)) break; } if (v2 === 0 && v < this._l1) { this._l1 = 0; } else { ++v2; } this._l2 = v17[v2]; this._li = v2; v15 = this._segments[v2]; this._curSeg = v15; this._si = v15.length - 1; this._s1 = v15[this._si - 1] || 0; this._s2 = v15[this._si]; } } v16 = v2; v -= this._l1; v2 = this._si; if (v > this._s2 && v2 < v15.length - 1) { v18 = v15.length - 1; for (;;) { if (!(v2 < v18 && this._s2 <= v)) break; } this._s1 = v15[v2 - 1]; this._si = v2; } else { if (v < this._s1 && v2 > 0) { for (;;) { if (!(v2 > 0 && this._s1 >= v)) break; } if (v2 === 0 && v < this._s1) { this._s1 = 0; } else { ++v2; } this._s2 = v15[v2]; this._si = v2; } } v4 = (v2 + (v - this._s1) / (this._s2 - this._s1)) * this._prec; } v19 = 1 - v4; v2 = this._props.length; while (--v2 > -1) { v5 = this._props[v2]; v3 = this._beziers[v5][v16]; v7 = (v4 * v4 * v3.da + 3 * v19 * (v4 * v3.ca + v19 * v3.ba)) * v4 + v3.a; if (this._round[v5]) { v7 = v7 + (v7 > 0 ? 0.5 : -0.5) >> 0; } if (v20[v5]) { v12[v5](v7); } else { v12[v5] = v7; } } if (this._autoRotate != null) { var v9 = this._autoRotate; var v6; var v14; var v13; var v11; var v10; var v22; var v21; v2 = v9.length; while (--v2 > -1) { v5 = v9[v2][2]; v22 = v9[v2][3] || 0; v21 = (v9[v2][4] == true) ? 1 : com.greensock.plugins.BezierPlugin._RAD2DEG; v3 = this._beziers[v9[v2][0]][v16]; v6 = this._beziers[v9[v2][1]][v16]; v14 = v3.a + (v3.b - v3.a) * v4; v11 = v3.b + (v3.c - v3.b) * v4; v14 += (v11 - v14) * v4; v11 += (v3.c + (v3.d - v3.c) * v4 - v11) * v4; v13 = v6.a + (v6.b - v6.a) * v4; v10 = v6.b + (v6.c - v6.b) * v4; v13 += (v10 - v13) * v4; v10 += (v6.c + (v6.d - v6.c) * v4 - v10) * v4; v7 = Math.atan2(v10 - v13, v11 - v14) * v21 + v22; if (v20[v5]) { v12[v5](v7); } else { v12[v5] = v7; } } } }; v1.API = 2; v1._RAD2DEG = 57.29577951308232; v1._r1 = []; v1._r2 = []; v1._r3 = []; v1._corProps = {}; ASSetPropFlags(com.greensock.plugins.BezierPlugin.prototype, null, 1); } #endinitclip } movieClip 1195 __Packages.com.greensock.plugins.core.Segment { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.core) { _global.com.greensock.plugins.core = new Object(); } if (!_global.com.greensock.plugins.core.Segment) { var v1 = function (a, b, c, d) { this.a = a; this.b = b; this.c = c; this.d = d; this.da = d - a; this.ca = c - a; this.ba = b - a; }; com.greensock.plugins.core.Segment = v1; var v2 = v1.prototype; ASSetPropFlags(com.greensock.plugins.core.Segment.prototype, null, 1); } #endinitclip } movieClip 1196 __Packages.com.greensock.plugins.BezierThroughPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.BezierThroughPlugin) { var v1 = function () { super(); this._propName = 'bezierThrough'; }; com.greensock.plugins.BezierThroughPlugin = v1; com.greensock.plugins.BezierThroughPlugin extends com.greensock.plugins.BezierPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { if (value instanceof Array) { value = {'values': value}; } value.type = 'thru'; return super._onInitTween(target, value, tween); }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.BezierThroughPlugin.prototype, null, 1); } #endinitclip } movieClip 1197 __Packages.com.greensock.plugins.BlurFilterPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.BlurFilterPlugin) { var v1 = function () { super('blurFilter'); }; com.greensock.plugins.BlurFilterPlugin = v1; com.greensock.plugins.BlurFilterPlugin extends com.greensock.plugins.FilterPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { return this._initFilter(target, value, tween, flash.filters.BlurFilter, new flash.filters.BlurFilter(0, 0, value.quality || 2), com.greensock.plugins.BlurFilterPlugin._propNames); }; v1.API = 2; v1._propNames = ['blurX', 'blurY', 'quality']; ASSetPropFlags(com.greensock.plugins.BlurFilterPlugin.prototype, null, 1); } #endinitclip } movieClip 1198 __Packages.com.greensock.plugins.ColorMatrixFilterPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.ColorMatrixFilterPlugin) { var v1 = function () { super('colorMatrixFilter'); }; com.greensock.plugins.ColorMatrixFilterPlugin = v1; com.greensock.plugins.ColorMatrixFilterPlugin extends com.greensock.plugins.FilterPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { var v3 = value; this._initFilter(target, {'remove': value.remove, 'index': value.index, 'addFilter': value.addFilter}, tween, flash.filters.ColorMatrixFilter, new flash.filters.ColorMatrixFilter(com.greensock.plugins.ColorMatrixFilterPlugin._idMatrix.slice()), com.greensock.plugins.ColorMatrixFilterPlugin._propNames); this._matrix = (flash.filters.ColorMatrixFilter(this._filter)).matrix; var v2 = []; if (v3.matrix != null && v3.matrix instanceof Array) { v2 = v3.matrix; this._matrixTween = new com.greensock.plugins.EndArrayPlugin(); this._matrixTween._init(this._matrix, v2); return true; } if (v3.relative) { v2 = this._matrix.slice(); } else { v2 = com.greensock.plugins.ColorMatrixFilterPlugin._idMatrix.slice(); } v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setBrightness(v2, v3.brightness); v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setContrast(v2, v3.contrast); v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setHue(v2, v3.hue); v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setSaturation(v2, v3.saturation); v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setThreshold(v2, v3.threshold); if (!isNaN(v3.colorize)) { v2 = com.greensock.plugins.ColorMatrixFilterPlugin.colorize(v2, v3.colorize, v3.amount); } this._matrixTween = new com.greensock.plugins.EndArrayPlugin(); this._matrixTween._init(this._matrix, v2); return true; }; v2.setRatio = function (v) { this._matrixTween.setRatio(v); (flash.filters.ColorMatrixFilter(this._filter)).matrix = this._matrix; super.setRatio(v); }; v1.colorize = function (m, color, amount) { if (isNaN(color)) { return m; var v3 = (color >> 16 & 255) / 255; var v5 = (color >> 8 & 255) / 255; var v2 = (color & 255) / 255; var v4 = 1 - amount; var v7 = [v4 + amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, v4 + amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, v4 + amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0]; return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v7, m); } if (isNaN(amount)) { amount = 1; } var v3 = (color >> 16 & 255) / 255; var v5 = (color >> 8 & 255) / 255; var v2 = (color & 255) / 255; var v4 = 1 - amount; var v7 = [v4 + amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, v4 + amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, v4 + amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0]; return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v7, m); }; v1.setThreshold = function (m, n) { if (isNaN(n)) { return m; } var v2 = [com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, 0, 0, 0, 1, 0]; return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v2, m); }; v1.setHue = function (m, n) { if (isNaN(n)) { return m; } n *= 0.0174532925199433; var v1 = Math.cos(n); var v2 = Math.sin(n); var v4 = [com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumR) + v2 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR, com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v2 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v2 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumB), 0, 0, com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v2 * 0.143, com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumG) + v2 * 0.14, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v2 * -0.283, 0, 0, com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v2 * -(1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumR), com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumB) + v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v4, m); }; v1.setBrightness = function (m, n) { if (isNaN(n)) { return m; } n = n * 100 - 100; return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix([1, 0, 0, 0, n, 0, 1, 0, 0, n, 0, 0, 1, 0, n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m); }; v1.setSaturation = function (m, n) { if (isNaN(n)) { return m; } var v4 = 1 - n; var v2 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR; var v5 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG; var v1 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB; var v6 = [v2 + n, v5, v1, 0, 0, v2, v5 + n, v1, 0, 0, v2, v5, v1 + n, 0, 0, 0, 0, 0, 1, 0]; return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v6, m); }; v1.setContrast = function (m, n) { if (isNaN(n)) { return m; } n += 0.01; var v2 = [n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0]; return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v2, m); }; v1.applyMatrix = function (m, m2) { if (!(m instanceof Array) || !(m2 instanceof Array)) { return m2; } var v7 = []; var v2 = 0; var v5 = 0; var v6; var v1; v6 = 0; while (v6 < 4) { v1 = 0; while (v1 < 5) { v5 = (v1 == 4) ? m[v2 + 4] : 0; v7[v2 + v1] = m[v2] * m2[v1] + m[v2 + 1] * m2[v1 + 5] + m[v2 + 2] * m2[v1 + 10] + m[v2 + 3] * m2[v1 + 15] + v5; ++v1; } v2 += 5; ++v6; } return v7; }; v1.API = 2; v1._propNames = []; v1._idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; v1._lumR = 0.212671; v1._lumG = 0.71516; v1._lumB = 0.072169; ASSetPropFlags(com.greensock.plugins.ColorMatrixFilterPlugin.prototype, null, 1); } #endinitclip } movieClip 1199 __Packages.com.greensock.plugins.ColorTransformPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.ColorTransformPlugin) { var v1 = function () { super(); this._propName = 'colorTransform'; }; com.greensock.plugins.ColorTransformPlugin = v1; com.greensock.plugins.ColorTransformPlugin extends com.greensock.plugins.TintPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { if (typeof target != 'movieclip' && !(target instanceof TextField)) { return false; } var v7 = new Color(target); var v2 = v7.getTransform(); if (value.redMultiplier != null) { v2.ra = value.redMultiplier * 100; } if (value.greenMultiplier != null) { v2.ga = value.greenMultiplier * 100; } if (value.blueMultiplier != null) { v2.ba = value.blueMultiplier * 100; } if (value.alphaMultiplier != null) { v2.aa = value.alphaMultiplier * 100; } if (value.redOffset != null) { v2.rb = value.redOffset; } if (value.greenOffset != null) { v2.gb = value.greenOffset; } if (value.blueOffset != null) { v2.bb = value.blueOffset; } if (value.alphaOffset != null) { v2.ab = value.alphaOffset; } if (!isNaN(value.tint) || !isNaN(value.color)) { var v4 = !isNaN(value.tint) ? value.tint : value.color; if (v4 != null) { v2.rb = Number(v4) >> 16; v2.gb = Number(v4) >> 8 & 255; v2.bb = Number(v4) & 255; v2.ra = 0; v2.ga = 0; v2.ba = 0; } } if (!isNaN(value.tintAmount)) { var v5 = value.tintAmount / (1 - (v2.ra + v2.ga + v2.ba) / 300); v2.rb *= v5; v2.gb *= v5; v2.bb *= v5; v2.ba = (1 - value.tintAmount) * 100; v2.ga = v2.ba; v2.ra = v2.ba; } else { if (!isNaN(value.exposure)) { v2.bb = 255 * (value.exposure - 1); v2.gb = v2.bb; v2.rb = v2.bb; v2.ba = 100; v2.ga = 100; v2.ra = 100; } else { if (!isNaN(value.brightness)) { v2.bb = Math.max(0, (value.brightness - 1) * 255); v2.gb = v2.bb; v2.rb = v2.bb; v2.ba = (1 - Math.abs(value.brightness - 1)) * 100; v2.ga = v2.ba; v2.ra = v2.ba; } } } if (tween.vars._alpha != null && value.alphaMultiplier == null) { v2.aa = tween.vars._alpha; tween._kill({'_alpha': 1}); } this._init(target, v2); return true; }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.ColorTransformPlugin.prototype, null, 1); } #endinitclip } movieClip 1200 __Packages.com.greensock.plugins.DropShadowFilterPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.DropShadowFilterPlugin) { var v1 = function () { super('dropShadowFilter'); }; com.greensock.plugins.DropShadowFilterPlugin = v1; com.greensock.plugins.DropShadowFilterPlugin extends com.greensock.plugins.FilterPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { return this._initFilter(target, value, tween, flash.filters.DropShadowFilter, new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, value.quality || 2, value.inner, value.knockout, value.hideObject), com.greensock.plugins.DropShadowFilterPlugin._propNames); }; v1.API = 2; v1._propNames = ['distance', 'angle', 'color', 'alpha', 'blurX', 'blurY', 'strength', 'quality', 'inner', 'knockout', 'hideObject']; ASSetPropFlags(com.greensock.plugins.DropShadowFilterPlugin.prototype, null, 1); } #endinitclip } movieClip 1201 __Packages.com.greensock.plugins.FrameLabelPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.FrameLabelPlugin) { var v1 = function () { super(); this._propName = 'frameLabel'; }; com.greensock.plugins.FrameLabelPlugin = v1; com.greensock.plugins.FrameLabelPlugin extends com.greensock.plugins.FramePlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { if (typeof tween.target != 'movieclip') { return false; } this._target = MovieClip(target); this.frame = this._target._currentframe; var v2 = this._target.duplicateMovieClip('__frameLabelPluginTempMC', this._target._parent.getNextHighestDepth()); v2.gotoAndStop(value); var v3 = v2._currentframe; v2.removeMovieClip(); if (this.frame != v3) { this._addTween(this, 'frame', this.frame, v3, 'frame', true); } return true; }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.FrameLabelPlugin.prototype, null, 1); } #endinitclip } movieClip 1202 __Packages.com.greensock.plugins.GlowFilterPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.GlowFilterPlugin) { var v1 = function () { super('glowFilter'); }; com.greensock.plugins.GlowFilterPlugin = v1; com.greensock.plugins.GlowFilterPlugin extends com.greensock.plugins.FilterPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { return this._initFilter(target, value, tween, flash.filters.GlowFilter, new flash.filters.GlowFilter(16777215, 0, 0, 0, value.strength || 1, value.quality || 2, value.inner, value.knockout), com.greensock.plugins.GlowFilterPlugin._propNames); }; v1.API = 2; v1._propNames = ['color', 'alpha', 'blurX', 'blurY', 'strength', 'quality', 'inner', 'knockout']; ASSetPropFlags(com.greensock.plugins.GlowFilterPlugin.prototype, null, 1); } #endinitclip } movieClip 1203 __Packages.com.greensock.plugins.RoundPropsPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.RoundPropsPlugin) { var v1 = function () { super('roundProps', -1); }; com.greensock.plugins.RoundPropsPlugin = v1; com.greensock.plugins.RoundPropsPlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { this._tween = tween; return true; }; v2._onInitAllProps = function () { var v7 = this._tween.vars.roundProps instanceof Array ? this._tween.vars.roundProps : this._tween.vars.roundProps.split(','); var v5 = v7.length; var v6 = {}; var v8 = this._tween._propLookup.roundProps; var v4; var v2; var v3; while (--v5 > -1) { v6[v7[v5]] = 1; } v5 = v7.length; while (--v5 > -1) { v4 = v7[v5]; v2 = this._tween._firstPT; while (v2) { v3 = v2._next; if (v2.pg) { v2.t._roundProps(v6, true); } else { if (v2.n == v4) { this._add(v2.t, v4, v2.s, v2.c); if (v3) { v3._prev = v2._prev; } if (v2._prev) { v2._prev._next = v3; } else { if (this._tween._firstPT == v2) { this._tween._firstPT = v3; } } v2._prev = null; v2._next = v2._prev; this._tween._propLookup[v4] = v8; } } v2 = v3; } } return false; }; v2._add = function (target, p, s, c) { this._addTween(target, p, s, s + c, p, true); this._overwriteProps[this._overwriteProps.length] = p; }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.RoundPropsPlugin.prototype, null, 1); } #endinitclip } movieClip 1204 __Packages.com.greensock.plugins.ShortRotationPlugin { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.plugins) { _global.com.greensock.plugins = new Object(); } if (!_global.com.greensock.plugins.ShortRotationPlugin) { var v1 = function () { super('shortRotation'); this._overwriteProps = []; }; com.greensock.plugins.ShortRotationPlugin = v1; com.greensock.plugins.ShortRotationPlugin extends com.greensock.plugins.TweenPlugin; var v2 = v1.prototype; v2._onInitTween = function (target, value, tween) { if (typeof value == 'number') { return false; } var v5 = Boolean(value.useRadians == true); var v4; for (var v6 in value) { if (v6 != 'useRadians') { v4 = (typeof target[v6] == 'function') ? target[(v6.indexOf('set') || typeof target['get' + v6.substr(3)] !== 'function') ? v6 : 'get' + v6.substr(3)]() : target[v6]; this._initRotation(target, v6, v4, (typeof value[v6] == 'number') ? Number(value[v6]) : v4 + Number((value[v6].split('=')).join('')), v5); } } return true; }; v2._initRotation = function (target, p, start, end, useRadians) { var v3 = useRadians ? 6.283185307179586 : 360; var v2 = (end - start) % v3; if (v2 != v2 % v3 / 2) { v2 = v2 < 0 ? v2 + v3 : v2 - v3; } this._addTween(target, p, start, start + v2, p); this._overwriteProps[this._overwriteProps.length] = p; }; v1.API = 2; ASSetPropFlags(com.greensock.plugins.ShortRotationPlugin.prototype, null, 1); } #endinitclip } movieClip 1205 __Packages.com.greensock.TweenMax { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.TweenMax) { var v1 = function (target, duration, vars) { super(target, duration, vars); this._cycle = 0; this._yoyo = this.vars.yoyo == true; this._repeat = this.vars.repeat || 0; this._repeatDelay = this.vars.repeatDelay || 0; this._dirty = true; }; com.greensock.TweenMax = v1; com.greensock.TweenMax extends com.greensock.TweenLite; var v2 = v1.prototype; v2.invalidate = function () { this._yoyo = this.vars.yoyo == true; this._repeat = this.vars.repeat || 0; this._repeatDelay = this.vars.repeatDelay || 0; this._uncache(true); return super.invalidate(); }; v2.updateTo = function (vars, resetDuration) { var v7 = this.ratio; if (resetDuration) { if (this.timeline != null) { if (this._startTime < this._timeline._time) { this._startTime = this._timeline._time; this._uncache(false); if (this._gc) { this._enabled(true, false); } else { this._timeline.insert(this, this._startTime - this._delay); } } } } for (var v6 in vars) { this.vars[v6] = vars[v6]; } if (this._initted) { if (resetDuration) { this._initted = false; return this; } if (this._notifyPluginsOfEnabled && this._firstPT) { com.greensock.TweenLite._onPluginEvent('_onDisable', this); } if (this._time / this._duration > 0.998) { var v8 = this._time; this.render(0, true, false); this._initted = false; this.render(v8, true, false); return this; } if (this._time > 0) { this._initted = false; this._init(); var v5 = 1 / (1 - v7); var v2 = this._firstPT; var v3; while (v2) { v3 = v2.s + v2.c; v2.c *= v5; v2.s = v3 - v2.c; v2 = v2._next; } } } return this; }; v2.render = function (time, suppressEvents, force) { var v13 = !this._dirty ? this._totalDuration : this.totalDuration(); var v14 = this._time; var v11 = this._totalTime; var v15 = this._cycle; var v10; var v5; var v2; if (time >= v13) { this._totalTime = v13; this._cycle = this._repeat; if (this._yoyo && (this._cycle & 1) !== 0) { this._time = 0; this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0; } else { this._time = this._duration; this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1; } if (!this._reversed) { v10 = true; v5 = 'onComplete'; } if (this._duration === 0) { if (time === 0 || this._rawPrevTime < 0) { if (this._rawPrevTime !== time) { force = true; if (this._rawPrevTime > 0) { v5 = 'onReverseComplete'; if (suppressEvents) { time = -1; } } } } this._rawPrevTime = time; } } else { if (time < 1.0e-007) { this._cycle = 0; this._time = 0; this._totalTime = 0; this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0; if (v11 != 0 || this._duration == 0 && this._rawPrevTime > 0) { v5 = 'onReverseComplete'; v10 = this._reversed; } if (time < 0) { this._active = false; if (this._duration == 0) { if (this._rawPrevTime >= 0) { force = true; } this._rawPrevTime = time; } } else { if (!this._initted) { force = true; } } } else { this._time = time; this._totalTime = this._time; if (this._repeat != 0) { var v12 = this._duration + this._repeatDelay; this._cycle = this._totalTime / v12 >> 0; if (this._cycle !== 0) { if (this._cycle === this._totalTime / v12) { --this._cycle; } } this._time = this._totalTime - this._cycle * v12; if (this._yoyo) { if ((this._cycle & 1) !== 0) { this._time = this._duration - this._time; } } if (this._time > this._duration) { this._time = this._duration; } else { if (this._time < 0) { this._time = 0; } } } if (this._easeType) { var v3 = this._time / this._duration; var v7 = this._easeType; var v8 = this._easePower; if (v7 === 1 || v7 === 3 && v3 >= 0.5) { v3 = 1 - v3; } if (v7 === 3) { v3 *= 2; } if (v8 === 1) { v3 *= v3; } else { if (v8 === 2) { v3 *= v3 * v3; } else { if (v8 === 3) { v3 *= v3 * v3 * v3; } else { if (v8 === 4) { v3 *= v3 * v3 * v3 * v3; } } } } if (v7 === 1) { this.ratio = 1 - v3; } else { if (v7 === 2) { this.ratio = v3; } else { if (this._time / this._duration < 0.5) { this.ratio = v3 / 2; } else { this.ratio = 1 - v3 / 2; } } } } else { this.ratio = this._ease.getRatio(this._time / this._duration); } } } if (v14 === this._time && !force) { if (v11 !== this._totalTime) { if (this._onUpdate != null) { if (!suppressEvents) { this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams); } } } return undefined; } else { if (!this._initted) { this._init(); if (!this._initted) { return undefined; } if (this._time && !v10) { this.ratio = this._ease.getRatio(this._time / this._duration); } else { if (v10 && this._ease._calcEnd) { this.ratio = this._ease.getRatio((this._time === 0) ? 0 : 1); } } } } if (!this._active) { if (!this._paused && this._time !== v14 && time >= 0) { this._active = true; } } if (v11 == 0) { if (this._startAt != null) { if (time >= 0) { this._startAt.render(time, suppressEvents, force); } else { if (!v5) { v5 = '_dummyGS'; } } } if (this.vars.onStart) { if (this._totalTime !== 0 || this._duration === 0) { if (!suppressEvents) { this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams); } } } } v2 = this._firstPT; while (v2) { if (v2.f) { v2.t[v2.p](v2.c * this.ratio + v2.s); } else { v2.t[v2.p] = v2.c * this.ratio + v2.s; } v2 = v2._next; } if (this._onUpdate != null) { if (time < 0 && this._startAt != null) { this._startAt.render(time, suppressEvents, force); } if (!suppressEvents) { this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams); } } if (this._cycle != v15) { if (!suppressEvents) { if (!this._gc) { if (this.vars.onRepeat) { this.vars.onRepeat.apply(this.vars.onRepeatScope || this, this.vars.onRepeatParams); } } } } if (v5) { if (!this._gc) { if (time < 0 && this._startAt != null && this._onUpdate == null) { this._startAt.render(time, suppressEvents, true); } if (v10) { if (this._timeline.autoRemoveChildren) { this._enabled(false, false); } this._active = false; } if (!suppressEvents) { if (this.vars[v5]) { this.vars[v5].apply(this.vars[v5 + 'Scope'] || this, this.vars[v5 + 'Params']); } } } } }; v1.to = function (target, duration, vars) { return new com.greensock.TweenMax(target, duration, vars); }; v1.from = function (target, duration, vars) { vars.runBackwards = true; if (vars.immediateRender != false) { vars.immediateRender = true; } return new com.greensock.TweenMax(target, duration, vars); }; v1.fromTo = function (target, duration, fromVars, toVars) { toVars.startAt = fromVars; toVars.immediateRender = toVars.immediateRender != false && fromVars.immediateRender != false; return new com.greensock.TweenMax(target, duration, toVars); }; v1.staggerTo = function (targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) { stagger = stagger || 0; var v8 = []; var v6 = targets.length; var v7 = vars.delay || 0; var v3; var v5; var v4; v5 = 0; while (v5 < v6) { v3 = {}; for (v4 in vars) { v3[v4] = vars[v4]; } v3.delay = v7; if (v5 == v6 - 1) { if (onCompleteAll != null) { v3.onComplete = function () { if (vars.onComplete) { vars.onComplete.apply(vars.onCompleteScope || this, arguments); } onCompleteAll.apply(onCompleteAllScope, onCompleteAllParams); }; } } v8[v5] = new com.greensock.TweenMax(targets[v5], duration, v3); v7 += stagger; ++v5; } return v8; }; v1.staggerFrom = function (targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) { vars.runBackwards = true; if (vars.immediateRender != false) { vars.immediateRender = true; } return com.greensock.TweenMax.staggerTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope); }; v1.staggerFromTo = function (targets, duration, fromVars, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) { toVars.startAt = fromVars; toVars.immediateRender = toVars.immediateRender != false && fromVars.immediateRender != false; return com.greensock.TweenMax.staggerTo(targets, duration, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope); }; v1.delayedCall = function (delay, callback, params, scope, useFrames) { return new com.greensock.TweenMax(callback, 0, {'delay': delay, 'onComplete': callback, 'onCompleteParams': params, 'onCompleteScope': scope, 'onReverseComplete': callback, 'onReverseCompleteParams': params, 'onReverseCompleteScope': scope, 'immediateRender': false, 'useFrames': useFrames, 'overwrite': 0}); }; v1.set = function (target, vars) { return new com.greensock.TweenMax(target, 0, vars); }; v1.isTweening = function (target) { var v3 = com.greensock.TweenLite.getTweensOf(target); var v2 = v3.length; var v1; while (--v2 > -1) { v1 = v3[v2]; if (v1._active || v1._startTime == v1.timeline._time && v1.timeline._active) { return true; } } return false; }; v1.getAllTweens = function (includeTimelines) { var v1 = com.greensock.TweenMax._getChildrenOf(com.greensock.core.Animation._rootTimeline, includeTimelines); return v1.concat(com.greensock.TweenMax._getChildrenOf(com.greensock.core.Animation._rootFramesTimeline, includeTimelines)); }; v1._getChildrenOf = function (timeline, includeTimelines) { if (timeline == null) { return []; } var v2 = []; var v3 = 0; var v1 = timeline._first; while (v1) { if (v1 instanceof com.greensock.TweenLite) { v2[v3++] = v1; } else { if (includeTimelines) { v2[v3++] = v1; } v2 = v2.concat(com.greensock.TweenMax._getChildrenOf(com.greensock.core.SimpleTimeline(v1), includeTimelines)); v3 = v2.length; } v1 = v1._next; } return v2; }; v1.killAll = function (complete, tweens, delayedCalls, timelines) { if (tweens == null) { tweens = true; } if (delayedCalls == null) { delayedCalls = true; } var v5 = com.greensock.TweenMax.getAllTweens(timelines != false); var v7 = v5.length; var v3; var v8 = tweens && delayedCalls && timelines; var v1; var v2; v2 = 0; while (v2 < v7) { v1 = v5[v2]; if (v8 || v1 instanceof com.greensock.core.SimpleTimeline || v3 && delayedCalls || tweens && !v3) { if (complete) { v1.totalTime(Number(v1.totalDuration())); } else { v1._enabled(false, false); } } ++v2; } }; v1.killChildTweensOf = function (parent, complete) { var v3 = com.greensock.TweenMax.getAllTweens(false); var v4; var v2; var v7 = v3.length; var v1; v1 = 0; while (v1 < v7) { v4 = v3[v1].target; if (v4 instanceof MovieClip) { v2 = v4._parent; while (v2) { if (v2 == parent) { if (complete) { v3[v1].totalTime(v3[v1].totalDuration()); } else { v3[v1]._enabled(false, false); } } v2 = v2._parent; } } ++v1; } }; v1.pauseAll = function (tweens, delayedCalls, timelines) { com.greensock.TweenMax._changePause(true, tweens, delayedCalls, timelines); }; v1.resumeAll = function (tweens, delayedCalls, timelines) { com.greensock.TweenMax._changePause(false, tweens, delayedCalls, timelines); }; v1._changePause = function (pause, tweens, delayedCalls, timelines) { if (tweens == undefined) { tweens = true; } if (delayedCalls == undefined) { delayedCalls = true; } var v5 = com.greensock.TweenMax.getAllTweens(timelines); var v3; var v1; var v7 = tweens && delayedCalls && timelines; var v2 = v5.length; while (--v2 > -1) { v1 = v5[v2]; if (v7 || v1 instanceof com.greensock.core.SimpleTimeline || v3 && delayedCalls || tweens && !v3) { v1.paused(pause); } } }; v2.progress = function (value) { return !arguments.length ? this._time / this.duration() : this.totalTime(this.duration() * ((this._yoyo && (this._cycle & 1) !== 0) ? 1 - value : value) + this._cycle * (this._duration + this._repeatDelay), false); }; v2.totalProgress = function (value) { return !arguments.length ? this._totalTime / this.totalDuration() : this.totalTime(this.totalDuration() * value, false); }; v2.time = function (value, suppressEvents) { if (!arguments.length) { return this._time; } if (this._dirty) { this.totalDuration(); } if (value > this._duration) { value = this._duration; } if (this._yoyo && (this._cycle & 1) !== 0) { value = this._duration - value + this._cycle * (this._duration + this._repeatDelay); return this.totalTime(value, suppressEvents); } if (this._repeat != 0) { value += this._cycle * (this._duration + this._repeatDelay); } return this.totalTime(value, suppressEvents); }; v2.duration = function (value) { if (!arguments.length) { return this._duration; } return super.duration(value); }; v2.totalDuration = function (value) { if (!arguments.length) { if (this._dirty) { this._totalDuration = (this._repeat === -1) ? 999999999999.0 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat; this._dirty = false; } return this._totalDuration; } return (this._repeat == -1) ? this : this.duration((value - this._repeat * this._repeatDelay) / (this._repeat + 1)); }; v2.repeat = function (value) { if (!arguments.length) { return this._repeat; } this._repeat = value; return this._uncache(true); }; v2.repeatDelay = function (value) { if (!arguments.length) { return this._repeatDelay; } this._repeatDelay = value; return this._uncache(true); }; v2.yoyo = function (value) { if (!arguments.length) { return this._yoyo; } this._yoyo = value; return this; }; v1.globalTimeScale = function (value) { if (!arguments.length) { return (com.greensock.core.Animation._rootTimeline == null) ? 1 : com.greensock.core.Animation._rootTimeline._timeScale; } value = value || 0.0001; if (com.greensock.core.Animation._rootTimeline == null) { com.greensock.TweenLite.to({}, 0, {}); } var v2 = com.greensock.core.Animation._rootTimeline; var v3 = getTimer() / 1000; v2._startTime = v3 - (v3 - v2._startTime) * v2._timeScale / value; v2 = com.greensock.core.Animation._rootFramesTimeline; v3 = com.greensock.core.Animation._rootFrame; v2._startTime = v3 - (v3 - v2._startTime) * v2._timeScale / value; com.greensock.core.Animation._rootTimeline._timeScale = value; com.greensock.core.Animation._rootFramesTimeline._timeScale = com.greensock.core.Animation._rootTimeline._timeScale; return value; }; v1.version = '12.0.16'; v1._activatedPlugins = com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin, com.greensock.plugins.EndArrayPlugin, com.greensock.plugins.FramePlugin, com.greensock.plugins.RemoveTintPlugin, com.greensock.plugins.TintPlugin, com.greensock.plugins.VisiblePlugin, com.greensock.plugins.VolumePlugin, com.greensock.plugins.BevelFilterPlugin, com.greensock.plugins.BezierPlugin, com.greensock.plugins.BezierThroughPlugin, com.greensock.plugins.BlurFilterPlugin, com.greensock.plugins.ColorMatrixFilterPlugin, com.greensock.plugins.ColorTransformPlugin, com.greensock.plugins.DropShadowFilterPlugin, com.greensock.plugins.FrameLabelPlugin, com.greensock.plugins.GlowFilterPlugin, com.greensock.plugins.HexColorsPlugin, com.greensock.plugins.RoundPropsPlugin, com.greensock.plugins.ShortRotationPlugin]); v1.killTweensOf = com.greensock.TweenLite.killTweensOf; v1.killDelayedCallsTo = com.greensock.TweenLite.killTweensOf; v1.getTweensOf = com.greensock.TweenLite.getTweensOf; v1.ticker = com.greensock.core.Animation.ticker; v1.allTo = com.greensock.TweenMax.staggerTo; v1.allFrom = com.greensock.TweenMax.staggerFrom; v1.allFromTo = com.greensock.TweenMax.staggerFromTo; ASSetPropFlags(com.greensock.TweenMax.prototype, null, 1); } #endinitclip } movieClip 1206 __Packages.com.greensock.easing.SineOut { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.easing) { _global.com.greensock.easing = new Object(); } if (!_global.com.greensock.easing.SineOut) { var v1 = function () { super(); }; com.greensock.easing.SineOut = v1; com.greensock.easing.SineOut extends com.greensock.easing.Ease; var v2 = v1.prototype; v2.getRatio = function (p) { return Math.sin(p * com.greensock.easing.SineOut._HALF_PI); }; v1._HALF_PI = 1.570796326794897; v1.ease = new com.greensock.easing.SineOut(); ASSetPropFlags(com.greensock.easing.SineOut.prototype, null, 1); } #endinitclip } movieClip 1207 __Packages.com.greensock.easing.SineIn { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.easing) { _global.com.greensock.easing = new Object(); } if (!_global.com.greensock.easing.SineIn) { var v1 = function () { super(); }; com.greensock.easing.SineIn = v1; com.greensock.easing.SineIn extends com.greensock.easing.Ease; var v2 = v1.prototype; v2.getRatio = function (p) { return -Math.cos(p * com.greensock.easing.SineIn._HALF_PI) + 1; }; v1._HALF_PI = 1.570796326794897; v1.ease = new com.greensock.easing.SineIn(); ASSetPropFlags(com.greensock.easing.SineIn.prototype, null, 1); } #endinitclip } movieClip 1208 __Packages.com.greensock.easing.SineInOut { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.easing) { _global.com.greensock.easing = new Object(); } if (!_global.com.greensock.easing.SineInOut) { var v1 = function () { super(); }; com.greensock.easing.SineInOut = v1; com.greensock.easing.SineInOut extends com.greensock.easing.Ease; var v2 = v1.prototype; v2.getRatio = function (p) { return -0.5 * (Math.cos(Math.PI * p) - 1); }; v1.ease = new com.greensock.easing.SineInOut(); ASSetPropFlags(com.greensock.easing.SineInOut.prototype, null, 1); } #endinitclip } movieClip 1209 __Packages.com.greensock.easing.Sine { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.easing) { _global.com.greensock.easing = new Object(); } if (!_global.com.greensock.easing.Sine) { var v1 = function () {}; com.greensock.easing.Sine = v1; var v2 = v1.prototype; v1.easeOut = new com.greensock.easing.SineOut(); v1.easeIn = new com.greensock.easing.SineIn(); v1.easeInOut = new com.greensock.easing.SineInOut(); ASSetPropFlags(com.greensock.easing.Sine.prototype, null, 1); } #endinitclip } movieClip 53 __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 63 __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 64 __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 65 __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 69 __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 { stop(); } movieClip 123 { } movieClip 125 { frame 132 { _parent.gotoAndStop('setup'); } } instance of movieClip 125 { onClipEvent (load) { this.onPress = function () { getURL('http://www.newgrounds.com/', '_blank'); }; } } frame 3 { var savefile = SharedObject.getLocal('hyptoclub'); _global.costscale = 1.2; _global.playerhp = function () { _root.amerhp.text = _root.savefile.data.amerwynHP; _root.amerhp.text += '/'; _root.amerhp.text += _root.savefile.data.amerwynMAXHP; _root.amermp.text = _root.savefile.data.amerwynMP; _root.amermp.text += '/'; _root.amermp.text += _root.savefile.data.amerwynMAXMP; _root.willhp.text = _root.savefile.data.willHP; _root.willhp.text += '/'; _root.willhp.text += _root.savefile.data.willMAXHP; _root.willmp.text = _root.savefile.data.willMP; _root.willmp.text += '/'; _root.willmp.text += _root.savefile.data.willMAXMP; _root.meadowhp.text = _root.savefile.data.meadowHP; _root.meadowhp.text += '/'; _root.meadowhp.text += _root.savefile.data.meadowMAXHP; _root.meadowmp.text = _root.savefile.data.meadowMP; _root.meadowmp.text += '/'; _root.meadowmp.text += _root.savefile.data.meadowMAXMP; _root.goods.text = _root.savefile.data.experience; _root.goods.text += ' exp. -- '; _root.goods.text += _root.savefile.data.gold; _root.goods.text += ' gold coins.'; }; stop(); } // unknown tag 88 length 197 movieClip 212 { frame 1 { stop(); } } movieClip 215 { } movieClip 216 { frame 153 { _parent.gotoAndStop('menu'); } frame 154 { stop(); } } instance of movieClip 216 { onClipEvent (load) { clicksound = new Sound(); clicksound.attachSound('intro'); clicksound.start(); this.onPress = function () { getURL('http://lorestrome.com/', '_blank'); }; } } frame 4 { stop(); } movieClip 219 { } movieClip 220 { frame 24 { stop(); } } movieClip 223 { } movieClip 224 { } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Begin a new journey.'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (_root.savefile.data.thereIsSave == undefined) { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop('reset'); } } else { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop('sure'); } } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue your previous adventure.'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (_root.savefile.data.thereIsSave == undefined) { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); this.textbox.text = 'No Save Data! D:'; } else { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop('load'); } } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } movieClip 228 { } instance of movieClip 228 { onClipEvent (load) { music = new Sound(this); music.attachSound('music2'); music.start(0, 999); } } movieClip 231 { } instance of movieClip 231 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('http://hyptosis.livejournal.com/', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } movieClip 234 { } instance of movieClip 234 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('http://hyptosis.newgrounds.com/', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } movieClip 237 { } instance of movieClip 237 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('http://www.kongregate.com/accounts/Hyptosis/', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } movieClip 240 { } instance of movieClip 240 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('http://www.youtube.com/user/Hyptosis/featured', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } movieClip 243 { } instance of movieClip 243 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('http://hyptosis.deviantart.com/', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } movieClip 246 { } instance of movieClip 246 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('https://twitter.com/#!/hyptosis', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } // unknown tag 88 length 197 movieClip 249 { } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Play More Games!'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); getURL('http://www.newgrounds.com/games/browse/genre/adventure-rpg/interval/year/sort/score', '_blank'); }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 123 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('http://www.newgrounds.com/', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } movieClip 251 { } instance of movieClip 251 { onClipEvent (load) { this.onPress = function () { getURL('http://viridian-echoes.com/voice-acting/', '_blank'); }; } } movieClip 253 { } instance of movieClip 253 { onClipEvent (load) { this.onPress = function () { getURL('http://www.youtube.com/user/ratedEwithElspeth', '_blank'); }; } } movieClip 255 { } instance of movieClip 255 { onClipEvent (load) { this.onPress = function () { getURL('http://www.youtube.com/user/ricepiratenewgrounds', '_blank'); }; } } movieClip 257 { } instance of movieClip 257 { onClipEvent (load) { this.onPress = function () { getURL('http://wandschrank.newgrounds.com/', '_blank'); }; } } movieClip 259 { } instance of movieClip 259 { onClipEvent (load) { this.onPress = function () { getURL('http://lorestrome.com/', '_blank'); }; } } frame 5 { stop(); } movieClip 264 { frame 19 { _root.gotoAndStop('menuthing'); } } frame 6 { _root.savefile.data.thereIsSave = true; _root.savefile.data.events = {}; _root.savefile.data.visible = {}; _root.savefile.data.amerwynHP = 21; _root.savefile.data.meadowHP = 16; _root.savefile.data.willHP = 17; _root.savefile.data.amerwynMAXHP = 21; _root.savefile.data.meadowMAXHP = 16; _root.savefile.data.willMAXHP = 17; _root.savefile.data.amerwynMP = 10; _root.savefile.data.amerwynMAXMP = 10; _root.savefile.data.meadowMP = 15; _root.savefile.data.meadowMAXMP = 15; _root.savefile.data.willMP = 12; _root.savefile.data.willMAXMP = 12; _root.savefile.data.amerwynDMG = 2; _root.savefile.data.meadowDMG = 1; _root.savefile.data.willDMG = 3; _root.savefile.data.amerwynSTR = 3; _root.savefile.data.amerwynVIT = 2; _root.savefile.data.amerwynSPI = 1; _root.savefile.data.willSTR = 2; _root.savefile.data.willVIT = 2; _root.savefile.data.willSPI = 2; _root.savefile.data.meadowSTR = 1; _root.savefile.data.meadowVIT = 2; _root.savefile.data.meadowSPI = 3; _root.savefile.data.healingpotion = 2; _root.savefile.data.manapotion = 1; _root.savefile.data.redincense = 0; _root.savefile.data.blueincense = 0; _root.savefile.data.elixier = 1; _root.savefile.data.gold = 0; _root.savefile.data.experience = 0; _root.savefile.data.story = 0; _root.savefile.data.currentmap = 'map01'; _global.playerposition = [6, 2]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.savefile.data.amerwynHead = 'Nothing'; _root.savefile.data.amerwynBody = 'Chain Mesh'; _root.savefile.data.amerwynWeapon = 'Bronze Sword'; _root.savefile.data.amerwynOther = 'Nothing'; _root.savefile.data.willHead = 'Nothing'; _root.savefile.data.willBody = 'Cloth Shirt'; _root.savefile.data.willWeapon = 'Bronze Dagger'; _root.savefile.data.willOther = 'Nothing'; _root.savefile.data.meadowHead = 'Nothing'; _root.savefile.data.meadowBody = 'Cloth Tunic'; _root.savefile.data.meadowWeapon = 'Bronze Dirk'; _root.savefile.data.meadowOther = 'Nothing'; _root.savefile.data.currentmap = 'fishdicks'; _root.gotoAndStop('menuthing'); } frame 7 { stop(); } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Yes! Onward!'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop('reset'); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'No! I have changed my mind!'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { stopAllSounds(); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop('menu'); }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 8 { stop(); } movieClip 270 { frame 179 { _global.playerposition = [_root.savefile.data.playerPosX, _root.savefile.data.playerPosY]; _root.gotoAndStop('opening'); } } frame 9 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # 0 # # #', '# # # # # # . # # #', '# # # # # # . # # #', '# # . . . . . # # #', '# # . # . # # # # #', '# # . # . . . . . #', '# # . # # # . a . #', '# # 1 # # # . . . #', '# # # # # # # # # #'], {'id': 'map01', 'title': 'Sylkan Forest', 'desc': 'The forest is mostly quiet, but the ground shows signs of marching. Best be careful in these woods.', 'roomType': 'forest', 'exits': [['smith', 6, 2], ['bit1', 6, 7]], 'events': {'a': 'event1'}, 'enemyGroups': ['Goblins', 'Goblins', 'Goblins'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } movieClip 282 { } instance of movieClip 282 { onClipEvent (load) { globalsound = new Sound(); this.onRelease = function () { if (_parent.muted == true) { globalsound.setVolume(100); _parent.muted = false; } else { globalsound.setVolume(0); _parent.muted = true; } }; } } movieClip 295 { } movieClip 297 { } movieClip 299 { } movieClip 300 { } instance of movieClip 300 { onClipEvent (load) { this.statsbutton.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.currentMap.tearDown(); _root.gotoAndStop('amerwynsheet'); }; this.gearbutton.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.currentMap.tearDown(); _root.gotoAndStop('amerwyngear'); }; } } instance of movieClip 300 { onClipEvent (load) { this.statsbutton.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.currentMap.tearDown(); _root.gotoAndStop('willsheet'); }; this.gearbutton.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.currentMap.tearDown(); _root.gotoAndStop('willgear'); }; } } instance of movieClip 300 { onClipEvent (load) { this.statsbutton.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.currentMap.tearDown(); _root.gotoAndStop('meadowsheet'); }; this.gearbutton.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.currentMap.tearDown(); _root.gotoAndStop('meadowgear'); }; } } movieClip 305 { frame 1 { _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; } } movieClip 308 { } instance of movieClip 308 { onClipEvent (load) { this.onRelease = function () { stopAllSounds(); _global.currentMap.tearDown(); _root.gotoAndStop('setup'); }; } } instance of movieClip 234 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('http://hyptosis.newgrounds.com/', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 10 { _global.currentMap = new Map(['# # # # # # # # # #', '# # . . . . . . # #', '# # . # 1 # # . # #', '# # . # # # . . # #', '# # . # # # # . # #', '# # . . # # . . # #', '# # # . . . . # # #', '# # # # # # . # # #', '# # # # # # 0 # # #', '# # # # # # # # # #'], {'id': 'map02', 'title': 'Sylkan Forest', 'desc': 'The ground is still stomped from the previous travelers. There must have been several dozen in formation.', 'roomType': 'forest', 'exits': [['map01', 2, 7], ['map03', 2, 3]], 'enemyGroups': ['Goblins', 'Goblins', 'Goblins'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 11 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # # # # #', '# # . . . . . # # #', '# # . # # # . # # #', '# # 0 # . . . . 2 #', '# # # # . # # . # #', '# # 1 # # # # . # #', '# # . # # # # . # #', '# # . . . . . . # #', '# # # # # # # # # #'], {'id': 'map03', 'title': 'Sylkan Forest', 'desc': 'Wild birds soar overhead and their calls echo through the leaf-canopy above.', 'roomType': 'forest', 'exits': [['map02', 4, 1], ['map04', 2, 7], ['smith', 7, 4]], 'enemyGroups': ['Goblins', 'Kobolds', 'Goblins'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 12 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # 0 # # #', '# # # . . . . # # #', '# # # . # . # # # #', '# . . . # . # # # #', '# . # . # . . . 4 #', '# 1 # . # # # . # #', '# # . . # # # . # #', '# # 2 # # # # . 3 #', '# # # # # # # # # #'], {'id': 'map04', 'title': 'Sylkan Forest', 'desc': 'It looks as if the group ahead of you has split up. It is difficult to tell where they each went by their tracks alone.', 'roomType': 'forest', 'exits': [['map05', 8, 7], ['map06', 2, 2], ['map03', 2, 7], ['map07', 2, 2], ['map08', 2, 5]], 'enemyGroups': ['Goblins', 'Kobolds', 'Goblins'], 'fightChance': 5, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 13 { _global.currentMap = new Map(['# # # # # # # # # #', '# # . . . # # # # #', '# # . . . . . . . #', '# # . . . # # # . #', '# # . # # # . . . #', '# # . # # # . # # #', '# . . . # # . . . #', '# . # . # # # # . #', '# . # a # # # # 0 #', '# # # # # # # # # #'], {'id': 'map05', 'title': 'Sylkan Forest', 'desc': 'The trees here are large and old, many of them with trunks as big as a small house.', 'roomType': 'forest', 'exits': [['map04', 6, 2]], 'events': {'a': 'event3'}, 'enemyGroups': ['Goblins', 'Kobolds', 'Goblins'], 'fightChance': 5, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 14 { _global.currentMap = new Map(['# # # # # # # # # #', '# # 0 # . . . . . #', '# # . # # # # # . #', '# # . # . . . # . #', '# # . # # # . . . #', '# # . . . . . # # #', '# # # # # . # # # #', '# # . . . . # # # #', '# # . # # . . . a #', '# # # # # # # # # #'], {'id': 'map06', 'title': 'Sylkan Forest', 'desc': 'Bits of acorn and seed fall to the ground from the limbs above. Small mammals scurry about up there, nibbling on what they have found.', 'roomType': 'forest', 'exits': [['map04', 1, 5]], 'events': {'a': 'event5'}, 'enemyGroups': ['Goblins', 'Kobolds', 'Goblins'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 15 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # . . . # #', '# 0 . . . . # . # #', '# # # # # # # . # #', '# # # . . . . . # #', '# # # . # . # # # #', '# # # . # . # a . #', '# . . . # . # # . #', '# 1 # . . . . . . #', '# # # # # # # # # #'], {'id': 'map07', 'title': 'Sylkan Forest', 'desc': 'The forest floor is soft with fallen leaves. It almost feels like a carpet beneath you.', 'roomType': 'forest', 'exits': [['map04', 7, 8], ['bit2', 2, 2]], 'events': {'a': 'event9'}, 'enemyGroups': ['Goblins', 'Kobolds', 'Goblins'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 16 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # . . a # # #', '# # # # . # . # # #', '# # # # . . . # # #', '# # # # # . # # # #', '# 0 . . . . . . . #', '# # # # . # # # . #', '# # # # . . # # . #', '# # # # # # # . . #', '# # # # # # # # # #'], {'id': 'map08', 'title': 'Sylkan Forest', 'desc': 'In the distant water can be heard, it sounds like a small forest stream.', 'roomType': 'forest', 'exits': [['map04', 7, 5]], 'events': {'a': 'event10'}, 'enemyGroups': ['Kobolds', 'Kobolds', 'Kobolds'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 17 { _global.currentMap = new Map(['# # # # # # # # # #', '# # 0 # . . . . . #', '# # . # # # . # . #', '# # . . . # . # . #', '# # # # . # . # . #', '# 1 # # . . . # . #', '# . # # # # # # . #', '# . # . . . # # . #', '# . . . # . . . . #', '# # # # # # # # # #'], {'id': 'map09', 'title': 'Sylkan Forest', 'desc': 'There is a small brook here, it provides clean water and a pleasant sound as it cuts through the forest.', 'roomType': 'forest', 'exits': [['map07', 1, 7], ['map10', 8, 7]], 'enemyGroups': ['Orcs', 'Orcs', 'Orcs'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 18 { _global.currentMap = new Map(['# # # # # # # # # #', '# 2 # # # # # # 1 #', '# . # # # # # # . #', '# . . . . # # # . #', '# # . # . 4 # # . #', '# # . . . # # # . #', '# # # . # # # # . #', '# # # 3 # # # # . #', '# # # # # # # # 0 #', '# # # # # # # # # #'], {'id': 'map10', 'title': 'Sylkan Forest', 'desc': 'There have been animals resting here, large mammals with fur. Likely deer or elk.', 'roomType': 'forest', 'exits': [['map09', 1, 6], ['map11', 8, 7], ['map11', 1, 7], ['map13', 2, 2], ['smith', 4, 4]], 'enemyGroups': ['Kobolds', 'Orcs', 'Orcs'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 19 { _global.currentMap = new Map(['# # # # # # # # # #', '# a . # # . . . . #', '# . . . # . # # . #', '# # . . # . # # . #', '# # . # # . # # . #', '# # . . . . # # . #', '# # # . # # # # . #', '# . . . # # # # . #', '# 1 # # # # # # 0 #', '# # # # # # # # # #'], {'id': 'map11', 'title': 'Sylkan Forest', 'desc': 'The trees here grow more cloesly together than in previous parts of the forest, it seems like this area isn\'t as old, perhaps?', 'roomType': 'forest', 'exits': [['map10', 8, 2], ['map10', 1, 2]], 'events': {'a': 'event11'}, 'enemyGroups': ['Orcs', 'Orcs', 'Orcs'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 20 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #'], {'id': 'map12', 'title': '', 'desc': '', 'roomType': 'forest', 'exits': [['map10', 8, 2], ['map10', 1, 2]], 'enemyGroups': ['Orcs', 'Orcs', 'Orcs'], 'fightChance': 1, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 21 { _global.currentMap = new Map(['# # # # # # # # # #', '# # 0 # # # # # # #', '# # . # # # # 1 # #', '# # . # # . . . # #', '# # . . . . # # # #', '# # . # # . # # # #', '# # . # # . . # # #', '# # . # # # . # # #', '# # # # # # # # # #', '# # # # # # # # # #'], {'id': 'map13', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map10', 3, 6], ['map14', 1, 7]], 'enemyGroups': ['Hoglins', 'Hoglins', 'Hoglins'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 22 { _global.currentMap = new Map(['# # # # # # # # # #', '# . . . . . . # 1 #', '# . # # . # . # . #', '# . # # . # . # . #', '# . # # . # . # . #', '# . . # . . . # . #', '# # . # . # # # . #', '# . . # . # # # . #', '# 0 # # . . . . . #', '# # # # # # # # # #'], {'id': 'map14', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map13', 7, 3], ['map15', 8, 7]], 'enemyGroups': ['Hoglins', 'Hoglins', 'Hoglins'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 23 { _global.currentMap = new Map(['# # # # # # # # # #', '# # . . . . . . . #', '# . . # # # # # . #', '# . # # # # # # . #', '# . # # . . . # . #', '# . # # . a . . . #', '# . # # . . . # . #', '# . # # # # # # . #', '# 1 # # # # # # 0 #', '# # # # # # # # # #'], {'id': 'map15', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map14', 8, 2], ['map16', 1, 2]], 'events': {'a': 'event12'}, 'enemyGroups': ['Hoglins', 'Hoglins', 'Hoglins'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 24 { _global.currentMap = new Map(['# # # # # # # # # #', '# 0 # # # # # . # #', '# . # . . . # . # #', '# . . . # . . . . #', '# # # # # # # # . #', '# . . . . . . # . #', '# # . # . # . # . #', '# . . # . # . # . #', '# 1 # # 2 # . . . #', '# # # # # # # # # #'], {'id': 'map16', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map15', 1, 7], ['map17', 4, 2], ['map18', 8, 2]], 'enemyGroups': ['Orcs', 'Hoglins', 'Kobolds'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 25 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # 0 # # # # #', '# # # # . # # # # #', '# # # # . # # # # #', '# . . . . # # # # #', '# . # # . . # # # #', '# . # # # . # # # #', '# . # a # . # # # #', '# . . . . . # # # #', '# # # # # # # # # #'], {'id': 'map17', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map16', 1, 7]], 'events': {'a': 'event7'}, 'enemyGroups': ['Hoglins', 'Hoglins', 'Hoglins'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 26 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # # # 0 #', '# 1 . . # # # # . #', '# # . . # # # # . #', '# # . . # # # # . #', '# # # . # # # # . #', '# # . . # # # # . #', '# # . # . . . # . #', '# # . . . # . . . #', '# # # # # # # # # #'], {'id': 'map18', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map16', 4, 7], ['map19', 7, 8]], 'enemyGroups': ['Orcs', 'Hoglins', 'Kobolds'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 27 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # . . # # # # #', '# # . . . . . . 1 #', '# # . . . . # # # #', '# . . # . . . # # #', '# . . . . # # # # #', '# . . . . . # # # #', '# # . . # . . # # #', '# # . . . . . . 0 #', '# # # # # # # # # #'], {'id': 'map19', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map18', 2, 2], ['map20', 2, 2]], 'enemyGroups': ['Hoglins', 'Hoglins', 'Hoglins'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 28 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # . . # . # # #', '# 0 . . . . . . # #', '# # # . . # . . . #', '# # . . . . . . # #', '# # # . # . # . . #', '# . . . . . . . # #', '# . # . a . . # # #', '# # . . . . . . 1 #', '# # # # # # # # # #'], {'id': 'map20', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map19', 7, 2], ['map21', 2, 8]], 'events': {'a': 'event14'}, 'enemyGroups': ['Orcs', 'Hoglins', 'Kobolds'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 29 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # . . . . 1 #', '# # # . . # . # # #', '# 2 . . # # . # # #', '# # . # # . . . # #', '# # . # # . # . . #', '# # . # . . # # # #', '# # . # . # # # # #', '# 0 . # . . . . a #', '# # # # # # # # # #'], {'id': 'map21', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map20', 7, 8], ['map22', 2, 8], ['smith', 2, 3]], 'events': {'a': 'event15'}, 'enemyGroups': ['Hoglins', 'Hoglins', 'Hoglins'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 30 { _global.currentMap = new Map(['# # # # # # # # # #', '# a . . . . . . # #', '# # # # . . # . . #', '# # . . . . . . # #', '# # # . . . # # # #', '# . . . . . . . 1 #', '# # # # . # # . # #', '# # # # . . . . # #', '# 0 . . . # # # # #', '# # # # # # # # # #'], {'id': 'map22', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map21', 7, 1], ['map23', 2, 8]], 'events': {'a': 'event13'}, 'enemyGroups': ['Orcs', 'Hoglins', 'Kobolds'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 31 { _global.currentMap = new Map(['# # # # # # # # # #', '# # . . . . . . 1 #', '# # . # # # # # # #', '# . . . . # # # # #', '# # . # . # . . . #', '# # . # . # . # . #', '# . . # . . . # . #', '# # # # # # # # . #', '# 0 . . . . . . . #', '# # # # # # # # # #'], {'id': 'map23', 'title': 'Willow Grove', 'desc': 'Willows reach for the sky on both sides of this narrow path, but they fail and their leafy arms touch the ground in wide arches.', 'roomType': 'forest', 'exits': [['map22', 7, 5], ['bit3', 2, 1]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 32 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #'], {'title': '', 'desc': '', 'roomType': 'forest', 'exits': [['app02', 4, 1]], 'enemyGroups': ['', '', ''], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 33 { _global.currentMap = new Map(['# # # # # # # # # #', '# 0 . . . . # # # #', '# # . # # . . . . #', '# # . # # # # # . #', '# . . . . . . # . #', '# . # . . # . # . #', '# . # # . . . # . #', '# . . # # # . . . #', '# # . . . . . # 1 #', '# # # # # # # # # #'], {'id': 'map25', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map23', 7, 1], ['map26', 1, 2]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 34 { _global.currentMap = new Map(['# # # # # # # # # #', '# 0 # . . . . . . #', '# . # . # # # # . #', '# . # . . # . . . #', '# . # # . # . # # #', '# . . # . # . . . #', '# # . . . # # # . #', '# # # # # # . # . #', '# 1 . . . . . . . #', '# # # # # # # # # #'], {'id': 'map26', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map25', 8, 7], ['map27', 7, 5]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 35 { _global.currentMap = new Map(['# # # # # # # # # #', '# 1 . . # # # # # #', '# # # . . # # # # #', '# # # # . # # # # #', '# 3 . # . . # # # #', '# # . . . . . . 0 #', '# # . . . # # # # #', '# . . # . # # # # #', '# 2 # # . . . . 4 #', '# # # # # # # # # #'], {'id': 'map27', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map26', 2, 8], ['map28', 7, 8], ['map29', 7, 1], ['map30', 7, 3], ['smith', 7, 8]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 36 { _global.currentMap = new Map(['# # # # # # # # # #', '# . . # # # # # # #', '# . # a . # # # # #', '# . # # . . # # # #', '# . # . # . . # # #', '# . . . . # . # # #', '# . . # # # . . # #', '# . # # # # # . # #', '# . . . . . . . 0 #', '# # # # # # # # # #'], {'id': 'map28', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map27', 2, 1]], 'events': {'a': 'event16'}, 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 37 { _global.currentMap = new Map(['# # # # # # # # # #', '# . . . . # # . 0 #', '# # # # . . . . # #', '# # # # # # # . # #', '# . . . . . . . # #', '# # # # . # # . # #', '# # . . . # . . # #', '# . . # # . . # # #', '# 1 # . . . # # # #', '# # # # # # # # # #'], {'id': 'map29', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map27', 1, 7], ['map33', 1, 2]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 38 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # # # # #', '# # # . . . # # # #', '# # # . # . . . 0 #', '# # # . # . . # # #', '# # # . . # . # # #', '# # # # . # . # # #', '# 1 . . . . . # # #', '# # # # # # # # # #', '# # # # # # # # # #'], {'id': 'map30', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map27', 2, 4], ['map31', 7, 1]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 39 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # 1 # . . 0 #', '# # # # . . . # # #', '# # . . . # . # # #', '# . . # . # # # # #', '# # . . # # # # # #', '# . . # # . # # # #', '# # . . . . a # # #', '# # # . # . # # # #', '# # # # # # # # # #'], {'id': 'map31', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map30', 2, 7], ['map32', 8, 7]], 'events': {'a': 'event17'}, 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 40 { _global.currentMap = new Map(['# # # # # # # # # #', '# # . . # 1 # . . #', '# # . # # . # . . #', '# # . # . . # # . #', '# # . # # . . # . #', '# . . # # . # # . #', '# # . . . . # # . #', '# # . # # . . . . #', '# # # # # . # # 0 #', '# # # # # # # # # #'], {'id': 'map32', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map31', 4, 2], ['map34', 8, 7]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 41 { _global.currentMap = new Map(['# # # # # # # # # #', '# 0 # # . . . . . #', '# . . . . # . # . #', '# . # # # # . # . #', '# . # # # . . # . #', '# . . . . . # # . #', '# # . # # . # # . #', '# # . # # . . . . #', '# # . . . . # # . #', '# # # # # # # # # #'], {'id': 'map33', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map29', 1, 7]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 42 { _global.currentMap = new Map(['# # # # # # # # # #', '# # 1 # # # # # # #', '# # . # . . . . # #', '# # . . . # # . . #', '# # # # . # # # # #', '# # # 2 . # # # # #', '# # # # . # . . . #', '# # # # . # . # . #', '# . . . . . . # 0 #', '# # # # # # # # # #'], {'id': 'map34', 'title': 'Stony Path', 'desc': 'There is a stone-covered path here, winding and twisting through the dense forest. Fallen leaves and branches dot the ground underfoot.', 'roomType': 'forest', 'exits': [['map32', 5, 2], ['map36', 1, 7], ['smith', 4, 5]], 'enemyGroups': ['Monks', 'Yetis', 'Monks'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } instance of movieClip 228 { onClipEvent (load) { stopAllSounds(); music = new Sound(this); music.attachSound('music2'); music.start(0, 999); } } frame 43 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #', '# # # # # # # # # #'], {'title': '', 'desc': '', 'roomType': 'forest', 'exits': [['app02', 4, 1]], 'enemyGroups': ['', '', ''], 'fightChance': 10, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 44 { _global.currentMap = new Map(['# # # # # # # # # #', '# # 3 # # 2 # # 1 #', '# # . # # . # # . #', '# # . . . . # # . #', '# # # # # # # # . #', '# . . . . . . . . #', '# . # # # # # # # #', '# . # # # # # # # #', '# 0 # # # # # # # #', '# # # # # # # # # #'], {'id': 'map36', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map34', 2, 2], ['map37', 8, 7], ['map37', 5, 7], ['map37', 2, 7]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } instance of movieClip 228 { onClipEvent (load) { music = new Sound(this); music.attachSound('music2'); music.start(0, 999); } } instance of movieClip 228 { onClipEvent (load) { stopAllSounds(); music = new Sound(this); music.attachSound('music1'); music.start(0, 999); } } frame 45 { _global.currentMap = new Map(['# # # # # # # # # #', '# # . . . . # 3 # #', '# # # # # . . . . #', '# # # # # . . . . #', '# # . . . . . . . #', '# # . # # # # # # #', '# # . # # . . . . #', '# # . # # . # # . #', '# # 2 # # 1 # # 0 #', '# # # # # # # # # #'], {'id': 'map37', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map36', 8, 2], ['map36', 5, 2], ['map36', 2, 2], ['bit4', 5, 7]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 46 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # . # # # . # #', '# . . . # # # . # #', '# # # . . . . . 1 #', '# . . . # . # . # #', '# # # . # . # . . #', '# . . . # . # . # #', '# # # . . . . . . #', '# # # . # 0 # # # #', '# # # # # # # # # #'], {'id': 'map38', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map37', 7, 2], ['map39', 2, 2]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 47 { _global.currentMap = new Map(['# # # # # # # # # #', '# # . # . . . . . #', '# 0 . . . # # # . #', '# # # # # # . . . #', '# . . . . . # # . #', '# . # # . # # # . #', '# . . # . . . . . #', '# . # # # # # # # #', '# . . . . . . . 1 #', '# # # # # # # # # #'], {'id': 'map39', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map38', 7, 3], ['map40', 2, 8]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 48 { _global.currentMap = new Map(['# # # # # # # # # #', '# . . . . # 1 # # #', '# . # # . . . # . #', '# . # . # # . # . #', '# . . . # . . # . #', '# # # . . # . . . #', '# . . . . # # # . #', '# # # # . . . # . #', '# 0 . . . # . . . #', '# # # # # # # # # #'], {'id': 'map40', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map39', 7, 8], ['map41', 1, 7]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 49 { _global.currentMap = new Map(['# # # # # # # # # #', '# # 2 # # # 1 # # #', '# # . # # # . # # #', '# # . # 3 # . # . #', '# # . . . . . . . #', '# # # # # # # . . #', '# # # # # # # # . #', '# . . . . . . . . #', '# 0 # # # # # # # #', '# # # # # # # # # #'], {'id': 'map41', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map40', 6, 2], ['map42', 7, 7], ['map42', 2, 7], ['smith', 4, 4]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 50 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # # # 2 # #', '# # # # # # . . . #', '# . . . # # . # . #', '# . . . # # . . . #', '# . . . # # # . # #', '# # . # # # # . # #', '# # . # # # # . # #', '# # 1 # # # # 0 # #', '# # # # # # # # # #'], {'id': 'map42', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map41', 6, 2], ['map41', 2, 2], ['map43', 1, 7]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 51 { _global.currentMap = new Map(['# # # # # # # # # #', '# . . . # 1 # # # #', '# . . . # . # # # #', '# . . . # . # # 2 #', '# # . # # . # . . #', '# # . . . . # . . #', '# # # # # . . . # #', '# . . . # . # . . #', '# 0 # . . . # . . #', '# # # # # # # # # #'], {'id': 'map43', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map42', 7, 2], ['map44', 5, 7], ['smith', 8, 4]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 52 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # # . # # 1 #', '# # # # . . . # . #', '# # 2 # . # . # . #', '# . . . . # . . . #', '# . . # . # . # # #', '# . . # . . . # # #', '# # # # # . # # # #', '# # # # # 0 # # # #', '# # # # # # # # # #'], {'id': 'map44', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map43', 5, 2], ['map45', 8, 7], ['map46', 1, 7]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 53 { _global.currentMap = new Map(['# # # # # # # # # #', '# 1 # . # . # . # #', '# . # . # . # . # #', '# . . . . . . . # #', '# . # . # . # . # #', '# . # . # . # . # #', '# . # . # . # . . #', '# . # . # . # # . #', '# . # 2 # . # # 0 #', '# # # # # # # # # #'], {'id': 'map45', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map44', 8, 2], ['map47', 1, 7], ['map48', 8, 2]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 54 { _global.currentMap = new Map(['# # # # # # # # # #', '# . . . . . . . . #', '# . # # # # # # . #', '# . # . . . . # . #', '# . # . # # . # . #', '# . # . # . . # . #', '# . # . . # . . . #', '# . # . # # # # # #', '# 0 # . . . . . . #', '# # # # # # # # # #'], {'id': 'map46', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map44', 2, 4]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 55 { _global.currentMap = new Map(['# # # # # # # # # #', '# # . # . # . # # #', '# . . . . . . # . #', '# . # # # . . # . #', '# # . . . # . # . #', '# . . # . . . . . #', '# # # . # # . # # #', '# . . . . . . . . #', '# 0 # . . # . # . #', '# # # # # # # # # #'], {'id': 'map47', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map45', 1, 2]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 56 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # . # 1 # 0 #', '# # # . . # . . . #', '# # # # . . . . # #', '# # # . # # # . . #', '# . # . # . . . # #', '# . . . . . . # a #', '# . # . # . # . . #', '# . # # . . . . # #', '# # # # # # # # # #'], {'id': 'map48', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map45', 3, 7], ['map49', 5, 7]], 'events': {'a': 'event18'}, 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 57 { _global.currentMap = new Map(['# # # # # # # # # #', '# . # . . . . # 1 #', '# . . # . # # # . #', '# # . # . # . # . #', '# . . . . # . # . #', '# # . # . . . . . #', '# # # # # # # . # #', '# . . . . . . . . #', '# . # . # 0 # # . #', '# # # # # # # # # #'], {'id': 'map49', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map48', 6, 2], ['bit5', 1, 7]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 15, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 58 { _global.currentMap = new Map(['# # # # # # # # # #', '# 1 # 2 # 4 # # 3 #', '# . . . . . # # . #', '# # # . . . . . . #', '# . . . # # . # . #', '# # # . # . # # . #', '# . . . . . . # . #', '# . # . # . # . . #', '# 0 # . # . . # . #', '# # # # # # # # # #'], {'id': 'map50', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map49', 8, 2], ['map51', 1, 7], ['map52', 5, 7], ['map53', 8, 7], ['map54', 4, 7]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 20, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 59 { _global.currentMap = new Map(['# # # # # # # # # #', '# . . . . . . . . #', '# . # # # # # # # #', '# . # a . . # # # #', '# . . # . . . . . #', '# . . . # # # . . #', '# . # . # . . # . #', '# . # . . # . # . #', '# 0 # . . . . . . #', '# # # # # # # # # #'], {'id': 'map51', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map50', 1, 2]], 'events': {'a': 'event19'}, 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 20, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 60 { _global.currentMap = new Map(['# # # # # # # # # #', '# 1 . # # . # # # #', '# # . # # . # # # #', '# # . # # . # # # #', '# . . # # . . . . #', '# . # # # # # # . #', '# . # . . . . . . #', '# . # . # . # # # #', '# . . . # 0 # # # #', '# # # # # # # # # #'], {'id': 'map52', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map50', 3, 2], ['map53', 7, 1]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 20, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 61 { _global.currentMap = new Map(['# # # # # # # # # #', '# . # # . . . . 1 #', '# . # # . # # . # #', '# . . . . # # . # #', '# . # # . # 2 . . #', '# . # # . # # # # #', '# . # # . . . . . #', '# . # # # # # # . #', '# . . . . . . # 0 #', '# # # # # # # # # #'], {'id': 'map53', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map50', 8, 2], ['map52', 2, 1], ['smith', 7, 4]], 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 20, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 62 { _global.currentMap = new Map(['# # # # # # # # # #', '# . . . . . # 1 2 #', '# . # # # . . . . #', '# . . . . # . . . #', '# # # # . # # # # #', '# . . # . . . . . #', '# # . . . # . # . #', '# . . # . # . # . #', '# # . # 0 # . # a #', '# # # # # # # # # #'], {'id': 'map54', 'title': 'Pine Thicket', 'desc': 'This forest was once beautiful... but now the ground is torn up and the air smells of death.', 'roomType': 'forest', 'exits': [['map50', 5, 2], ['map55', 4, 7], ['map55', 5, 7]], 'events': {'a': 'event18'}, 'enemyGroups': ['Undead', 'Zombies', 'Elves'], 'fightChance': 20, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 63 { _global.currentMap = new Map(['# # # # # # # # # #', '# # # # 2 3 # # # #', '# # . . . . . . # #', '# # . . . . . . # #', '# # . . . . . . # #', '# # . . . . . . # #', '# # # # . . # # # #', '# # # # . . # # # #', '# # # # 0 1 # # # #', '# # # # # # # # # #'], {'id': 'map55', 'title': 'Pine Thicket', 'desc': 'The trees here have been cleared, and the ground is stained with blood. The smell of burning rock hangs on the air.', 'roomType': 'forest', 'exits': [['map54', 7, 2], ['map54', 8, 2], ['ending', 4, 2], ['ending', 4, 2]], 'enemyGroups': ['Vampires', 'Vampires', 'Vampires'], 'fightChance': 35, 'frame': this}); _root.savefile.data.currentmap = _currentframe; _global.playerhp(); _global.currentMap.start(); } frame 64 { stop(); } frame 76 { _global.playerposition = [_root.savefile.data.playerPosX, _root.savefile.data.playerPosY]; _root.gotoAndStop(_root.savefile.data.currentmap); stop(); } movieClip 318 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 319 { } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Egill Stormfeather'; this.textbox.text = titleofthischecker; theflag = 'EgillIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Finna Yellowdotter'; this.textbox.text = titleofthischecker; theflag = 'FinnaIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Cinnacat'; this.textbox.text = titleofthischecker; theflag = 'CinnacatIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Ivy'; this.textbox.text = titleofthischecker; theflag = 'IvyIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Trickfoot'; this.textbox.text = titleofthischecker; theflag = 'TrickfootIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Rundle'; this.textbox.text = titleofthischecker; theflag = 'RundleIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Simms'; this.textbox.text = titleofthischecker; theflag = 'SimmsIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Will Penterghast'; this.textbox.text = titleofthischecker; theflag = 'WillIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Nebel Grimson'; this.textbox.text = titleofthischecker; theflag = 'NebelIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Linka'; this.textbox.text = titleofthischecker; theflag = 'LinkaIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Graven Paige'; this.textbox.text = titleofthischecker; theflag = 'GravenIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Abigale Hellyer'; this.textbox.text = titleofthischecker; theflag = 'AbigaleIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Keelix'; this.textbox.text = titleofthischecker; theflag = 'KeelixIsInParty'; if (_global[theflag] == 1) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == 1) { _global[theflag] = 0; this.gotoAndStop(1); } else { _global[theflag] = 1; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } movieClip 323 { } instance of movieClip 323 { onClipEvent (load) { this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop('fight'); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Goblins'; this.textbox.text = titleofthischecker; theflag = 'EnemyGroup'; if (_global[theflag] == titleofthischecker) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == titleofthischecker) { _global[theflag] = undefined; this.gotoAndStop(1); } else { _global[theflag] = titleofthischecker; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Kobolds'; this.textbox.text = titleofthischecker; theflag = 'EnemyGroup'; if (_global[theflag] == titleofthischecker) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == titleofthischecker) { _global[theflag] = undefined; this.gotoAndStop(1); } else { _global[theflag] = titleofthischecker; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Orcs'; this.textbox.text = titleofthischecker; theflag = 'EnemyGroup'; if (_global[theflag] == titleofthischecker) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == titleofthischecker) { _global[theflag] = undefined; this.gotoAndStop(1); } else { _global[theflag] = titleofthischecker; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Undead'; this.textbox.text = titleofthischecker; theflag = 'EnemyGroup'; if (_global[theflag] == titleofthischecker) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == titleofthischecker) { _global[theflag] = undefined; this.gotoAndStop(1); } else { _global[theflag] = titleofthischecker; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Zombies'; this.textbox.text = titleofthischecker; theflag = 'EnemyGroup'; if (_global[theflag] == titleofthischecker) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == titleofthischecker) { _global[theflag] = undefined; this.gotoAndStop(1); } else { _global[theflag] = titleofthischecker; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } instance of movieClip 319 { onClipEvent (load) { titleofthischecker = 'Elves'; this.textbox.text = titleofthischecker; theflag = 'EnemyGroup'; if (_global[theflag] == titleofthischecker) { this.checkerswitch.gotoAndStop(2); } else { this.checkerswitch.gotoAndStop(1); } this.checkerswitch.onPress = function () { if (_global[theflag] == titleofthischecker) { _global[theflag] = undefined; this.gotoAndStop(1); } else { _global[theflag] = titleofthischecker; this.gotoAndStop(2); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); }; } } frame 77 { _global.amerwynwent = undefined; _global.willwent = undefined; _global.meadowwent = undefined; _global.whoturnisit = undefined; _global.shieldIsOn = undefined; _global.hasStolenAlready = undefined; _global.isSkill = undefined; randomSound = Math.ceil(Math.random() * 30); if (randomSound == 1) { if (_root.savefile.data.amerwynHP > 0) { clicksound2 = new Sound(this); clicksound2.attachSound('amer_cross'); clicksound2.start(); } } if (randomSound == 2) { if (_root.savefile.data.meadownHP > 0) { clicksound2 = new Sound(this); clicksound2.attachSound('woods'); clicksound2.start(); } } stop(); } movieClip 327 { frame 1 { stop(); } frame 10 { function percentage(part, whole) { var v1 = 0; v1 = part / whole; v1 *= 100; return v1; } _root.amerfight._x = 104; _root.amerfight._y = 285; _root.amerskills._x = 104; _root.amerskills._y = 323; _root.amerpotions._x = 104; _root.amerpotions._y = 361; _root.portrait._x = 1; _root.portrait._y = 299; _root.guiarrow._x = 503; _root.guiarrow._y = 278; themana = Math.ceil(percentage(_root.savefile.data.amerwynMP, _root.savefile.data.amerwynMAXMP)); _root.manabar.gotoAndStop(themana); if (themana == 0) { _root.manabar.gotoAndStop(1); } _root.manabar._x = 1; _root.manabar._y = 285; _root.portrait.gotoAndStop(2); } } movieClip 330 { frame 1 { stop(); } frame 10 { function percentage(part, whole) { var v1 = 0; v1 = part / whole; v1 *= 100; return v1; } _root.willfight._x = 104; _root.willfight._y = 285; _root.willskills._x = 104; _root.willskills._y = 323; _root.willpotions._x = 104; _root.willpotions._y = 361; _root.portrait._x = 1; _root.portrait._y = 299; _root.guiarrow._x = 438; _root.guiarrow._y = 361; themana = Math.ceil(percentage(_root.savefile.data.willMP, _root.savefile.data.willMAXMP)); _root.manabar.gotoAndStop(themana); if (themana == 0) { _root.manabar.gotoAndStop(1); } _root.manabar._x = 1; _root.manabar._y = 285; _root.portrait.gotoAndStop(3); } } movieClip 333 { frame 1 { stop(); } frame 10 { function percentage(part, whole) { var v1 = 0; v1 = part / whole; v1 *= 100; return v1; } _root.meadfight._x = 104; _root.meadfight._y = 285; _root.meadskills._x = 104; _root.meadskills._y = 323; _root.meadpotions._x = 104; _root.meadpotions._y = 361; _root.portrait._x = 1; _root.portrait._y = 299; _root.guiarrow._x = 313; _root.guiarrow._y = 378; themana = Math.ceil(percentage(_root.savefile.data.meadowMP, _root.savefile.data.meadowMAXMP)); _root.manabar.gotoAndStop(themana); if (themana == 0) { _root.manabar.gotoAndStop(1); } _root.manabar._x = 1; _root.manabar._y = 285; _root.portrait.gotoAndStop(4); } } movieClip 337 { } movieClip 339 { } instance of movieClip 339 { onClipEvent (load) { if (_global.EnemyGroup == 'Goblins') { _parent.monster1.unitart.gotoAndStop('Goblin'); _global.enemyhp1 = 4; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 1; _parent.monster2.unitart.gotoAndStop('Goblin'); _global.enemyhp2 = 4; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 1; _parent.monster3.unitart.gotoAndStop('Goblin'); _global.enemyhp3 = 4; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 1; } if (_global.EnemyGroup == 'Kobolds') { _parent.monster1.unitart.gotoAndStop('Kobold'); _global.enemyhp1 = 6; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 2; _parent.monster2.unitart.gotoAndStop('Kobold'); _global.enemyhp2 = 6; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 2; _parent.monster3.unitart.gotoAndStop('Goblin'); _global.enemyhp3 = 4; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 1; } if (_global.EnemyGroup == 'Orcs') { _parent.monster1.unitart.gotoAndStop('Orc'); _global.enemyhp1 = 8; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 3; _parent.monster2.unitart.gotoAndStop('Kobold'); _global.enemyhp2 = 6; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 2; _parent.monster3.unitart.gotoAndStop('Goblin'); _global.enemyhp3 = 4; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 1; } if (_global.EnemyGroup == 'Undead') { _parent.monster1.unitart.gotoAndStop('Undead'); _global.enemyhp1 = 22; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 10; _parent.monster2.unitart.gotoAndStop('Zombie'); _global.enemyhp2 = 22; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 13; _parent.monster3.unitart.gotoAndStop('Undead'); _global.enemyhp3 = 20; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 8; } if (_global.EnemyGroup == 'Zombies') { _parent.monster1.unitart.gotoAndStop('Undead'); _global.enemyhp1 = 20; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 10; _parent.monster2.unitart.gotoAndStop('Zombie'); _global.enemyhp2 = 22; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 12; _parent.monster3.unitart.gotoAndStop('Zombie'); _global.enemyhp3 = 20; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 9; } if (_global.EnemyGroup == 'Elves') { _parent.monster1.unitart.gotoAndStop('Elf'); _global.enemyhp1 = 17; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 8; _parent.monster2.unitart.gotoAndStop('Elf'); _global.enemyhp2 = 19; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 8; _parent.monster3.unitart.gotoAndStop('Elf'); _global.enemyhp3 = 18; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 8; } if (_global.EnemyGroup == 'Hoglins') { _parent.monster1.unitart.gotoAndStop('Hoglin'); _global.enemyhp1 = 6; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 5; _parent.monster2.unitart.gotoAndStop('Hoglin'); _global.enemyhp2 = 6; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 5; _parent.monster3.unitart.gotoAndStop('Hoglin'); _global.enemyhp3 = 6; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 5; } if (_global.EnemyGroup == 'Vampires') { _parent.monster1.unitart.gotoAndStop('Vampire2'); _global.enemyhp1 = 25; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 12; _parent.monster2.unitart.gotoAndStop('Thrall'); _global.enemyhp2 = 30; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 12; _parent.monster3.unitart.gotoAndStop('Vampire'); _global.enemyhp3 = 15; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 14; } if (_global.EnemyGroup == 'Monks') { _parent.monster1.unitart.gotoAndStop('Monk'); _global.enemyhp1 = 15; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 8; _parent.monster2.unitart.gotoAndStop('Monk'); _global.enemyhp2 = 15; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 8; _parent.monster3.unitart.gotoAndStop('Monk'); _global.enemyhp3 = 15; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 8; } if (_global.EnemyGroup == 'Yetis') { _parent.monster1.unitart.gotoAndStop('Elf'); _global.enemyhp1 = 15; _global.enemyhp1max = _global.enemyhp1; _global.monster1speed = 8; _parent.monster2.unitart.gotoAndStop('Yeti'); _global.enemyhp2 = 15; _global.enemyhp2max = _global.enemyhp2; _global.monster2speed = 8; _parent.monster3.unitart.gotoAndStop('Yeti'); _global.enemyhp3 = 15; _global.enemyhp3max = _global.enemyhp3; _global.monster3speed = 8; } } } movieClip 342 { } movieClip 345 { } movieClip 348 { } movieClip 351 { } movieClip 354 { } movieClip 357 { } movieClip 360 { } movieClip 363 { } movieClip 366 { } movieClip 369 { } movieClip 372 { } movieClip 375 { } movieClip 376 { frame 30 { _parent.gotoAndStop(2); } } movieClip 377 { } movieClip 378 { } movieClip 379 { frame 1 { stop(); } } movieClip 382 { } movieClip 383 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 384 { frame 1 { stop(); } } movieClip 387 { } movieClip 390 { } movieClip 393 { } movieClip 396 { } movieClip 399 { } movieClip 402 { } movieClip 405 { } movieClip 408 { } movieClip 415 { } movieClip 416 { } movieClip 419 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 420 { frame 1 { stop(); } } movieClip 423 { } movieClip 426 { } movieClip 429 { } movieClip 432 { } movieClip 435 { } movieClip 438 { } movieClip 441 { } movieClip 442 { } movieClip 443 { } movieClip 446 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 447 { frame 1 { stop(); } } movieClip 450 { } movieClip 451 { } movieClip 452 { } movieClip 455 { frame 4 { function percentage(part, whole) { var v1 = 0; v1 = part / whole; v1 *= 100; return v1; } amer = Math.ceil(percentage(_root.savefile.data.amerwynHP, _root.savefile.data.amerwynMAXHP)); will = Math.ceil(percentage(_root.savefile.data.willHP, _root.savefile.data.willMAXHP)); meadow = Math.ceil(percentage(_root.savefile.data.meadowHP, _root.savefile.data.meadowMAXHP)); _parent.amerhp.gotoAndStop(amer); _parent.willhp.gotoAndStop(will); _parent.meadowhp.gotoAndStop(meadow); if (amer == 0) { _parent.amerhp.gotoAndStop(1); } if (will == 0) { _parent.willhp.gotoAndStop(1); } if (meadow == 0) { _parent.meadowhp.gotoAndStop(1); } enemy1stat = Math.ceil(percentage(_global.enemyhp1, _global.enemyhp1max)); enemy2stat = Math.ceil(percentage(_global.enemyhp2, _global.enemyhp2max)); enemy3stat = Math.ceil(percentage(_global.enemyhp3, _global.enemyhp3max)); _parent.enemy1hp.gotoAndStop(enemy1stat); _parent.enemy2hp.gotoAndStop(enemy2stat); _parent.enemy3hp.gotoAndStop(enemy3stat); if (enemy1stat == 0) { _parent.enemy1hp.gotoAndStop(1); } if (enemy2stat == 0) { _parent.enemy2hp.gotoAndStop(1); } if (enemy3stat == 0) { _parent.enemy3hp.gotoAndStop(1); } if (enemy1stat == 0 && enemy2stat == 0 && enemy3stat == 0) { _root.gotoAndStop('win'); } } } movieClip 458 { } movieClip 461 { } movieClip 464 { } movieClip 467 { } movieClip 470 { } movieClip 477 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 480 { } movieClip 481 { instance of movieClip 477 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 3); this.gotoAndStop(randomnumber1); } } } movieClip 482 { frame 1 { stop(); } } movieClip 485 { } movieClip 488 { } movieClip 491 { } movieClip 494 { } movieClip 497 { } movieClip 500 { } movieClip 503 { } movieClip 506 { } movieClip 509 { } movieClip 512 { } movieClip 513 { } movieClip 514 { frame 1 { stop(); } } movieClip 517 { } movieClip 520 { } movieClip 523 { } movieClip 526 { } movieClip 529 { } movieClip 530 { } movieClip 531 { frame 1 { stop(); } } movieClip 543 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 546 { } movieClip 548 { } movieClip 553 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 558 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 561 { } movieClip 566 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 571 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 576 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 581 { } movieClip 582 { } movieClip 583 { } movieClip 589 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 592 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 593 { instance of movieClip 543 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 6); this.gotoAndStop(randomnumber1); } } instance of movieClip 553 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 2); this.gotoAndStop(randomnumber1); } } instance of movieClip 566 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 2); this.gotoAndStop(randomnumber1); } } instance of movieClip 571 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 3); this.gotoAndStop(randomnumber1); } } instance of movieClip 576 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 2); this.gotoAndStop(randomnumber1); } } instance of movieClip 589 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 5); this.gotoAndStop(randomnumber1); } } instance of movieClip 592 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 2); this.gotoAndStop(randomnumber1); } } } movieClip 594 { frame 1 { stop(); } } movieClip 599 { } movieClip 606 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 607 { instance of movieClip 606 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 2); this.gotoAndStop(randomnumber1); } } } movieClip 612 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 613 { instance of movieClip 612 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 2); this.gotoAndStop(randomnumber1); } } } movieClip 614 { frame 1 { stop(); } } movieClip 617 { } movieClip 620 { } movieClip 623 { } movieClip 628 { } movieClip 629 { } movieClip 632 { } movieClip 633 { } movieClip 634 { frame 1 { stop(); } } movieClip 653 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } } movieClip 656 { } movieClip 659 { } movieClip 662 { } movieClip 669 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 675 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 682 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 685 { } movieClip 692 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 695 { } movieClip 699 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 700 { instance of movieClip 653 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 10); this.gotoAndStop(randomnumber1); } } instance of movieClip 669 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 3); this.gotoAndStop(randomnumber1); } } instance of movieClip 675 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 3); this.gotoAndStop(randomnumber1); } } instance of movieClip 682 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 5); this.gotoAndStop(randomnumber1); } } instance of movieClip 692 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 3); this.gotoAndStop(randomnumber1); } } instance of movieClip 699 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 3); this.gotoAndStop(randomnumber1); } } } movieClip 703 { } movieClip 706 { } movieClip 711 { } movieClip 714 { } movieClip 717 { } movieClip 718 { } movieClip 721 { } movieClip 724 { } movieClip 727 { } movieClip 730 { } movieClip 733 { } movieClip 734 { } movieClip 741 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 748 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 749 { instance of movieClip 741 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 4); this.gotoAndStop(randomnumber1); } } instance of movieClip 748 { onClipEvent (load) { randomnumber1 = Math.ceil(Math.random() * 2); this.gotoAndStop(randomnumber1); } } } movieClip 754 { } movieClip 759 { } movieClip 762 { } movieClip 765 { } movieClip 768 { } movieClip 771 { } movieClip 772 { } movieClip 773 { } movieClip 774 { } movieClip 775 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 784 { } movieClip 787 { } movieClip 790 { } movieClip 791 { frame 1 { stop(); } frame 8 { gotoAndStop(1); } frame 19 { gotoAndStop(1); } } movieClip 792 { frame 1 { stop(); } } movieClip 796 { } movieClip 797 { frame 1 { stop(); } frame 29 { this._y = -50; if (_global.whoturnisit != undefined) { _global.whoturnisit = undefined; if (_global.isSkill != true) { _global.playerturns(); } } } } movieClip 801 { } movieClip 804 { frame 1 { stop(); } frame 2 { stop(); } } instance amerfight of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Attack'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); randomSound = Math.ceil(Math.random() * 30); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('amer_charge'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('amer_attack'); clicksound2.start(); } _global.clearCreen(); _global.whoturnisit = 'Amerwyn'; _root.targetone._x = 17; _root.targetone._y = 19; if (_global.enemyhp3 != 0) { _root.mon3selecter._x = 25; _root.mon3selecter._y = 160; } if (_global.enemyhp1 != 0) { _root.mon1selecter._x = 114; _root.mon1selecter._y = 116; } if (_global.enemyhp2 != 0) { _root.mon2selecter._x = 215; _root.mon2selecter._y = 75; } }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } instance amerskills of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Runor'; tubur = 'The Runor are said to have been trained by a giant white wolf, long ago in the snowy foothills of the Kamalan Mountains.'; manacost = ''; skillname = 'Runor Warrior'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.amerback1._x = 104; _root.amerback1._y = 285; _root.amerfight._x = -600; _root.amerfight._y = -600; _root.amerskills._x = -600; _root.amerskills._y = -600; _root.amerpotions._x = -600; _root.amerpotions._y = -600; _root.runorskills._x = 223; _root.runorskills._y = 284; }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } instance amerpotions of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Potions'; tubur = 'Potions are crafted by wise Alchemists and Runeseekers. They can turn the tide of an ignominious battle.'; manacost = ''; skillname = 'Magical Potions'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.thisonespotion = 'Amerwyn'; _root.amerback1._x = 104; _root.amerback1._y = 285; _root.amerfight._x = -600; _root.amerfight._y = -600; _root.amerskills._x = -600; _root.amerskills._y = -600; _root.amerpotions._x = -600; _root.amerpotions._y = -600; _global.placepotions(); }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } instance willfight of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Attack'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); randomSound = Math.ceil(Math.random() * 40); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('likethis'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('getm'); clicksound2.start(); } if (randomSound == 3) { clicksound2 = new Sound(this); clicksound2.attachSound('takethat'); clicksound2.start(); } _global.clearCreen(); _global.whoturnisit = 'Will'; _root.targetone._x = 17; _root.targetone._y = 19; if (_global.enemyhp3 != 0) { _root.mon3selecter._x = 25; _root.mon3selecter._y = 160; } if (_global.enemyhp1 != 0) { _root.mon1selecter._x = 114; _root.mon1selecter._y = 116; } if (_global.enemyhp2 != 0) { _root.mon2selecter._x = 215; _root.mon2selecter._y = 75; } }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } instance willskills of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Thief'; tubur = 'Thieves are sneaky, they\'re liars and cheats, but a good one can get results. No doubt about that.'; manacost = ''; skillname = 'Thievery'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.willback1._x = 104; _root.willback1._y = 285; _root.willfight._x = -600; _root.willfight._y = -600; _root.willskills._x = -600; _root.willskills._y = -600; _root.willpotions._x = -600; _root.willpotions._y = -600; _root.thiefskills._x = 223; _root.thiefskills._y = 284; }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } instance willpotions of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Potions'; tubur = 'Potions are crafted by wise Alchemists and Runeseekers. They can turn the tide of an ignominious battle.'; manacost = ''; skillname = 'Magical Potions'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.thisonespotion = 'Will'; _root.willback1._x = 104; _root.willback1._y = 285; _root.willfight._x = -600; _root.willfight._y = -600; _root.willskills._x = -600; _root.willskills._y = -600; _root.willpotions._x = -600; _root.willpotions._y = -600; _global.placepotions(); }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } instance meadfight of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Attack'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.clearCreen(); _global.whoturnisit = 'Meadow'; _root.targetone._x = 17; _root.targetone._y = 19; if (_global.enemyhp3 != 0) { _root.mon3selecter._x = 25; _root.mon3selecter._y = 160; } if (_global.enemyhp1 != 0) { _root.mon1selecter._x = 114; _root.mon1selecter._y = 116; } if (_global.enemyhp2 != 0) { _root.mon2selecter._x = 215; _root.mon2selecter._y = 75; } }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } instance meadskills of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Witchcraft'; tubur = 'Wood Witches are naturally attuned to Gorsus, they are able to channel spiritual energy to both heal and hurt those around them.'; manacost = ''; skillname = 'Witchcraft'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.meadowback1._x = 104; _root.meadowback1._y = 285; _root.meadfight._x = -600; _root.meadfight._y = -600; _root.meadskills._x = -600; _root.meadskills._y = -600; _root.meadpotions._x = -600; _root.meadpotions._y = -600; _root.witchskills._x = 223; _root.witchskills._y = 284; }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } instance meadpotions of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Potions'; tubur = 'Potions are crafted by wise Alchemists and Runeseekers. They can turn the tide of an ignominious battle.'; manacost = ''; skillname = 'Magical Potions'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _global.thisonespotion = 'Meadow'; _root.meadowback1._x = 104; _root.meadowback1._y = 285; _root.meadfight._x = -600; _root.meadfight._y = -600; _root.meadskills._x = -600; _root.meadskills._y = -600; _root.meadpotions._x = -600; _root.meadpotions._y = -600; _global.placepotions(); }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } movieClip 806 { } instance of movieClip 806 { onClipEvent (load) { _global.playerturns = function () { if (_root.savefile.data.amerwynHP == 0 && _root.savefile.data.meadowHP == 0 && _root.savefile.data.willHP == 0) { _root.gotoAndStop('loss'); } else { if (_root.savefile.data.amerwynHP > 0 && _global.amerwynwent != true) { _root.amerwynturn.gotoAndPlay(2); _global.amerwynwent = true; } else { if (_root.savefile.data.willHP > 0 && _global.willwent != true) { _root.willturn.gotoAndPlay(2); _global.willwent = true; } else { if (_root.savefile.data.meadowHP > 0 && _global.meadowwent != true) { _root.meadowturn.gotoAndPlay(2); _global.meadowwent = true; } else { _root.enemyturn.gotoAndPlay(2); } } } } }; _global.placepotions = function () { if (_root.savefile.data.healingpotion > 0) { _root.pot1._x = 109; _root.pot1._y = 327; } if (_root.savefile.data.manapotion > 0) { _root.pot2._x = 136; _root.pot2._y = 327; } if (_root.savefile.data.elixier > 0) { _root.pot3._x = 163; _root.pot3._y = 327; } if (_root.savefile.data.blueincense > 0) { _root.pot4._x = 190; _root.pot4._y = 327; } if (_root.savefile.data.redincense > 0) { _root.pot5._x = 109; _root.pot5._y = 354; } }; _global.clearCreen = function () { _root.portrait._x = -9; _root.portrait._y = 405; _root.amerfight._x = 104; _root.amerfight._y = 405; _root.amerskills._x = 104; _root.amerskills._y = 443; _root.amerpotions._x = 104; _root.amerpotions._y = 481; _root.willfight._x = 237; _root.willfight._y = 405; _root.willskills._x = 237; _root.willskills._y = 443; _root.willpotions._x = 237; _root.willpotions._y = 481; _root.meadfight._x = 369; _root.meadfight._y = 405; _root.meadskills._x = 369; _root.meadskills._y = 443; _root.meadpotions._x = 369; _root.meadpotions._y = 481; _root.guiarrow._x = 668; _root.guiarrow._y = 349; _root.manabar._x = -5; _root.manabar._y = 508; _root.amerback1._x = -600; _root.meadowback1._x = -600; _root.willback1._x = -600; _root.pot1._x = -600; _root.pot2._x = -600; _root.pot3._x = -600; _root.pot4._x = -600; _root.pot5._x = -600; }; _global.playerturns(); } } movieClip 809 { } movieClip 810 { } movieClip 812 { } movieClip 813 { } movieClip 816 { frame 1 { porko = undefined; porko2 = undefined; porko3 = undefined; stop(); } frame 30 { if (_global.enemyhp1 > 0) { _global.isSkill = true; _root.actionevent.textbox.textbox.text = 'The Enemy Attacks!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster1, 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_root.monster1, 0.5, {'colorTransform': {'brightness': 1}}); } else { gotoAndPlay(60); } } frame 40 { if (_global.enemyhp1 > 0) { clicksound = new Sound(this); clicksound.attachSound('thump'); clicksound.start(); hitAmerwyn = function () { if (_root.savefile.data.amerwynHP > 0) { trace('Amerwyn is hit!'); randomSound = Math.ceil(Math.random() * 20); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('amer_hit_2'); clicksound2.start(); } _root.playerhurt1.textbox.textbox.text = '-'; _root.playerhurt1.textbox.textbox.text += _global.monster1speed; _root.playerhurt1._x = 484; _root.playerhurt1._y = 192; _root.playerhurt1.gotoAndPlay(2); _root.playerhurt1._alpha = 100; com.greensock.TweenMax.to(_root.Amerwyn, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Amerwyn, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.amerwynHP <= _global.monster1speed) { _root.savefile.data.amerwynHP = 0; clicksound2 = new Sound(this); clicksound2.attachSound('amer_hit_1'); clicksound2.start(); _root.Amerwyn.amer.gotoAndStop(3); } else { if (_global.shieldIsOn == true) { rooner = Math.ceil(_global.monster1speed / 1.2); _root.savefile.data.amerwynHP -= rooner; } else { _root.savefile.data.amerwynHP -= _global.monster1speed; } } } else { trace('Amerwyn is already dead, check for new target.'); randomone(); } }; hitWill = function () { if (_root.savefile.data.willHP > 0) { trace('Will is hit!'); randomSound = Math.ceil(Math.random() * 20); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('willung1'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('willung2'); clicksound2.start(); } _root.playerhurt2.textbox.textbox.text = '-'; _root.playerhurt2.textbox.textbox.text += _global.monster1speed; _root.playerhurt2._x = 420; _root.playerhurt2._y = 262; _root.playerhurt2.gotoAndPlay(2); _root.playerhurt2._alpha = 100; com.greensock.TweenMax.to(_root.Will, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Will, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.willHP <= _global.monster1speed) { _root.savefile.data.willHP = 0; _root.Will.will.gotoAndStop(3); randomSound = Math.ceil(Math.random() * 2); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('thisbad'); clicksound2.start(); } } else { _root.savefile.data.willHP -= _global.monster1speed; } } else { trace('Will is already dead, check for new target.'); randomone(); } }; hitMeadow = function () { if (_root.savefile.data.meadowHP > 0) { trace('Meadow is hit!'); randomSound = Math.ceil(Math.random() * 25); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt1'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt2'); clicksound2.start(); } if (randomSound == 3) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt3'); clicksound2.start(); } if (randomSound == 4) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt4'); clicksound2.start(); } if (randomSound == 5) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt5'); clicksound2.start(); } _root.playerhurt3.textbox.textbox.text = '-'; _root.playerhurt3.textbox.textbox.text += _global.monster1speed; _root.playerhurt3._x = 295; _root.playerhurt3._y = 282; _root.playerhurt3.gotoAndPlay(2); _root.playerhurt3._alpha = 100; com.greensock.TweenMax.to(_root.Meadow, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Meadow, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.meadowHP <= _global.monster1speed) { _root.savefile.data.meadowHP = 0; _root.Meadow.mead.gotoAndStop(3); randomSound = Math.ceil(Math.random() * 2); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witch_im_hurt'); clicksound2.start(); } } else { _root.savefile.data.meadowHP -= _global.monster1speed; } } else { trace('Meadow is already dead, check for new target.'); randomone(); } }; randomone = function () { if (_root.savefile.data.meadowHP == 0 && _root.savefile.data.willHP == 0 && _root.savefile.data.amerwynHP == 0) { trace('Everyone is dead!'); _root.gotoAndStop('loss'); stop(); } else { randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { trace('Amerwyn is targeted now.'); if (_root.savefile.data.amerwynHP > 0) { hitAmerwyn(); } else { randomone(); } } if (randomnumber1 == 2) { trace('Will is targeted now.'); if (_root.savefile.data.willHP > 0) { hitWill(); } else { randomone(); } } if (randomnumber1 == 3) { trace('Meadow is targeted now.'); if (_root.savefile.data.meadowHP > 0) { hitMeadow(); } else { randomone(); } } } }; if (porko != true) { trace('---Running First Loop---'); porko = true; randomone(); } } } frame 60 { if (_global.enemyhp2 > 0) { porko = undefined; _global.isSkill = true; _root.actionevent.textbox.textbox.text = 'The Enemy Attacks!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster2, 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_root.monster2, 0.5, {'colorTransform': {'brightness': 1}}); } else { gotoAndPlay(90); } } frame 70 { if (_global.enemyhp2 > 0) { clicksound = new Sound(this); clicksound.attachSound('thump'); clicksound.start(); hitAmerwyn = function () { if (_root.savefile.data.amerwynHP > 0) { trace('Amerwyn is hit!'); randomSound = Math.ceil(Math.random() * 20); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('amer_hit_2'); clicksound2.start(); } _root.playerhurt1.textbox.textbox.text = '-'; _root.playerhurt1.textbox.textbox.text += _global.monster2speed; _root.playerhurt1._x = 484; _root.playerhurt1._y = 192; _root.playerhurt1.gotoAndPlay(2); _root.playerhurt1._alpha = 100; com.greensock.TweenMax.to(_root.Amerwyn, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Amerwyn, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.amerwynHP <= _global.monster2speed) { _root.savefile.data.amerwynHP = 0; clicksound2 = new Sound(this); clicksound2.attachSound('amer_hit_1'); clicksound2.start(); _root.Amerwyn.amer.gotoAndStop(3); } else { if (_global.shieldIsOn == true) { rooner = Math.ceil(_global.monster2speed / 1.2); _root.savefile.data.amerwynHP -= rooner; } else { _root.savefile.data.amerwynHP -= _global.monster2speed; } } } else { trace('Amerwyn is already dead, check for new target.'); randomone(); } }; hitWill = function () { if (_root.savefile.data.willHP > 0) { trace('Will is hit!'); randomSound = Math.ceil(Math.random() * 20); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('willung1'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('willung2'); clicksound2.start(); } _root.playerhurt2.textbox.textbox.text = '-'; _root.playerhurt2.textbox.textbox.text += _global.monster2speed; _root.playerhurt2._x = 420; _root.playerhurt2._y = 262; _root.playerhurt2.gotoAndPlay(2); _root.playerhurt2._alpha = 100; com.greensock.TweenMax.to(_root.Will, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Will, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.willHP <= _global.monster2speed) { _root.savefile.data.willHP = 0; _root.Will.will.gotoAndStop(3); randomSound = Math.ceil(Math.random() * 2); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('thisbad'); clicksound2.start(); } } else { _root.savefile.data.willHP -= _global.monster2speed; } } else { trace('Will is already dead, check for new target.'); randomone(); } }; hitMeadow = function () { if (_root.savefile.data.meadowHP > 0) { trace('Meadow is hit!'); randomSound = Math.ceil(Math.random() * 25); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt1'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt2'); clicksound2.start(); } if (randomSound == 3) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt3'); clicksound2.start(); } if (randomSound == 4) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt4'); clicksound2.start(); } if (randomSound == 5) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt5'); clicksound2.start(); } _root.playerhurt3.textbox.textbox.text = '-'; _root.playerhurt3.textbox.textbox.text += _global.monster2speed; _root.playerhurt3._x = 295; _root.playerhurt3._y = 282; _root.playerhurt3.gotoAndPlay(2); _root.playerhurt3._alpha = 100; com.greensock.TweenMax.to(_root.Meadow, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Meadow, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.meadowHP <= _global.monster2speed) { _root.savefile.data.meadowHP = 0; _root.Meadow.mead.gotoAndStop(3); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witch_im_hurt'); clicksound2.start(); } } else { _root.savefile.data.meadowHP -= _global.monster2speed; } } else { trace('Meadow is already dead, check for new target.'); randomone(); } }; randomone = function () { if (_root.savefile.data.meadowHP == 0 && _root.savefile.data.willHP == 0 && _root.savefile.data.amerwynHP == 0) { trace('Everyone is dead!'); _root.gotoAndStop('loss'); stop(); } else { randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { trace('Amerwyn is targeted now.'); if (_root.savefile.data.amerwynHP > 0) { hitAmerwyn(); } else { randomone(); } } if (randomnumber1 == 2) { trace('Will is targeted now.'); if (_root.savefile.data.willHP > 0) { hitWill(); } else { randomone(); } } if (randomnumber1 == 3) { trace('Meadow is targeted now.'); if (_root.savefile.data.meadowHP > 0) { hitMeadow(); } else { randomone(); } } } }; if (porko2 != true) { trace('---Running First Loop---'); porko2 = true; randomone(); } } } frame 90 { if (_global.enemyhp3 > 0) { porko = undefined; _global.isSkill = true; _root.actionevent.textbox.textbox.text = 'The Enemy Attacks!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster3, 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_root.monster3, 0.5, {'colorTransform': {'brightness': 1}}); } else { gotoAndPlay(120); } } frame 100 { if (_global.enemyhp3 > 0) { clicksound = new Sound(this); clicksound.attachSound('thump'); clicksound.start(); hitAmerwyn = function () { if (_root.savefile.data.amerwynHP > 0) { trace('Amerwyn is hit!'); randomSound = Math.ceil(Math.random() * 20); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('amer_hit_2'); clicksound2.start(); } _root.playerhurt1.textbox.textbox.text = '-'; _root.playerhurt1.textbox.textbox.text += _global.monster3speed; _root.playerhurt1._x = 484; _root.playerhurt1._y = 192; _root.playerhurt1.gotoAndPlay(2); _root.playerhurt1._alpha = 100; com.greensock.TweenMax.to(_root.Amerwyn, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Amerwyn, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.amerwynHP <= _global.monster3speed) { _root.savefile.data.amerwynHP = 0; clicksound2 = new Sound(this); clicksound2.attachSound('amer_hit_1'); clicksound2.start(); _root.Amerwyn.amer.gotoAndStop(3); } else { if (_global.shieldIsOn == true) { rooner = Math.ceil(_global.monster3speed / 1.2); _root.savefile.data.amerwynHP -= rooner; } else { _root.savefile.data.amerwynHP -= _global.monster3speed; } } } else { trace('Amerwyn is already dead, check for new target.'); randomone(); } }; hitWill = function () { if (_root.savefile.data.willHP > 0) { trace('Will is hit!'); randomSound = Math.ceil(Math.random() * 20); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('willung1'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('willung2'); clicksound2.start(); } _root.playerhurt2.textbox.textbox.text = '-'; _root.playerhurt2.textbox.textbox.text += _global.monster3speed; _root.playerhurt2._x = 420; _root.playerhurt2._y = 262; _root.playerhurt2.gotoAndPlay(2); _root.playerhurt2._alpha = 100; com.greensock.TweenMax.to(_root.Will, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Will, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.willHP <= _global.monster3speed) { _root.savefile.data.willHP = 0; _root.Will.will.gotoAndStop(3); randomSound = Math.ceil(Math.random() * 2); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('thisbad'); clicksound2.start(); } } else { _root.savefile.data.willHP -= _global.monster3speed; } } else { trace('Will is already dead, check for new target.'); randomone(); } }; hitMeadow = function () { if (_root.savefile.data.meadowHP > 0) { trace('Meadow is hit!'); randomSound = Math.ceil(Math.random() * 25); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt1'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt2'); clicksound2.start(); } if (randomSound == 3) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt3'); clicksound2.start(); } if (randomSound == 4) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt4'); clicksound2.start(); } if (randomSound == 5) { clicksound2 = new Sound(this); clicksound2.attachSound('witchhurt5'); clicksound2.start(); } _root.playerhurt3.textbox.textbox.text = '-'; _root.playerhurt3.textbox.textbox.text += _global.monster3speed; _root.playerhurt3._x = 295; _root.playerhurt3._y = 282; _root.playerhurt3.gotoAndPlay(2); _root.playerhurt3._alpha = 100; com.greensock.TweenMax.to(_root.Meadow, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.Meadow, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_root.savefile.data.meadowHP <= _global.monster3speed) { _root.savefile.data.meadowHP = 0; _root.Meadow.mead.gotoAndStop(3); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witch_im_hurt'); clicksound2.start(); } } else { _root.savefile.data.meadowHP -= _global.monster3speed; } } else { trace('Meadow is already dead, check for new target.'); randomone(); } }; randomone = function () { if (_root.savefile.data.meadowHP == 0 && _root.savefile.data.willHP == 0 && _root.savefile.data.amerwynHP == 0) { trace('Everyone is dead!'); _root.gotoAndStop('loss'); stop(); } else { randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { trace('Amerwyn is targeted now.'); if (_root.savefile.data.amerwynHP > 0) { hitAmerwyn(); } else { randomone(); } } if (randomnumber1 == 2) { trace('Will is targeted now.'); if (_root.savefile.data.willHP > 0) { hitWill(); } else { randomone(); } } if (randomnumber1 == 3) { trace('Meadow is targeted now.'); if (_root.savefile.data.meadowHP > 0) { hitMeadow(); } else { randomone(); } } } }; if (porko3 != true) { trace('---Running First Loop---'); porko3 = true; randomone(); } } } frame 120 { _global.isSkill = undefined; _global.meadowwent = undefined; _global.willwent = undefined; _global.amerwynwent = undefined; _global.whoturnisit = 'Enemy'; _root.actionevent.textbox.textbox.text = 'Enemy Turn Finished!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); } } instance amerback1 of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Back'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.amerfight._x = 104; _root.amerfight._y = 285; _root.amerskills._x = 104; _root.amerskills._y = 323; _root.amerpotions._x = 104; _root.amerpotions._y = 361; _root.runorskills._x = -600; _root.runorskills._y = -600; _parent.amerback1._x = 104; _parent.amerback1._y = 543; _root.pot1._x = -600; _root.pot2._x = -600; _root.pot3._x = -600; _root.pot4._x = -600; _root.pot5._x = -600; }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } movieClip 822 { frame 4 { if (_global.skillinfo != undefined) { this._x = 223; this._y = 284; manacost.text = _global.manacost; skillname.text = _global.skillname; textbox.text = _global.skillinfo; } else { this._x = -600; this._y = -600; } } } movieClip 828 { } movieClip 831 { } movieClip 834 { } movieClip 837 { frame 1 { stop(); } frame 2 { trace('Hitting One'); if (_global.enemyhp1 != 0) { _root.healthlost.textbox.textbox.text = '-'; choopy = _root.savefile.data.amerwynDMG * 2; _root.healthlost.textbox.textbox.text += choopy; if (_global.enemyhp1 >= choopy) { _global.enemyhp1 -= choopy; } else { _global.enemyhp1 = 0; } _root.healthlost._x = 120; _root.healthlost._y = 107; _root.healthlost.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster1, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster1, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); _root.monster1.attack.gotoAndPlay(2); if (_global.enemyhp1 == 0) { com.greensock.TweenLite.to(_root.monster1, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster1'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy1hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } else { randomnumber1 = Math.ceil(Math.random() * 2); trace(randomnumber1); if (randomnumber1 == 1) { _parent.monster2runner.gotoAndPlay(2); } if (randomnumber1 == 2) { _parent.monster3runner.gotoAndPlay(2); } } } } movieClip 840 { frame 1 { stop(); } frame 2 { trace('Hitting Two'); if (_global.enemyhp2 != 0) { _root.healthlost.textbox.textbox.text = '-'; choopy = _root.savefile.data.amerwynDMG * 2; _root.healthlost.textbox.textbox.text += choopy; if (_global.enemyhp2 >= choopy) { _global.enemyhp2 -= choopy; } else { _global.enemyhp2 = 0; } _root.healthlost._x = 220; _root.healthlost._y = 83; _root.healthlost.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster2, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster2, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); _root.monster2.attack.gotoAndPlay(2); if (_global.enemyhp2 == 0) { com.greensock.TweenLite.to(_root.monster2, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster2'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy2hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } else { randomnumber1 = Math.ceil(Math.random() * 2); trace(randomnumber1); if (randomnumber1 == 1) { _parent.monster1runner.gotoAndPlay(2); } if (randomnumber1 == 2) { _parent.monster3runner.gotoAndPlay(2); } } } } movieClip 843 { frame 1 { stop(); } frame 2 { trace('Hitting Three'); if (_global.enemyhp3 != 0) { _root.healthlost.textbox.textbox.text = '-'; choopy = _root.savefile.data.amerwynDMG * 2; _root.healthlost.textbox.textbox.text += choopy; if (_global.enemyhp3 >= choopy) { _global.enemyhp3 -= choopy; } else { _global.enemyhp3 = 0; } _root.healthlost._x = 27; _root.healthlost._y = 167; _root.healthlost.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster3, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster3, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); _root.monster3.attack.gotoAndPlay(2); if (_global.enemyhp3 == 0) { com.greensock.TweenLite.to(_root.monster3, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster3'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy3hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } else { randomnumber1 = Math.ceil(Math.random() * 2); trace(randomnumber1); if (randomnumber1 == 1) { _parent.monster1runner.gotoAndPlay(2); } if (randomnumber1 == 2) { _parent.monster2runner.gotoAndPlay(2); } } } } movieClip 846 { frame 3 { if (_root.savefile.data[_parent.firstone.whosemana] < _parent.firstone.skillcost) { com.greensock.TweenMax.to(_parent.firstone, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } else { com.greensock.TweenMax.to(_parent.firstone, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); } if (_root.savefile.data[_parent.secondone.whosemana] < _parent.secondone.skillcost) { com.greensock.TweenMax.to(_parent.secondone, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } else { com.greensock.TweenMax.to(_parent.secondone, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); } if (_root.savefile.data[_parent.thirdone.whosemana] < _parent.thirdone.skillcost) { com.greensock.TweenMax.to(_parent.thirdone, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } else { com.greensock.TweenMax.to(_parent.thirdone, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); } } } movieClip 847 { instance firstone of movieClip 828 { onClipEvent (load) { skillname = 'Wolf\'s Fang'; skillcost = 3; skilldesc = 'The Runor makes a wide swing, hitting all enemies.'; whosemana = 'amerwynMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound('slash'); clicksound.start(); _root.savefile.data[whosemana] -= skillcost; _global.clearCreen(); _root.amerback1._x = -600; _root.runorskills._x = -600; _root.amerback1._y = -600; _root.runorskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = 'Amerwyn'; _root.actionevent.textbox.textbox.text = 'Amerwyn Cleaves!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent.Amerwyn, 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent.Amerwyn, 0.5, {'colorTransform': {'brightness': 1}}); if (_global.enemyhp1 != 0) { _root.monster1.attack.gotoAndPlay(2); _root.healthlost.textbox.textbox.text = '-'; choopy = _root.savefile.data.amerwynDMG; _root.healthlost.textbox.textbox.text += choopy; if (_global.enemyhp1 >= choopy) { _global.enemyhp1 -= choopy; } else { _global.enemyhp1 = 0; } _root.healthlost._x = 120; _root.healthlost._y = 107; _root.healthlost.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster1, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster1, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global.enemyhp1 == 0) { com.greensock.TweenLite.to(_root.monster1, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster1'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy1hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } if (_global.enemyhp2 != 0) { _root.monster2.attack.gotoAndPlay(2); _root.healthlost2.textbox.textbox.text = '-'; choopy = _root.savefile.data.amerwynDMG; _root.healthlost2.textbox.textbox.text += choopy; if (_global.enemyhp2 >= choopy) { _global.enemyhp2 -= choopy; } else { _global.enemyhp2 = 0; } _root.healthlost2._x = 220; _root.healthlost2._y = 83; _root.healthlost2.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster2, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster2, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global.enemyhp2 == 0) { com.greensock.TweenLite.to(_root.monster2, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster2'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy2hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } if (_global.enemyhp3 != 0) { _root.monster3.attack.gotoAndPlay(2); _root.healthlost3.textbox.textbox.text = '-'; choopy = _root.savefile.data.amerwynDMG; _root.healthlost3.textbox.textbox.text += choopy; if (_global.enemyhp3 >= choopy) { _global.enemyhp3 -= choopy; } else { _global.enemyhp3 = 0; } _root.healthlost3._x = 27; _root.healthlost3._y = 167; _root.healthlost3.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster3, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster3, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global.enemyhp3 == 0) { com.greensock.TweenLite.to(_root.monster3, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster3'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy3hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } instance secondone of movieClip 831 { onClipEvent (load) { skillname = 'Wild Leap'; skillcost = 3; skilldesc = 'The Runor lunges forward and swings with a ferocious strike, hitting one random enemy for double damage.'; whosemana = 'amerwynMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data[whosemana] -= skillcost; clicksound = new Sound(this); clicksound.attachSound('slash'); clicksound.start(); _global.clearCreen(); _root.amerback1._x = -600; _root.runorskills._x = -600; _root.amerback1._y = -600; _root.runorskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = 'Amerwyn'; _root.actionevent.textbox.textbox.text = 'Amerwyn Leap Attacks!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent.Amerwyn, 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent.Amerwyn, 0.5, {'colorTransform': {'brightness': 1}}); randomnumber1 = Math.ceil(Math.random() * 3); trace(randomnumber1); if (randomnumber1 == 1) { _parent.monster1runner.gotoAndPlay(2); } if (randomnumber1 == 2) { _parent.monster2runner.gotoAndPlay(2); } if (randomnumber1 == 3) { _parent.monster3runner.gotoAndPlay(2); } } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } instance thirdone of movieClip 834 { onClipEvent (load) { skillname = 'Tuck Tail'; skillcost = 2; skilldesc = 'The Runor will have increased defense for the remainder of the fight, this skill only need be used once.'; whosemana = 'amerwynMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound('chop'); clicksound.start(); _root.shieldskill._x = 565; _root.shieldskill._y = 174; _root.savefile.data[whosemana] -= skillcost; if (_root.savefile.data[whosemana] < 0) { _root.savefile.data[whosemana] = 0; } _global.shieldIsOn = true; _global.clearCreen(); _root.amerback1._x = -600; _root.runorskills._x = -600; _root.amerback1._y = -600; _root.runorskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = 'Amerwyn'; _root.actionevent.textbox.textbox.text = 'Defensive Stance!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } } instance willback1 of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Back'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.willfight._x = 104; _root.willfight._y = 285; _root.willskills._x = 104; _root.willskills._y = 323; _root.willpotions._x = 104; _root.willpotions._y = 361; _root.thiefskills._x = -600; _root.thiefskills._y = -600; _parent.willback1._x = 104; _parent.willback1._y = 543; _root.pot1._x = -600; _root.pot2._x = -600; _root.pot3._x = -600; _root.pot4._x = -600; _root.pot5._x = -600; }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } movieClip 853 { } movieClip 856 { } movieClip 859 { } movieClip 860 { instance thirdone of movieClip 853 { onClipEvent (load) { skillname = 'Throwing Knife'; skillcost = 2; skilldesc = 'A 75% chance to deal double damage, and a 25% chance to do half damage.'; whosemana = 'willMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data[whosemana] -= skillcost; if (_root.savefile.data[whosemana] < 0) { _root.savefile.data[whosemana] = 0; } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); randomSound = Math.ceil(Math.random() * 10); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('takethat'); clicksound2.start(); } _global.clearCreen(); _global.whoturnisit = 'Will'; _root.targetone._x = 17; _root.targetone._y = 19; if (_global.enemyhp3 != 0) { _root.mon3selecter._x = 25; _root.mon3selecter._y = 160; } if (_global.enemyhp1 != 0) { _root.mon1selecter._x = 114; _root.mon1selecter._y = 116; } if (_global.enemyhp2 != 0) { _root.mon2selecter._x = 215; _root.mon2selecter._y = 75; } _global.isKnifethrow = true; _global.clearCreen(); _root.willback1._x = -600; _root.thiefskills._x = -600; _root.willback1._y = -600; _root.thiefskills._y = -600; } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } instance secondone of movieClip 856 { onClipEvent (load) { skillname = 'Backstab'; skillcost = 5; skilldesc = 'Will vanishes into the shadows and springs out to deal double damage to a target.'; whosemana = 'willMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data[whosemana] -= skillcost; if (_root.savefile.data[whosemana] < 0) { _root.savefile.data[whosemana] = 0; } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); randomSound = Math.ceil(Math.random() * 15); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('gotcha'); clicksound2.start(); } _global.clearCreen(); _global.whoturnisit = 'Will'; _root.targetone._x = 17; _root.targetone._y = 19; if (_global.enemyhp3 != 0) { _root.mon3selecter._x = 25; _root.mon3selecter._y = 160; } if (_global.enemyhp1 != 0) { _root.mon1selecter._x = 114; _root.mon1selecter._y = 116; } if (_global.enemyhp2 != 0) { _root.mon2selecter._x = 215; _root.mon2selecter._y = 75; } _global.isBackstab = true; _global.clearCreen(); _root.willback1._x = -600; _root.thiefskills._x = -600; _root.willback1._y = -600; _root.thiefskills._y = -600; } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } instance firstone of movieClip 859 { onClipEvent (load) { skillname = 'Cutpurse'; skillcost = 2; skilldesc = 'Those foes look to have heavy pockets, have Will use his turn to lighten them a bit.'; whosemana = 'willMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound('jump'); clicksound.start(); randomSound = Math.ceil(Math.random() * 15); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('haha'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('likethis'); clicksound2.start(); } goldstolen = Math.ceil(Math.random() * 2); _root.savefile.data.gold += goldstolen; if (_global.hasStolenAlready != true) { _root.savefile.data.gold += _global.enemyhp3; goldstolen += _global.monster1speed; } _global.hasStolenAlready = true; _root.savefile.data[whosemana] -= skillcost; if (_root.savefile.data[whosemana] < 0) { _root.savefile.data[whosemana] = 0; } _global.clearCreen(); _root.willback1._x = -600; _root.thiefskills._x = -600; _root.willback1._y = -600; _root.thiefskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = 'Will'; _root.actionevent.textbox.textbox.text = 'Steals '; _root.actionevent.textbox.textbox.text += goldstolen; _root.actionevent.textbox.textbox.text += ' Gold!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } } movieClip 866 { } movieClip 869 { } movieClip 872 { } movieClip 873 { instance firstone of movieClip 866 { onClipEvent (load) { skillname = 'Spirit Mend'; skillcost = 3; skilldesc = 'The Wood Witch uses her power to soothe the spirits of all party members, allowing them to heal faster.'; whosemana = 'meadowMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound('healspell'); clicksound.start(); randomSound = Math.ceil(Math.random() * 25); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witch_this_should_help'); clicksound2.start(); } if (randomSound == 2) { clicksound2 = new Sound(this); clicksound2.attachSound('witch_watch_out'); clicksound2.start(); } _root.savefile.data[whosemana] -= skillcost; _global.clearCreen(); _root.meadowback1._x = -600; _root.witchskills._x = -600; _root.meadowback1._y = -600; _root.witchskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = 'Meadow'; _root.actionevent.textbox.textbox.text = 'Spirit Mend!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent.Meadow, 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent.Meadow, 0.5, {'colorTransform': {'brightness': 1}}); if (_root.savefile.data.meadowHP != 0 && _root.savefile.data.meadowHP != _root.savefile.data.meadowMAXHP) { if (_root.savefile.data.meadowHP < _root.savefile.data.meadowMAXHP) { choopy = _root.savefile.data.meadowDMG + Math.ceil(Math.random() * 2); _root.healthgain3.textbox.textbox.text = '+'; _root.healthgain3.textbox.textbox.text += choopy; _root.healthgain3._x = 311; _root.healthgain3._y = 291; _root.healthgain3.gotoAndPlay(1); if (_root.savefile.data.meadowHP + choopy > _root.savefile.data.meadowMAXHP) { _root.savefile.data.meadowHP = _root.savefile.data.meadowMAXHP; } else { _root.savefile.data.meadowHP += choopy; } } } if (_root.savefile.data.willHP != 0 && _root.savefile.data.willHP != _root.savefile.data.willMAXHP) { if (_root.savefile.data.willHP < _root.savefile.data.willMAXHP) { choopy = _root.savefile.data.willDMG + Math.ceil(Math.random() * 2); _root.healthgain2.textbox.textbox.text = '+'; _root.healthgain2.textbox.textbox.text += choopy; _root.healthgain2._x = 434; _root.healthgain2._y = 265; _root.healthgain2.gotoAndPlay(1); if (_root.savefile.data.willHP + choopy > _root.savefile.data.willMAXHP) { _root.savefile.data.willHP = _root.savefile.data.willMAXHP; } else { _root.savefile.data.willHP += choopy; } } } if (_root.savefile.data.amerwynHP != 0 && _root.savefile.data.amerwynHP != _root.savefile.data.amerwynMAXHP) { if (_root.savefile.data.amerwynHP < _root.savefile.data.amerwynMAXHP) { choopy = _root.savefile.data.amerwynDMG + Math.ceil(Math.random() * 2); _root.healthgain1.textbox.textbox.text = '+'; _root.healthgain1.textbox.textbox.text += choopy; _root.healthgain1._x = 512; _root.healthgain1._y = 190; _root.healthgain1.gotoAndPlay(1); if (_root.savefile.data.amerwynHP + choopy > _root.savefile.data.amerwynMAXHP) { _root.savefile.data.amerwynHP = _root.savefile.data.amerwynMAXHP; } else { _root.savefile.data.amerwynHP += choopy; } } } } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } instance secondone of movieClip 869 { onClipEvent (load) { skillname = 'Spirit Bolt'; skillcost = 2; skilldesc = 'Meadow fires a bolt of spiritually charged energy, striking a single foe at their very core.'; whosemana = 'meadowMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data[whosemana] -= skillcost; if (_root.savefile.data[whosemana] < 0) { _root.savefile.data[whosemana] = 0; } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); randomSound = Math.ceil(Math.random() * 10); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witch_take_this'); clicksound2.start(); } _global.clearCreen(); _global.whoturnisit = 'Meadow'; _root.targetone._x = 17; _root.targetone._y = 19; if (_global.enemyhp3 != 0) { _root.mon3selecter._x = 25; _root.mon3selecter._y = 160; } if (_global.enemyhp1 != 0) { _root.mon1selecter._x = 114; _root.mon1selecter._y = 116; } if (_global.enemyhp2 != 0) { _root.mon2selecter._x = 215; _root.mon2selecter._y = 75; } _global.isSpell = true; _global.clearCreen(); _root.meadowback1._x = -600; _root.witchskills._x = -600; _root.meadowback1._y = -600; _root.witchskills._y = -600; } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } instance thirdone of movieClip 872 { onClipEvent (load) { skillname = 'Spirit Wave'; skillcost = 4; skilldesc = 'Meadow releases a wave of powerful spiritual energy that crushes all enemies on the field.'; whosemana = 'meadowMP'; this.onPress = function () { if (_root.savefile.data[whosemana] < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound('spirit'); clicksound.start(); randomSound = Math.ceil(Math.random() * 10); if (randomSound == 1) { clicksound2 = new Sound(this); clicksound2.attachSound('witch_this_is_it'); clicksound2.start(); } _root.savefile.data[whosemana] -= skillcost; _global.clearCreen(); _root.meadowback1._x = -600; _root.witchskills._x = -600; _root.meadowback1._y = -600; _root.witchskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = 'Meadow'; _root.actionevent.textbox.textbox.text = 'Spirit Crush!'; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent.Meadow, 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent.Meadow, 0.5, {'colorTransform': {'brightness': 1}}); if (_global.enemyhp1 != 0) { _root.monster1.attack.gotoAndPlay(9); _root.healthlost.textbox.textbox.text = '-'; choopy = _root.savefile.data.meadowDMG; _root.healthlost.textbox.textbox.text += choopy; if (_global.enemyhp1 >= choopy) { _global.enemyhp1 -= choopy; } else { _global.enemyhp1 = 0; } _root.healthlost._x = 120; _root.healthlost._y = 107; _root.healthlost.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster1, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster1, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global.enemyhp1 == 0) { com.greensock.TweenLite.to(_root.monster1, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster1'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy1hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } if (_global.enemyhp2 != 0) { _root.monster2.attack.gotoAndPlay(9); _root.healthlost2.textbox.textbox.text = '-'; choopy = _root.savefile.data.meadowDMG; _root.healthlost2.textbox.textbox.text += choopy; if (_global.enemyhp2 >= choopy) { _global.enemyhp2 -= choopy; } else { _global.enemyhp2 = 0; } _root.healthlost2._x = 220; _root.healthlost2._y = 83; _root.healthlost2.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster2, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster2, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global.enemyhp2 == 0) { com.greensock.TweenLite.to(_root.monster2, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster2'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy2hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } if (_global.enemyhp3 != 0) { _root.monster3.attack.gotoAndPlay(9); _root.healthlost3.textbox.textbox.text = '-'; choopy = _root.savefile.data.meadowDMG; _root.healthlost3.textbox.textbox.text += choopy; if (_global.enemyhp3 >= choopy) { _global.enemyhp3 -= choopy; } else { _global.enemyhp3 = 0; } _root.healthlost3._x = 27; _root.healthlost3._y = 167; _root.healthlost3.gotoAndPlay(2); com.greensock.TweenMax.to(_root.monster3, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_root.monster3, 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global.enemyhp3 == 0) { com.greensock.TweenLite.to(_root.monster3, 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = 'monster3'; shadower += 'shadow'; com.greensock.TweenLite.to(_root[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_root.enemy3hp, 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } } } }; this.onRollOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onRollOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; this.onDragOver = function () { gotoAndStop(2); _parent.skillname.text = skillname; _parent.manacost.text = skillcost; _parent.manacost.text += ' Mana'; _parent.textbox.text = skilldesc; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0.3, 'brightness': 0.9}}); } }; this.onDragOut = function () { gotoAndStop(1); _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; if (_root.savefile.data[whosemana] >= skillcost) { com.greensock.TweenMax.to(this, 0.25, {'colorTransform': {'tint': 16763904, 'tintAmount': 0, 'brightness': 0}}); } }; if (_root.savefile.data[whosemana] < skillcost) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); } } } } instance meadowback1 of movieClip 804 { onClipEvent (load) { this.textbox.textbox.text = 'Back'; this.checkerswitch.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.meadfight._x = 104; _root.meadfight._y = 285; _root.meadskills._x = 104; _root.meadskills._y = 323; _root.meadpotions._x = 104; _root.meadpotions._y = 361; _root.witchskills._x = -600; _root.witchskills._y = -600; _parent.meadowback1._x = 104; _parent.meadowback1._y = 543; _root.pot1._x = -600; _root.pot2._x = -600; _root.pot3._x = -600; _root.pot4._x = -600; _root.pot5._x = -600; }; this.checkerswitch.onRollOver = function () { gotoAndStop(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndStop(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } movieClip 876 { } instance shieldskill of movieClip 876 { onClipEvent (load) { tubur = 'Amerwyn will take less damage from every attack, for the remainder of this fight.'; manacost = ''; skillname = 'Defense'; this.onRollOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.onDragOver = function () { gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } movieClip 878 { } movieClip 879 { frame 47 { this._x = -600; stop(); } } instance healthgain1 of movieClip 879 { onClipEvent (load) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 52224, 'tintAmount': 0.5}}); } } instance healthgain2 of movieClip 879 { onClipEvent (load) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 52224, 'tintAmount': 0.5}}); } } instance healthgain3 of movieClip 879 { onClipEvent (load) { com.greensock.TweenMax.to(this, 0, {'colorTransform': {'tint': 52224, 'tintAmount': 0.5}}); } } movieClip 882 { } instance pot1 of movieClip 882 { onClipEvent (load) { tubur = 'Heals 50% of this character\'s total health.'; skillname = 'Health Potion'; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('potion'); clicksound.start(); --_root.savefile.data.healingpotion; _global.clearCreen(); _root.amerback1._x = -600; _root.runorskills._x = -600; _root.amerback1._y = -600; _root.runorskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = _global.thisonespotion; _root.actionevent.textbox.textbox.text = skillname; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0.5, {'colorTransform': {'brightness': 1}}); if (_global.thisonespotion == 'Amerwyn') { _root.savefile.data.amerwynHP += Math.ceil(_root.savefile.data.amerwynMAXHP / 2); _root.healthgain1.textbox.textbox.text = '+'; _root.healthgain1.textbox.textbox.text += Math.ceil(_root.savefile.data.amerwynMAXHP / 2); _root.healthgain1._x = 512; _root.healthgain1._y = 190; _root.healthgain1.gotoAndPlay(1); } if (_global.thisonespotion == 'Will') { _root.savefile.data.willHP += Math.ceil(_root.savefile.data.willMAXHP / 2); _root.healthgain2.textbox.textbox.text = '+'; _root.healthgain2.textbox.textbox.text += Math.ceil(_root.savefile.data.willMAXHP / 2); _root.healthgain2._x = 434; _root.healthgain2._y = 265; _root.healthgain2.gotoAndPlay(1); } if (_global.thisonespotion == 'Meadow') { _root.savefile.data.meadowHP += Math.ceil(_root.savefile.data.meadowMAXHP / 2); _root.healthgain3.textbox.textbox.text = '+'; _root.healthgain3.textbox.textbox.text += Math.ceil(_root.savefile.data.meadowMAXHP / 2); _root.healthgain3._x = 311; _root.healthgain3._y = 291; _root.healthgain3.gotoAndPlay(1); } if (_root.savefile.data.amerwynHP > _root.savefile.data.amerwynMAXHP) { _root.savefile.data.amerwynHP = _root.savefile.data.amerwynMAXHP; } if (_root.savefile.data.meadowHP > _root.savefile.data.meadowMAXHP) { _root.savefile.data.meadowHP = _root.savefile.data.meadowMAXHP; } if (_root.savefile.data.willHP > _root.savefile.data.willMAXHP) { _root.savefile.data.willHP = _root.savefile.data.willMAXHP; } }; this.onRollOver = function () { manacost = _root.savefile.data.healingpotion; manacost += ' potions'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.onDragOver = function () { manacost = _root.savefile.data.healingpotion; manacost += ' potions'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } movieClip 885 { } instance pot2 of movieClip 885 { onClipEvent (load) { tubur = 'Heals 100% of this character\'s mana.'; skillname = 'Mana Potion'; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('potion'); clicksound.start(); --_root.savefile.data.manapotion; _global.clearCreen(); _root.amerback1._x = -600; _root.runorskills._x = -600; _root.amerback1._y = -600; _root.runorskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = _global.thisonespotion; _root.actionevent.textbox.textbox.text = skillname; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0.5, {'colorTransform': {'brightness': 1}}); if (_global.thisonespotion == 'Amerwyn') { _root.savefile.data.amerwynMP = _root.savefile.data.amerwynMAXMP; _root.healthgain1.textbox.textbox.text = '+'; _root.healthgain1.textbox.textbox.text += _root.savefile.data.amerwynMAXMP; _root.healthgain1._x = 512; _root.healthgain1._y = 190; _root.healthgain1.gotoAndPlay(1); } if (_global.thisonespotion == 'Will') { _root.savefile.data.willMP = _root.savefile.data.willMAXMP; _root.healthgain2.textbox.textbox.text = '+'; _root.healthgain2.textbox.textbox.text += _root.savefile.data.willMAXMP; _root.healthgain2._x = 434; _root.healthgain2._y = 265; _root.healthgain2.gotoAndPlay(1); } if (_global.thisonespotion == 'Meadow') { _root.savefile.data.meadowMP = _root.savefile.data.meadowMAXMP; _root.healthgain3.textbox.textbox.text = '+'; _root.healthgain3.textbox.textbox.text += _root.savefile.data.meadowMAXMP; _root.healthgain3._x = 311; _root.healthgain3._y = 291; _root.healthgain3.gotoAndPlay(1); } }; this.onRollOver = function () { manacost = _root.savefile.data.manapotion; manacost += ' potions'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.onDragOver = function () { manacost = _root.savefile.data.manapotion; manacost += ' potions'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } movieClip 888 { } instance pot3 of movieClip 888 { onClipEvent (load) { tubur = 'A powerful healing mixture that can even raise the fallen!'; skillname = 'Elixir of the Eclipse'; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('potion'); clicksound.start(); --_root.savefile.data.elixier; _global.clearCreen(); _root.amerback1._x = -600; _root.runorskills._x = -600; _root.amerback1._y = -600; _root.runorskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = _global.thisonespotion; _root.actionevent.textbox.textbox.text = skillname; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0.5, {'colorTransform': {'brightness': 1}}); heal1 = Math.ceil(_root.savefile.data.amerwynMAXHP / 10); heal2 = Math.ceil(_root.savefile.data.meadowMAXHP / 10); heal3 = Math.ceil(_root.savefile.data.willMAXHP / 10); _root.savefile.data.amerwynHP += heal1; _root.savefile.data.meadowHP += heal2; _root.savefile.data.willHP += heal3; if (_root.savefile.data.amerwynHP > _root.savefile.data.amerwynMAXHP) { _root.savefile.data.amerwynHP = _root.savefile.data.amerwynMAXHP; } if (_root.savefile.data.meadowHP > _root.savefile.data.meadowMAXHP) { _root.savefile.data.meadowHP = _root.savefile.data.meadowMAXHP; } if (_root.savefile.data.willHP > _root.savefile.data.willMAXHP) { _root.savefile.data.willHP = _root.savefile.data.willMAXHP; } _root.healthgain3.textbox.textbox.text = '+'; _root.healthgain3.textbox.textbox.text += heal2; _root.healthgain3._x = 311; _root.healthgain3._y = 291; _root.healthgain3.gotoAndPlay(1); _root.healthgain2.textbox.textbox.text = '+'; _root.healthgain2.textbox.textbox.text += heal3; _root.healthgain2._x = 434; _root.healthgain2._y = 265; _root.healthgain2.gotoAndPlay(1); _root.healthgain1.textbox.textbox.text = '+'; _root.healthgain1.textbox.textbox.text += heal1; _root.healthgain1._x = 512; _root.healthgain1._y = 190; _root.healthgain1.gotoAndPlay(1); _root.Meadow.mead.gotoAndStop(1); _root.Will.will.gotoAndStop(1); _root.Amerwyn.amer.gotoAndStop(2); }; this.onRollOver = function () { manacost = _root.savefile.data.elixier; manacost += ' elixirs'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.onDragOver = function () { manacost = _root.savefile.data.elixier; manacost += ' elixirs'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } movieClip 891 { } instance pot4 of movieClip 891 { onClipEvent (load) { tubur = 'Heals 50% of the entire party\'s mana!'; skillname = 'Blue Incense'; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('potion'); clicksound.start(); --_root.savefile.data.blueincense; _global.clearCreen(); _root.amerback1._x = -600; _root.runorskills._x = -600; _root.amerback1._y = -600; _root.runorskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = _global.thisonespotion; _root.actionevent.textbox.textbox.text = skillname; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0.5, {'colorTransform': {'brightness': 1}}); heal1 = Math.ceil(_root.savefile.data.amerwynMAXMP / 2); heal2 = Math.ceil(_root.savefile.data.meadowMAXMP / 2); heal3 = Math.ceil(_root.savefile.data.willMAXMP / 2); _root.savefile.data.amerwynMP += heal1; _root.savefile.data.meadowMP += heal2; _root.savefile.data.willMP += heal3; if (_root.savefile.data.amerwynMP > _root.savefile.data.amerwynMAXMP) { _root.savefile.data.amerwynMP = _root.savefile.data.amerwynMAXMP; } if (_root.savefile.data.meadowMP > _root.savefile.data.meadowMAXMP) { _root.savefile.data.meadowMP = _root.savefile.data.meadowMAXMP; } if (_root.savefile.data.willMP > _root.savefile.data.willMAXMP) { _root.savefile.data.willMP = _root.savefile.data.willMAXMP; } _root.healthgain3.textbox.textbox.text = '+'; _root.healthgain3.textbox.textbox.text += heal2; _root.healthgain3._x = 311; _root.healthgain3._y = 291; _root.healthgain3.gotoAndPlay(1); _root.healthgain2.textbox.textbox.text = '+'; _root.healthgain2.textbox.textbox.text += heal3; _root.healthgain2._x = 434; _root.healthgain2._y = 265; _root.healthgain2.gotoAndPlay(1); _root.healthgain1.textbox.textbox.text = '+'; _root.healthgain1.textbox.textbox.text += heal1; _root.healthgain1._x = 512; _root.healthgain1._y = 190; _root.healthgain1.gotoAndPlay(1); }; this.onRollOver = function () { manacost = _root.savefile.data.blueincense; manacost += ' uses'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.onDragOver = function () { manacost = _root.savefile.data.blueincense; manacost += ' uses'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } movieClip 894 { } instance pot5 of movieClip 894 { onClipEvent (load) { tubur = 'Heals 50% of the entire party\'s health!'; skillname = 'Red Incense'; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('potion'); clicksound.start(); --_root.savefile.data.redincense; _global.clearCreen(); _root.amerback1._x = -600; _root.runorskills._x = -600; _root.amerback1._y = -600; _root.runorskills._y = -600; _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; _global.whoturnisit = _global.thisonespotion; _root.actionevent.textbox.textbox.text = skillname; _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent[_global.thisonespotion], 0.5, {'colorTransform': {'brightness': 1}}); heal1 = Math.ceil(_root.savefile.data.amerwynMAXHP / 2); heal2 = Math.ceil(_root.savefile.data.meadowMAXHP / 2); heal3 = Math.ceil(_root.savefile.data.willMAXHP / 2); if (_root.savefile.data.amerwynHP != 0) { _root.savefile.data.amerwynHP += heal1; } if (_root.savefile.data.meadowHP != 0) { _root.savefile.data.meadowHP += heal2; } if (_root.savefile.data.willHP != 0) { _root.savefile.data.willHP += heal3; } if (_root.savefile.data.amerwynHP > _root.savefile.data.amerwynMAXHP) { _root.savefile.data.amerwynHP = _root.savefile.data.amerwynMAXHP; } if (_root.savefile.data.meadowHP > _root.savefile.data.meadowMAXHP) { _root.savefile.data.meadowHP = _root.savefile.data.meadowMAXHP; } if (_root.savefile.data.willHP > _root.savefile.data.willMAXHP) { _root.savefile.data.willHP = _root.savefile.data.willMAXHP; } _root.healthgain3.textbox.textbox.text = '+'; _root.healthgain3.textbox.textbox.text += heal2; _root.healthgain3._x = 311; _root.healthgain3._y = 291; _root.healthgain3.gotoAndPlay(1); _root.healthgain2.textbox.textbox.text = '+'; _root.healthgain2.textbox.textbox.text += heal3; _root.healthgain2._x = 434; _root.healthgain2._y = 265; _root.healthgain2.gotoAndPlay(1); _root.healthgain1.textbox.textbox.text = '+'; _root.healthgain1.textbox.textbox.text += heal1; _root.healthgain1._x = 512; _root.healthgain1._y = 190; _root.healthgain1.gotoAndPlay(1); }; this.onRollOver = function () { manacost = _root.savefile.data.redincense; manacost += ' uses'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onRollOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; this.onDragOver = function () { manacost = _root.savefile.data.redincense; manacost += ' uses'; gotoAndStop(2); _global.skillinfo = tubur; _global.manacost = manacost; _global.skillname = skillname; }; this.onDragOut = function () { gotoAndStop(1); _global.skillinfo = undefined; _global.manacost = ''; _global.skillname = ''; }; } } movieClip 900 { frame 1 { stop(); } frame 2 { stop(); } instance textbox of movieClip 796 { onClipEvent (load) { this.textbox.text = 'Amerwyn'; } } frame 3 { stop(); } instance textbox of movieClip 796 { onClipEvent (load) { this.textbox.text = 'Will'; } } frame 4 { stop(); } instance textbox of movieClip 796 { onClipEvent (load) { this.textbox.text = 'Meadow'; } } } movieClip 903 { } movieClip 908 { } movieClip 910 { } movieClip 913 { } movieClip 914 { } movieClip 915 { frame 1 { stop(); } frame 22 { gotoAndPlay(2); } } instance mon2selecter of movieClip 915 { onClipEvent (load) { tag1 = 'enemyhp2'; tag2 = 'monster2'; tag3 = 'enemy2hp'; X = 220; Y = 83; this.checkerswitch.onPress = function () { if (_global.isSpell != undefined) { clicksound = new Sound(this); clicksound.attachSound('spirit'); clicksound.start(); _parent[tag2].attack.gotoAndPlay(9); } else { clicksound = new Sound(this); clicksound.attachSound('slash'); clicksound.start(); _parent[tag2].attack.gotoAndPlay(2); } _root.actionevent.textbox.textbox.text = _global.whoturnisit; if (_global.isBackstab != true && _global.isKnifethrow != true) { _root.actionevent.textbox.textbox.text += ' Attacks!'; } else { if (_global.isKnifethrow == true) { _root.actionevent.textbox.textbox.text += ' Throws!'; } if (_global.isBackstab == true) { _root.actionevent.textbox.textbox.text += ' Backstabs!'; } } _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; com.greensock.TweenMax.to(_parent[_global.whoturnisit], 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent[_global.whoturnisit], 0.5, {'colorTransform': {'brightness': 1}}); if (_global.whoturnisit == 'Amerwyn') { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.amerwynDMG; if (_global[tag1] >= _root.savefile.data.amerwynDMG) { _global[tag1] -= _root.savefile.data.amerwynDMG; } else { _global[tag1] = 0; } } if (_global.whoturnisit == 'Will') { if (_global.isBackstab != true && _global.isKnifethrow != true) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG; if (_global[tag1] >= _root.savefile.data.willDMG) { _global[tag1] -= _root.savefile.data.willDMG; } else { _global[tag1] = 0; } } else { if (_global.isKnifethrow == true) { randomnumber1 = Math.ceil(Math.random() * 10); if (randomnumber1 <= 2) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += Math.ceil(_root.savefile.data.willDMG / 2); if (_global[tag1] >= Math.ceil(_root.savefile.data.willDMG / 2)) { _global[tag1] -= Math.ceil(_root.savefile.data.willDMG / 2); } else { _global[tag1] = 0; } } else { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG * 2; if (_global[tag1] >= _root.savefile.data.willDMG * 2) { _global[tag1] -= _root.savefile.data.willDMG * 2; } else { _global[tag1] = 0; } } } if (_global.isBackstab == true) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG * 2; if (_global[tag1] >= _root.savefile.data.willDMG * 2) { _global[tag1] -= _root.savefile.data.willDMG * 2; } else { _global[tag1] = 0; } } } _global.isBackstab = undefined; _global.isKnifethrow = undefined; } if (_global.whoturnisit == 'Meadow') { if (_global.isSpell != undefined) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.meadowDMG * 2; if (_global[tag1] >= _root.savefile.data.meadowDMG * 2) { _global[tag1] -= _root.savefile.data.meadowDMG * 2; } else { _global[tag1] = 0; } } else { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.meadowDMG; if (_global[tag1] >= _root.savefile.data.meadowDMG) { _global[tag1] -= _root.savefile.data.meadowDMG; } else { _global[tag1] = 0; } } _global.isSpell = undefined; } _root.healthlost._x = X; _root.healthlost._y = Y; _root.healthlost.gotoAndPlay(2); com.greensock.TweenMax.to(_parent[tag2], 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_parent[tag2], 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global[tag1] == 0) { com.greensock.TweenLite.to(_parent[tag2], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = tag2; shadower += 'shadow'; com.greensock.TweenLite.to(_parent[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_parent[tag3], 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } }; this.checkerswitch.onRollOver = function () { gotoAndPlay(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndPlay(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } instance mon1selecter of movieClip 915 { onClipEvent (load) { tag1 = 'enemyhp1'; tag2 = 'monster1'; tag3 = 'enemy1hp'; X = 120; Y = 107; this.checkerswitch.onPress = function () { if (_global.isSpell != undefined) { clicksound = new Sound(this); clicksound.attachSound('spirit'); clicksound.start(); _parent[tag2].attack.gotoAndPlay(9); } else { clicksound = new Sound(this); clicksound.attachSound('slash'); clicksound.start(); _parent[tag2].attack.gotoAndPlay(2); } _root.actionevent.textbox.textbox.text = _global.whoturnisit; if (_global.isBackstab != true && _global.isKnifethrow != true) { _root.actionevent.textbox.textbox.text += ' Attacks!'; } else { if (_global.isKnifethrow == true) { _root.actionevent.textbox.textbox.text += ' Throws!'; } if (_global.isBackstab == true) { _root.actionevent.textbox.textbox.text += ' Backstabs!'; } } _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; com.greensock.TweenMax.to(_parent[_global.whoturnisit], 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent[_global.whoturnisit], 0.5, {'colorTransform': {'brightness': 1}}); if (_global.whoturnisit == 'Amerwyn') { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.amerwynDMG; if (_global[tag1] >= _root.savefile.data.amerwynDMG) { _global[tag1] -= _root.savefile.data.amerwynDMG; } else { _global[tag1] = 0; } } if (_global.whoturnisit == 'Will') { if (_global.isBackstab != true && _global.isKnifethrow != true) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG; if (_global[tag1] >= _root.savefile.data.willDMG) { _global[tag1] -= _root.savefile.data.willDMG; } else { _global[tag1] = 0; } } else { if (_global.isKnifethrow == true) { randomnumber1 = Math.ceil(Math.random() * 10); if (randomnumber1 <= 2) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += Math.ceil(_root.savefile.data.willDMG / 2); if (_global[tag1] >= Math.ceil(_root.savefile.data.willDMG / 2)) { _global[tag1] -= Math.ceil(_root.savefile.data.willDMG / 2); } else { _global[tag1] = 0; } } else { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG * 2; if (_global[tag1] >= _root.savefile.data.willDMG * 2) { _global[tag1] -= _root.savefile.data.willDMG * 2; } else { _global[tag1] = 0; } } } if (_global.isBackstab == true) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG * 2; if (_global[tag1] >= _root.savefile.data.willDMG * 2) { _global[tag1] -= _root.savefile.data.willDMG * 2; } else { _global[tag1] = 0; } } } _global.isBackstab = undefined; _global.isKnifethrow = undefined; } if (_global.whoturnisit == 'Meadow') { if (_global.isSpell != undefined) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.meadowDMG * 2; if (_global[tag1] >= _root.savefile.data.meadowDMG * 2) { _global[tag1] -= _root.savefile.data.meadowDMG * 2; } else { _global[tag1] = 0; } } else { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.meadowDMG; if (_global[tag1] >= _root.savefile.data.meadowDMG) { _global[tag1] -= _root.savefile.data.meadowDMG; } else { _global[tag1] = 0; } } _global.isSpell = undefined; } _root.healthlost._x = X; _root.healthlost._y = Y; _root.healthlost.gotoAndPlay(2); com.greensock.TweenMax.to(_parent[tag2], 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_parent[tag2], 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global[tag1] == 0) { com.greensock.TweenLite.to(_parent[tag2], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = tag2; shadower += 'shadow'; com.greensock.TweenLite.to(_parent[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_parent[tag3], 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } }; this.checkerswitch.onRollOver = function () { gotoAndPlay(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndPlay(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } instance mon3selecter of movieClip 915 { onClipEvent (load) { tag1 = 'enemyhp3'; tag2 = 'monster3'; tag3 = 'enemy3hp'; X = 27; Y = 167; this.checkerswitch.onPress = function () { if (_global.isSpell != undefined) { clicksound = new Sound(this); clicksound.attachSound('spirit'); clicksound.start(); _parent[tag2].attack.gotoAndPlay(9); } else { clicksound = new Sound(this); clicksound.attachSound('slash'); clicksound.start(); _parent[tag2].attack.gotoAndPlay(2); } _root.actionevent.textbox.textbox.text = _global.whoturnisit; if (_global.isBackstab != true && _global.isKnifethrow != true) { _root.actionevent.textbox.textbox.text += ' Attacks!'; } else { if (_global.isKnifethrow == true) { _root.actionevent.textbox.textbox.text += ' Throws!'; } if (_global.isBackstab == true) { _root.actionevent.textbox.textbox.text += ' Backstabs!'; } } _root.actionevent._x = 192; _root.actionevent._y = 4; _root.actionevent.gotoAndPlay(2); _root.targetone._x = -600; _root.targetone._y = -600; _root.mon1selecter._x = -600; _root.mon1selecter._y = -600; _root.mon2selecter._x = -600; _root.mon2selecter._y = -600; _root.mon3selecter._x = -600; _root.mon3selecter._y = -600; com.greensock.TweenMax.to(_parent[_global.whoturnisit], 0, {'colorTransform': {'brightness': 2}}); com.greensock.TweenMax.to(_parent[_global.whoturnisit], 0.5, {'colorTransform': {'brightness': 1}}); if (_global.whoturnisit == 'Amerwyn') { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.amerwynDMG; if (_global[tag1] >= _root.savefile.data.amerwynDMG) { _global[tag1] -= _root.savefile.data.amerwynDMG; } else { _global[tag1] = 0; } } if (_global.whoturnisit == 'Will') { if (_global.isBackstab != true && _global.isKnifethrow != true) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG; if (_global[tag1] >= _root.savefile.data.willDMG) { _global[tag1] -= _root.savefile.data.willDMG; } else { _global[tag1] = 0; } } else { if (_global.isKnifethrow == true) { randomnumber1 = Math.ceil(Math.random() * 10); if (randomnumber1 <= 2) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += Math.ceil(_root.savefile.data.willDMG / 2); if (_global[tag1] >= Math.ceil(_root.savefile.data.willDMG / 2)) { _global[tag1] -= Math.ceil(_root.savefile.data.willDMG / 2); } else { _global[tag1] = 0; } } else { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG * 2; if (_global[tag1] >= _root.savefile.data.willDMG * 2) { _global[tag1] -= _root.savefile.data.willDMG * 2; } else { _global[tag1] = 0; } } } if (_global.isBackstab == true) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.willDMG * 2; if (_global[tag1] >= _root.savefile.data.willDMG * 2) { _global[tag1] -= _root.savefile.data.willDMG * 2; } else { _global[tag1] = 0; } } } _global.isBackstab = undefined; _global.isKnifethrow = undefined; } if (_global.whoturnisit == 'Meadow') { if (_global.isSpell != undefined) { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.meadowDMG * 2; if (_global[tag1] >= _root.savefile.data.meadowDMG * 2) { _global[tag1] -= _root.savefile.data.meadowDMG * 2; } else { _global[tag1] = 0; } } else { _root.healthlost.textbox.textbox.text = '-'; _root.healthlost.textbox.textbox.text += _root.savefile.data.meadowDMG; if (_global[tag1] >= _root.savefile.data.meadowDMG) { _global[tag1] -= _root.savefile.data.meadowDMG; } else { _global[tag1] = 0; } } _global.isSpell = undefined; } _root.healthlost._x = X; _root.healthlost._y = Y; _root.healthlost.gotoAndPlay(2); com.greensock.TweenMax.to(_parent[tag2], 0, {'colorTransform': {'tint': 16711680, 'tintAmount': 0.5}}); com.greensock.TweenMax.to(_parent[tag2], 0.5, {'colorTransform': {'tint': 16711680, 'tintAmount': 0}}); if (_global[tag1] == 0) { com.greensock.TweenLite.to(_parent[tag2], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); shadower = tag2; shadower += 'shadow'; com.greensock.TweenLite.to(_parent[shadower], 1, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); com.greensock.TweenLite.to(_parent[tag3], 2, {'autoAlpha': 0, 'ease': com.greensock.easing.Sine.easeIn}); } }; this.checkerswitch.onRollOver = function () { gotoAndPlay(2); }; this.checkerswitch.onRollOut = function () { gotoAndStop(1); }; this.checkerswitch.onDragOver = function () { gotoAndPlay(2); }; this.checkerswitch.onDragOut = function () { gotoAndStop(1); }; } } instance of movieClip 228 { onClipEvent (load) { stopAllSounds(); music = new Sound(this); music.attachSound('fight'); music.start(0, 999); } } frame 78 { _global.expgained = 0; _global.expgained += _global.monster1speed; _global.expgained += _global.monster2speed; _global.expgained += _global.monster3speed; _global.expgained += Math.ceil(Math.random(5)); _root.textbox.textbox.text = _global.expgained; _root.textbox.textbox.text += ' Experience Gained!'; _global.moneygained = 0; _global.moneygained += _global.monster2speed; _global.moneygained += _global.monster3speed; _global.moneygained += Math.ceil(Math.random(3)); _root.textbox2.textbox.text = _global.moneygained; _root.textbox2.textbox.text += ' Gold Coins Found!'; _root.savefile.data.gold += _global.moneygained; _root.savefile.data.experience += _global.expgained; _root.current1.textbox.text = 'You have '; _root.current1.textbox.text += _root.savefile.data.gold; _root.current1.textbox.text += ' coins total.'; _root.current2.textbox.text = 'You have '; _root.current2.textbox.text += _root.savefile.data.experience; _root.current2.textbox.text += ' experience total.'; getpotion = 0; getpotion = Math.ceil(Math.random() * 20); trace(getpotion); if (getpotion == 1) { ++_root.savefile.data.healingpotion; _root.potion.text = 'You found a healing potion!'; } if (getpotion == 2) { ++_root.savefile.data.healingpotion; _root.potion.text = 'You found a healing potion!'; } if (getpotion == 3) { ++_root.savefile.data.elixier; _root.potion.text = 'You found an elixir!'; } if (getpotion == 4) { ++_root.savefile.data.manapotion; _root.potion.text = 'You found a mana potion!'; } if (getpotion == 5) { ++_root.savefile.data.manapotion; _root.potion.text = 'You found a mana potion!'; } if (getpotion == 6) { ++_root.savefile.data.redincense; _root.potion.text = 'You found some red incense!'; } if (getpotion == 7) { ++_root.savefile.data.blueincense; _root.potion.text = 'You found some blue incense!'; } stop(); } movieClip 919 { } movieClip 922 { } movieClip 923 { } movieClip 924 { } instance of movieClip 924 { onClipEvent (load) { this.onPress = function () { stopAllSounds(); randomSound = Math.ceil(Math.random() * 2); if (randomSound == 1) { music = new Sound(this); music.attachSound('music2'); music.start(0, 999); } else { music = new Sound(this); music.attachSound('music1'); music.start(0, 999); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop(_root.savefile.data.currentmap); }; } } frame 79 { _root.savefile.data.amerwynHP = _root.savefile.data.amerwynMAXHP; _root.savefile.data.meadowHP = _root.savefile.data.meadowMAXHP; _root.savefile.data.willHP = _root.savefile.data.willMAXHP; _root.savefile.data.amerwynMP = _root.savefile.data.amerwynMAXMP; _root.savefile.data.meadowMP = _root.savefile.data.meadowMAXMP; _root.savefile.data.willMP = _root.savefile.data.willMAXMP; stop(); } movieClip 931 { } instance of movieClip 931 { onClipEvent (load) { this.onPress = function () { stopAllSounds(); randomSound = Math.ceil(Math.random() * 2); if (randomSound == 1) { music = new Sound(this); music.attachSound('music2'); music.start(0, 999); } else { music = new Sound(this); music.attachSound('music1'); music.start(0, 999); } clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop(_root.savefile.data.currentmap); }; } } frame 80 { _global.expupdate = function () { experience.text = _root.savefile.data.experience; statNumbers.text = _root.savefile.data.meadowHP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.meadowMAXHP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowMP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.meadowMAXMP; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowSTR; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowVIT; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowSPI; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowDMG; }; _global.expupdate(); } movieClip 941 { } movieClip 944 { } instance of movieClip 944 { onClipEvent (load) { skillname = 'Strength'; specificcost = 30; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.meadowSTR)); skilldesc = 'This attribute increases the raw power of the character. This is not only their physical strength, but the strength of their resolve. This increases the power of physical attacks as well as spiritual attacks and powers.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.meadowSTR; ++_root.savefile.data.meadowDMG; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.meadowDMG; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.meadowSTR)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } instance of movieClip 944 { onClipEvent (load) { skillname = 'Vitality'; specificcost = 45; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.meadowVIT)); skilldesc = 'This attribute increases the amount of health that the character has. Raising it will allow them to take more hits from enemies.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.meadowVIT; ++_root.savefile.data.meadowHP; ++_root.savefile.data.meadowMAXHP; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.meadowHP; ++_root.savefile.data.meadowMAXHP; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.meadowVIT)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } instance of movieClip 944 { onClipEvent (load) { skillname = 'Spirit'; specificcost = 25; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.meadowSPI)); skilldesc = 'This attribute increases the amount of mana the character has. This will allow them to use their spells or special skills more often.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.meadowSPI; ++_root.savefile.data.meadowMP; ++_root.savefile.data.meadowMAXMP; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.meadowMP; ++_root.savefile.data.meadowMAXMP; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.meadowSPI)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Back'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 81 { _global.expupdate = function () { experience.text = _root.savefile.data.experience; statNumbers.text = _root.savefile.data.willHP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.willMAXHP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willMP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.willMAXMP; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willSTR; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willVIT; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willSPI; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willDMG; }; _global.expupdate(); } instance of movieClip 944 { onClipEvent (load) { skillname = 'Strength'; specificcost = 30; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.willSTR)); skilldesc = 'This attribute increases the raw power of the character. This is not only their physical strength, but the strength of their resolve. This increases the power of physical attacks as well as spiritual attacks and powers.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.willSTR; ++_root.savefile.data.willDMG; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.willDMG; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.willSTR)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } instance of movieClip 944 { onClipEvent (load) { skillname = 'Vitality'; specificcost = 35; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.willVIT)); skilldesc = 'This attribute increases the amount of health that the character has. Raising it will allow them to take more hits from enemies.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.willVIT; ++_root.savefile.data.willHP; ++_root.savefile.data.willMAXHP; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.willHP; ++_root.savefile.data.willMAXHP; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.willVIT)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } instance of movieClip 944 { onClipEvent (load) { skillname = 'Spirit'; specificcost = 30; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.willSPI)); skilldesc = 'This attribute increases the amount of mana the character has. This will allow them to use their spells or special skills more often.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.willSPI; ++_root.savefile.data.willMP; ++_root.savefile.data.willMAXMP; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.willMP; ++_root.savefile.data.willMAXMP; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.willSPI)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } frame 82 { _global.expupdate = function () { experience.text = _root.savefile.data.experience; statNumbers.text = _root.savefile.data.amerwynHP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.amerwynMAXHP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynMP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.amerwynMAXMP; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynSTR; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynVIT; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynSPI; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynDMG; }; _global.expupdate(); } instance of movieClip 944 { onClipEvent (load) { skillname = 'Strength'; specificcost = 30; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.amerwynSTR)); skilldesc = 'This attribute increases the raw power of the character. This is not only their physical strength, but the strength of their resolve. This increases the power of physical attacks as well as spiritual attacks and powers.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.amerwynSTR; ++_root.savefile.data.amerwynDMG; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.amerwynDMG; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.amerwynSTR)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } instance of movieClip 944 { onClipEvent (load) { skillname = 'Vitality'; specificcost = 25; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.amerwynVIT)); skilldesc = 'This attribute increases the amount of health that the character has. Raising it will allow them to take more hits from enemies.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.amerwynVIT; ++_root.savefile.data.amerwynHP; ++_root.savefile.data.amerwynMAXHP; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.amerwynHP; ++_root.savefile.data.amerwynMAXHP; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.amerwynVIT)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } instance of movieClip 944 { onClipEvent (load) { skillname = 'Spirit'; specificcost = 40; skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.amerwynSPI)); skilldesc = 'This attribute increases the amount of mana the character has. This will allow them to use their spells or special skills more often.'; this.onPress = function () { if (_root.savefile.data.experience < skillcost) { clicksound = new Sound(this); clicksound.attachSound('bad'); clicksound.start(); } else { _root.savefile.data.experience -= skillcost; clicksound = new Sound(this); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.amerwynSPI; ++_root.savefile.data.amerwynMP; ++_root.savefile.data.amerwynMAXMP; randomnumber1 = Math.ceil(Math.random() * 3); if (randomnumber1 == 1) { ++_root.savefile.data.amerwynMP; ++_root.savefile.data.amerwynMAXMP; } skillcost = Math.ceil(specificcost + Math.pow(_global.costscale, _root.savefile.data.amerwynSPI)); _global.expupdate(); _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; } }; this.onRollOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onRollOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; this.onDragOver = function () { _parent.skillname.text = skillname; _parent.manacost.text = 'Costs '; _parent.manacost.text += skillcost; _parent.manacost.text += ' experience points.'; _parent.textbox.text = skilldesc; }; this.onDragOut = function () { _parent.skillname.text = ''; _parent.manacost.text = ''; _parent.textbox.text = ''; }; } } frame 83 { _global.expupdate = function () { experience.text = _root.savefile.data.gold; statNumbers.text = _root.savefile.data.meadowHP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.meadowMAXHP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowMP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.meadowMAXMP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowDMG; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowHead; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowBody; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowWeapon; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowOther; }; _global.expupdate(); } frame 84 { _global.expupdate = function () { experience.text = _root.savefile.data.gold; statNumbers.text = _root.savefile.data.amerwynHP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.amerwynMAXHP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynMP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.amerwynMAXMP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynDMG; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynHead; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynBody; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynWeapon; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynOther; }; _global.expupdate(); } frame 85 { _global.expupdate = function () { experience.text = _root.savefile.data.gold; statNumbers.text = _root.savefile.data.willHP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.willMAXHP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willMP; statNumbers.text += '/'; statNumbers.text += _root.savefile.data.willMAXMP; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willDMG; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willHead; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willBody; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willWeapon; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willOther; }; _global.expupdate(); } frame 87 { stop(); } movieClip 987 { } movieClip 988 { frame 7 { stop(); } } movieClip 991 { } movieClip 998 { frame 15 { randomnumber1 = Math.ceil(Math.random() * 6); if (randomnumber1 == 1) { gotoAndStop('one'); } if (randomnumber1 == 2) { gotoAndStop('two'); } if (randomnumber1 == 3) { gotoAndStop('three'); } if (randomnumber1 == 4) { gotoAndStop('four'); } if (randomnumber1 == 5) { gotoAndStop('five'); } if (randomnumber1 == 6) { gotoAndStop('six'); } } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Back'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } movieClip 1002 { } movieClip 1005 { } movieClip 1008 { } movieClip 1015 { } movieClip 1020 { } movieClip 1045 { frame 1 { stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _parent.gotoAndStop('meadow'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _parent.gotoAndStop('will'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _parent.gotoAndStop('amerwyn'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 2 { _global.upgradinWeps = function () { amerhp.text = _root.savefile.data.amerwynHP; amerhp.text += '/'; amerhp.text += _root.savefile.data.amerwynMAXHP; amermp.text = _root.savefile.data.amerwynMP; amermp.text += '/'; amermp.text += _root.savefile.data.amerwynMAXMP; willhp.text = _root.savefile.data.willHP; willhp.text += '/'; willhp.text += _root.savefile.data.willMAXHP; willmp.text = _root.savefile.data.willMP; willmp.text += '/'; willmp.text += _root.savefile.data.willMAXMP; meadowhp.text = _root.savefile.data.meadowHP; meadowhp.text += '/'; meadowhp.text += _root.savefile.data.meadowMAXHP; meadowmp.text = _root.savefile.data.meadowMP; meadowmp.text += '/'; meadowmp.text += _root.savefile.data.meadowMAXMP; experience.text = _root.savefile.data.gold; statNumbers.text = _root.savefile.data.amerwynDMG; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynHead; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynBody; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynWeapon; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.amerwynOther; }; _global.upgradinWeps(); stop(); } instance of movieClip 1015 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _parent.gotoAndStop('start'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade her helmet.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, Math.ceil(_root.savefile.data.amerwynMAXHP + _root.savefile.data.amerwynDMG) / 2 + _root.savefile.data.amerwynDMG / 2)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'Purchasing new helms for Amerwyn increases her health. A tougher warrior is a better warrior.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.amerwynMAXHP <= 30) { prefix = ['Iron', 'Bronze', 'Dented', 'Brown', 'Standard', 'Infantry', 'Soldier\'s', 'Brass', 'Copper', 'Rusty']; suffix = ['Helm', 'Skullcap', 'Topper', 'Bucket', 'Hard Hat', 'Coif', 'Mask', 'Protector', 'Faceshield', 'Visor']; } else { if (_root.savefile.data.amerwynMAXHP <= 70) { prefix = ['Steel', 'Mithril', 'Kamalan', 'Red Alloy', 'Dark Iron', 'Fith', 'Ardanian', 'Aoranian', 'Veinrock', 'Native\'s']; suffix = ['Mask', 'Guard', 'Helm', 'Helmet', 'Visor', 'Defender', 'Faceplate', 'Crown', 'Cap', 'Basinet']; } else { prefix = ['Vonaran', 'Foreran', 'Red Steel', 'Hild\'s', 'Silver', 'Emerald', 'Gold', 'Bender', 'Black Wood', 'Plated']; suffix = ['Guard', 'Rashan', 'Visage', 'Visor', 'Scaper', 'Mane', 'Mask', 'Skull', 'Helm', 'Casque']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynMAXHP += Math.ceil(Math.random() * 2) + 1; _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.amerwynHead = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.amerwynHead = prefix[randomnumber1]; _root.savefile.data.amerwynHead += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.amerwynHead += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade her armor.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, Math.ceil(_root.savefile.data.amerwynMAXHP + _root.savefile.data.amerwynDMG) / 2 + _root.savefile.data.amerwynMAXHP / 2)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'Use gold to purchase better armor for Amerwyn, raising her hitpoints and allowing her to take more hit sin combat.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.amerwynMAXHP <= 30) { prefix = ['Tin', 'Copper', 'Bronze', 'Iron', 'Lead', 'Poor', 'Rusty', 'Simple', 'Average', 'Issued']; suffix = ['Beads', 'Splints', 'Tunic', 'Shirt', 'Studs', 'Padding', 'Armor', 'Suit', 'Mail', 'Links']; } else { if (_root.savefile.data.amerwynMAXHP <= 70) { prefix = ['Heavy', 'Full', 'Red Steel', 'Steel', 'Padded', 'Reinforced', 'Polished', 'Studded', 'Banded', 'Scale']; suffix = ['Mail', 'Body', 'Armor', 'Chainmail', 'Chest', 'Breastplate', 'Half', 'Mail', 'Chains', 'Bands']; } else { prefix = ['Imported', 'Trimmed', 'Legendary', 'Heavy', 'Master\'s', 'Superior', 'Fine', 'Serpent', 'Wolf', 'Dragon']; suffix = ['Ornate', 'Russet', 'Gothic', 'Field', 'Splint', 'Mail', 'Plate', 'Rings', 'Full', 'Suit']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynMAXHP += Math.ceil(Math.random() * 2) + 1; _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.amerwynBody = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.amerwynBody = prefix[randomnumber1]; _root.savefile.data.amerwynBody += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.amerwynBody += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade her weapon.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, _root.savefile.data.amerwynDMG * 3 + 5)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'Upgrading her weapon will allow her to do more damage, this comes only at the cost of the gold you have earned.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.amerwynDMG <= 20) { prefix = ['Iron', 'Bronze', 'Simple', 'Basic', 'Standard', 'Infantry', 'Soldier\'s', 'Common', 'Short', 'Notched']; suffix = ['Glaive', 'Cutlass', 'Epee', 'Scimitar', 'Falchion', 'Brand', 'Saber', 'Sword', 'Machete', 'Blade']; } else { if (_root.savefile.data.amerwynDMG <= 40) { prefix = ['Steel', 'Mithril', 'Kamalan', 'Fenrirr', 'Torus', 'Fith', 'Ardanian', 'Aoranian', 'Red', 'Cobalt']; suffix = ['Hunter', 'Kris', 'Saber', 'Brand', 'Sword', 'Rapier', 'Blade', 'Curve', 'Edge', 'Hook']; } else { prefix = ['Vonaran', 'Foreran', 'Silk', 'The Blue', 'Silver', 'Emerald', 'Diamond', 'Ruby', 'Seeker\'s', 'Minervan']; suffix = ['Guide', 'Blade', 'Glaive', 'Claw', 'Tooth', 'Wolf', 'Crane', 'Child', 'Slayer', 'Dealer']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynDMG += Math.ceil(Math.random() * 2); _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.amerwynWeapon = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.amerwynWeapon = prefix[randomnumber1]; _root.savefile.data.amerwynWeapon += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.amerwynWeapon += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } frame 3 { _global.upgradinWeps = function () { willhp.text = _root.savefile.data.willHP; willhp.text += '/'; willhp.text += _root.savefile.data.willMAXHP; willmp.text = _root.savefile.data.willMP; willmp.text += '/'; willmp.text += _root.savefile.data.willMAXMP; willhp.text = _root.savefile.data.willHP; willhp.text += '/'; willhp.text += _root.savefile.data.willMAXHP; willmp.text = _root.savefile.data.willMP; willmp.text += '/'; willmp.text += _root.savefile.data.willMAXMP; meadowhp.text = _root.savefile.data.meadowHP; meadowhp.text += '/'; meadowhp.text += _root.savefile.data.meadowMAXHP; meadowmp.text = _root.savefile.data.meadowMP; meadowmp.text += '/'; meadowmp.text += _root.savefile.data.meadowMAXMP; experience.text = _root.savefile.data.gold; statNumbers.text = _root.savefile.data.willDMG; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willHead; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willBody; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willWeapon; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.willOther; }; _global.upgradinWeps(); stop(); } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade his hat.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, Math.ceil(_root.savefile.data.willMAXHP + _root.savefile.data.willMAXMP) / 2 + _root.savefile.data.willDMG)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'New hats increase both Will\'s mana and his health! But they can be very costly.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.willMAXHP <= 30) { prefix = ['Simple', 'Brimmed', 'A Warm', 'Stuffed', 'Dyed', 'A Dirty', 'Ripped', 'Floppy', 'Folded', 'Cloth']; suffix = ['Tophat', 'Conch', 'Bill', 'Hat', 'Shako', 'Sallet', 'Circlet', 'Hood', 'Cap', 'Hat']; } else { if (_root.savefile.data.willMAXHP <= 70) { prefix = ['Assassin', 'Strong', 'Fine', 'Wool', 'Leather', 'Padded', 'Hunting', 'Red', 'Silver', 'Black']; suffix = ['Cowl', 'Muffler', 'Bandana', 'Coif', 'Hat', 'Helm', 'Scarf', 'Mask', 'Cover', 'Hood']; } else { prefix = ['Raven\'s', 'Pathfinder\'s', 'Bramble', 'Drakkish', 'Prizelord\'s', 'Dusk\'s', 'The Shadow', 'Enchanted', 'Inscribed', 'The Red']; suffix = ['Halo', 'Eyepatch', 'Guise', 'Breather', 'Mask', 'Headband', 'Helm', 'Hood', 'Crown', 'Shroud']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willMAXHP += Math.ceil(Math.random() * 2) + 1; _root.savefile.data.willMAXMP += Math.ceil(Math.random() * 2) + 1; _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.willHead = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.willHead = prefix[randomnumber1]; _root.savefile.data.willHead += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.willHead += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade his armor.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, Math.ceil(_root.savefile.data.willMAXMP + _root.savefile.data.willMAXHP) / 2 + _root.savefile.data.willMAXHP / 2)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'Upgrading Will\'s armor will increase his total hitpoints. This will make him stronger in battle at the cost of your gold.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.willMAXHP <= 30) { prefix = ['Hide', 'White', 'Fleece', 'Softened', 'Leather', 'Reinforced', 'Hardened', 'Padded', 'Quilted', 'Cloth']; suffix = ['Armor', 'Sheets', 'Weave', 'Skin', 'Cloak', 'Sweater', 'Vest', 'Jacket', 'Tunic', 'Shirt']; } else { if (_root.savefile.data.willMAXHP <= 70) { prefix = ['Imp\'s', 'Scarab', 'Wyrmhide', 'Dusk', 'Ringed', 'Studded', 'Enchanted', 'Snakeskin', 'Demonhide', 'Ghostly']; suffix = ['Cover', 'Jacket', 'Wraps', 'Carapace', 'Jerkin', 'Vest', 'Cloak', 'Dressing', 'Mail', 'Armor']; } else { prefix = ['Veiled', 'Darkguard', 'Stalker', 'Hunter\'s', 'Shade', 'Shadow', 'Battle', 'Gorgon\'s', 'Dragon\'s', 'Wastewalker\'s']; suffix = ['Carapace', 'Weave', 'Tunic', 'Jerkin', 'Gear', 'Setup', 'Suit', 'Set', 'Vest', 'Jacket']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willMAXHP += Math.ceil(Math.random() * 2) + 1; _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.willBody = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.willBody = prefix[randomnumber1]; _root.savefile.data.willBody += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.willBody += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade his weapons.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, _root.savefile.data.willDMG * 3 + 7)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'With better weapons, he will be able to deal out more damage making fights most easy to finish.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.willDMG <= 20) { prefix = ['Basic', 'Red', 'Twisted', 'Short', 'Lifted', 'Nicked', 'Dull', 'Curved', 'Bronze', 'Iron']; suffix = ['Knives', 'Daggers', 'Blades', 'Stiletto', 'Daggers', 'Daggers', 'Swords', 'Blades', 'Dirks', 'Knives']; } else { if (_root.savefile.data.willDMG <= 40) { prefix = ['Black', 'Highway', 'Bandit\'s', 'Deadly', 'Wild', 'Hooked', 'Sharp', 'Enchanted', 'Runed', 'Relic']; suffix = ['Stabbers', 'Slicers', 'Slayers', 'Killers', 'Dirks', 'Knives', 'Daggers', 'Blades', 'Iron', 'Steel']; } else { prefix = ['Runed', 'Polished', 'Phantom', 'Ghost\'s', 'Arachnid', 'Carving', 'Bloody', 'Cross', 'Stalker', 'Mangled']; suffix = ['Claws', 'Teeth', 'Needles', 'Fighters', 'Bayonets', 'Thorns', 'Edge', 'Blades', 'Steel', 'Daggers']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willDMG += Math.ceil(Math.random() * 2); _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.willWeapon = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.willWeapon = prefix[randomnumber1]; _root.savefile.data.willWeapon += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.willWeapon += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } frame 4 { _global.upgradinWeps = function () { meadowhp.text = _root.savefile.data.meadowHP; meadowhp.text += '/'; meadowhp.text += _root.savefile.data.meadowMAXHP; meadowmp.text = _root.savefile.data.meadowMP; meadowmp.text += '/'; meadowmp.text += _root.savefile.data.meadowMAXMP; meadowhp.text = _root.savefile.data.meadowHP; meadowhp.text += '/'; meadowhp.text += _root.savefile.data.meadowMAXHP; meadowmp.text = _root.savefile.data.meadowMP; meadowmp.text += '/'; meadowmp.text += _root.savefile.data.meadowMAXMP; meadowhp.text = _root.savefile.data.meadowHP; meadowhp.text += '/'; meadowhp.text += _root.savefile.data.meadowMAXHP; meadowmp.text = _root.savefile.data.meadowMP; meadowmp.text += '/'; meadowmp.text += _root.savefile.data.meadowMAXMP; experience.text = _root.savefile.data.gold; statNumbers.text = _root.savefile.data.meadowDMG; statNumbers.text += '\n'; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowHead; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowBody; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowWeapon; statNumbers.text += '\n'; statNumbers.text += _root.savefile.data.meadowOther; }; _global.upgradinWeps(); stop(); } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade her headgear.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, Math.ceil(_root.savefile.data.meadowMAXMP) / 2 + _root.savefile.data.meadowDMG)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'Using gold to buy Meadow headgear meadow increase the number of times she can cast spell by giving her more mana.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.meadowMAXHP <= 30) { prefix = ['Cedar', 'Cypress', 'Carved', 'Dark', 'Gnarled', 'Berrywood', 'Willow', 'Ash', 'Oak', 'Pine']; suffix = ['Cowl', 'Retainer', 'Headdress', 'Guise', 'Mantle', 'Facemask', 'Helm', 'Headpiece', 'Mask', 'Crown']; } else { if (_root.savefile.data.meadowMAXHP <= 70) { prefix = ['Birch', 'Hickory', 'Chestnut', 'Aspen', 'Whitecedar', 'Bluepine', 'Redwood', 'Hemlock', 'Yew', 'Fir']; suffix = ['Cowl', 'Retainer', 'Headdress', 'Guise', 'Mantle', 'Facemask', 'Helm', 'Headpiece', 'Mask', 'Crown']; } else { prefix = ['Mahogany', 'Ironwood', 'Dogwood', 'Elm', 'Whiteoak', 'Cottonwood', 'Coachwood', 'Cherry', 'Walnut', 'Boxelder']; suffix = ['Cowl', 'Retainer', 'Headdress', 'Guise', 'Mantle', 'Facemask', 'Helm', 'Headpiece', 'Mask', 'Crown']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowMAXMP += Math.ceil(Math.random() * 2) + 2; _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.meadowHead = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.meadowHead = prefix[randomnumber1]; _root.savefile.data.meadowHead += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.meadowHead += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade her armor.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, Math.ceil(_root.savefile.data.meadowMAXMP + _root.savefile.data.meadowMAXHP) / 3 + _root.savefile.data.meadowDMG / 3 + 10)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'Upgrading Meadow\'s armor meadow give her more health, so that she doesn\'t fall as often in battle.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.meadowMAXHP <= 30) { prefix = ['Outer', 'Battered', 'Dyed', 'Washed', 'Opulent', 'Shadowmoon', 'Forest', 'Nightsky', 'Midnight', 'Red']; suffix = ['Embrace', 'Satin', 'Beads', 'Wearings', 'Cover', 'Drape', 'Cloth', 'Armor', 'Tunic', 'Robes']; } else { if (_root.savefile.data.meadowMAXHP <= 70) { prefix = ['Scholarly', 'Aurora', 'Bearer\'s', 'Demon', 'Ghostly', 'Whispering', 'Haunted', 'Shadow', 'Shade', 'Dark']; suffix = ['Mezzir', 'Bloodweave', 'Silk', 'Hide', 'Satin', 'Wool', 'Cloth', 'Drape', 'Tunic', 'Robes']; } else { prefix = ['Exiled', 'Enchanted', 'Forgotten', 'Runecloth', 'Thistle', 'Resilient', 'Pagan', 'Cast', 'Mystical', 'Celestial']; suffix = ['Mezzir', 'Bloodweave', 'Silk', 'Hide', 'Satin', 'Wool', 'Cloth', 'Drape', 'Tunic', 'Robes']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowMAXHP += Math.ceil(Math.random() * 2) + 1; _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.meadowBody = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.meadowBody = prefix[randomnumber1]; _root.savefile.data.meadowBody += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.meadowBody += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } instance of movieClip 1020 { onClipEvent (load) { nametitle = 'Upgrade her weapons.'; costcalc = function () { cost = Math.ceil(Math.pow(_global.costscale, _root.savefile.data.meadowDMG * 3 + 5)); actualCost = cost; cost += ' gold coins.'; }; costcalc(); desc = 'With better weapons, Meadow will be able to both hurt enemies more, and heal friends more.'; this._alpha = 80; this.onPress = function () { if (_root.savefile.data.gold >= actualCost) { if (_root.savefile.data.meadowDMG <= 20) { prefix = ['Wooden', 'Chiseled', 'Etched', 'Carved', 'Stone', 'Bone', 'Glass', 'Spider', 'Snake', 'Lizard']; suffix = ['Tooth', 'Talon', 'Biter', 'Fang', 'Dirk', 'Piece', 'Shard', 'Moon', 'Curve', 'Edge']; } else { if (_root.savefile.data.meadowDMG <= 40) { prefix = ['Dawn', 'Cold', 'Witch\'s', 'Spirit', 'Mindsear', 'Survivor\'s', 'Hallowed', 'Deathly', 'Dread', 'Queen\'s']; suffix = ['Thorn', 'Crescent', 'Sticker', 'Knife', 'Cutter', 'Slicer', 'Poker', 'Shard', 'Sword', 'Scythe']; } else { prefix = ['Widow\'s', 'Gemmed', 'Cold', 'Still', 'Water\'s', 'Demon\'s', 'Sacrificial', 'Ruined', 'Enchanted', 'Mounring']; suffix = ['Sickle', 'Axe', 'Cleaver', 'Drainer', 'Shard', 'Blade', 'Stabber', 'Shanker', 'Dagger', 'Kris']; } } clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowDMG += Math.ceil(Math.random() * 2); _root.savefile.data.gold -= actualCost; costcalc(); _parent.costinfo.text = cost; _root.savefile.data.meadowWeapon = ''; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.meadowWeapon = prefix[randomnumber1]; _root.savefile.data.meadowWeapon += ' '; randomnumber1 = Math.ceil(Math.random() * 10) - 1; _root.savefile.data.meadowWeapon += suffix[randomnumber1]; _parent._global.upgradinWeps(); } else { clicksound = new Sound(); clicksound.attachSound('bad'); clicksound.start(); } }; this.onRollOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onDragOver = function () { this._alpha = 100; _parent.nameinfo.text = nametitle; costcalc(); _parent.costinfo.text = cost; _parent.infoinfo.text = desc; }; this.onRollOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; this.onDragOut = function () { this._alpha = 80; _parent.nameinfo.text = ''; _parent.costinfo.text = ''; _parent.infoinfo.text = ''; }; } } } frame 89 { stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowMAXHP += 3; _root.gotoAndStop('event2'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willMAXHP += 3; _root.gotoAndStop('event2'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynMAXHP += 3; _root.gotoAndStop('event2'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 90 { stop(); } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _global.playerposition[0] = 7; _global.playerposition[1] = 7; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 91 { stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowMAXMP += 3; _root.gotoAndStop('event4'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willMAXMP += 3; _root.gotoAndStop('event4'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynMAXMP += 3; _root.gotoAndStop('event4'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 92 { stop(); } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _global.playerposition[0] = 3; _global.playerposition[1] = 8; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 93 { stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = 'Bone Amulet'; _root.savefile.data.meadowMAXMP += 3; _root.gotoAndStop('event6'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = 'Bone Amulet'; _root.savefile.data.willMAXMP += 3; _root.gotoAndStop('event6'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = 'Bone Amulet'; _root.savefile.data.amerwynMAXMP += 3; _root.gotoAndStop('event6'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 94 { stop(); } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _global.playerposition[0] = 8; _global.playerposition[1] = 8; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 95 { stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = 'Sharpening Stone'; _root.savefile.data.meadowDMG += 2; _root.gotoAndStop('event8'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = 'Sharpening Stone'; _root.savefile.data.willDMG += 2; _root.gotoAndStop('event8'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = 'Sharpening Stone'; _root.savefile.data.amerwynDMG += 2; _root.gotoAndStop('event8'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 96 { stop(); } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _global.playerposition[0] = 3; _global.playerposition[1] = 7; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 97 { _global.secretItem = 'Iron Runestone'; stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = _global.secretItem; _root.savefile.data.meadowDMG += 2; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = _global.secretItem; _root.savefile.data.willDMG += 2; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = _global.secretItem; _root.savefile.data.amerwynDMG += 2; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 98 { _global.secretItem = 'Bead Bracelt'; stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = _global.secretItem; _root.savefile.data.meadowDMG += 1; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = _global.secretItem; _root.savefile.data.willDMG += 1; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = _global.secretItem; _root.savefile.data.amerwynDMG += 1; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 99 { _global.secretItem = 'Dragon Ring'; stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = _global.secretItem; _root.savefile.data.meadowMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = _global.secretItem; _root.savefile.data.willMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = _global.secretItem; _root.savefile.data.amerwynMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 100 { stop(); } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynMAXMP += 3; _root.savefile.data.meadowMAXMP += 3; _root.savefile.data.willMAXMP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 101 { stop(); } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynMAXMP += 1; _root.savefile.data.meadowMAXMP += 1; _root.savefile.data.willMAXMP += 1; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 102 { stop(); } frame 103 { _global.secretItem = 'Onyx Box'; stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = _global.secretItem; _root.savefile.data.meadowMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = _global.secretItem; _root.savefile.data.willMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = _global.secretItem; _root.savefile.data.amerwynMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 104 { _global.secretItem = 'Climber\'s Earring'; stop(); } frame 105 { _global.secretItem = 'Greenstone Collar'; stop(); } frame 106 { _global.secretItem = 'Crystal Ball'; stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = _global.secretItem; _root.savefile.data.meadowMAXMP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = _global.secretItem; _root.savefile.data.willMAXMP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = _global.secretItem; _root.savefile.data.amerwynMAXMP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 107 { _global.secretItem = 'The Warrior\'s Ring'; stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = _global.secretItem; _root.savefile.data.meadowMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = _global.secretItem; _root.savefile.data.willMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = _global.secretItem; _root.savefile.data.amerwynMAXHP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } frame 108 { _global.secretItem = 'Silver Bag'; stop(); } instance of movieClip 1002 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.meadowOther = _global.secretItem; _root.savefile.data.meadowMAXMP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1005 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.willOther = _global.secretItem; _root.savefile.data.willMAXMP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } instance of movieClip 1008 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.amerwynOther = _global.secretItem; _root.savefile.data.amerwynMAXMP += 3; _root.gotoAndStop(_root.savefile.data.currentmap); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } movieClip 1071 { } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.nextFrame(); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } movieClip 1077 { } movieClip 1081 { } movieClip 1089 { } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.savefile.data.currentmap = 'map01'; _global.playerposition = [6, 2]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 134 { trace(_root.savefile.data.story); if (_root.savefile.data.story > 0) { _root.savefile.data.currentmap = 'map02'; _global.playerposition = [6, 7]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.nextFrame(); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.story; _root.savefile.data.currentmap = 'map02'; _global.playerposition = [6, 7]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 142 { trace(_root.savefile.data.story); if (_root.savefile.data.story > 1) { _root.savefile.data.currentmap = 'map09'; _global.playerposition = [2, 2]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.nextFrame(); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.story; _root.savefile.data.currentmap = 'map09'; _global.playerposition = [2, 2]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 150 { trace(_root.savefile.data.story); if (_root.savefile.data.story > 2) { _root.savefile.data.currentmap = 'map25'; _global.playerposition = [2, 1]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.nextFrame(); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.story; _root.savefile.data.currentmap = 'map25'; _global.playerposition = [2, 1]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 159 { trace(_root.savefile.data.story); if (_root.savefile.data.story > 3) { _root.savefile.data.currentmap = 'map38'; _global.playerposition = [5, 7]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.nextFrame(); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.story; _root.savefile.data.currentmap = 'map38'; _global.playerposition = [5, 7]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 166 { trace(_root.savefile.data.story); if (_root.savefile.data.story > 4) { _root.savefile.data.currentmap = 'map50'; _global.playerposition = [1, 7]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.nextFrame(); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); ++_root.savefile.data.story; _root.savefile.data.currentmap = 'map50'; _global.playerposition = [1, 7]; _root.savefile.data.playerPosX = _global.playerposition[0]; _root.savefile.data.playerPosY = _global.playerposition[1]; _root.gotoAndStop(_root.savefile.data.currentmap); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } frame 175 { stop(); } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Continue'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); _root.nextFrame(); } }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } movieClip 1147 { } movieClip 1155 { } movieClip 1160 { } movieClip 1163 { } movieClip 1166 { } movieClip 1169 { } movieClip 1172 { } movieClip 1175 { } movieClip 1177 { frame 147 { stop(); } instance of movieClip 1160 { onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('rollover'); clicksound.start(); getURL('http://www.newgrounds.com/portal/view/566204', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; this.onDragOut = function () { this._alpha = 90; }; } } instance of movieClip 1163 { onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('rollover'); clicksound.start(); getURL('http://www.newgrounds.com/portal/view/511552', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; this.onDragOut = function () { this._alpha = 90; }; } } instance of movieClip 1166 { onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('rollover'); clicksound.start(); getURL('http://www.newgrounds.com/portal/view/601977', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; this.onDragOut = function () { this._alpha = 90; }; } } instance of movieClip 1169 { onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('rollover'); clicksound.start(); getURL('http://www.newgrounds.com/portal/view/579631', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; this.onDragOut = function () { this._alpha = 90; }; } } instance of movieClip 1172 { onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('rollover'); clicksound.start(); getURL('http://www.newgrounds.com/portal/view/591166', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; this.onDragOut = function () { this._alpha = 90; }; } } instance of movieClip 1175 { onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('rollover'); clicksound.start(); getURL('http://www.newgrounds.com/portal/view/608413', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; this.onDragOut = function () { this._alpha = 90; }; } } instance of movieClip 224 { onClipEvent (load) { this.textbox.text = 'Play More Games!'; if (this.textbox.text == '') { this._alpha = 0; } else { this._alpha = 80; } this.onPress = function () { _parent.cursor.gotoAndStop(1); clicksound = new Sound(); clicksound.attachSound('click'); clicksound.start(); getURL('http://www.newgrounds.com/games/browse/genre/adventure-rpg/interval/year/sort/score', '_blank'); }; this.onRollOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onDragOver = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(3); this._alpha = 100; } }; this.onRollOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; this.onDragOut = function () { if (this.textbox.text != '') { _parent.cursor.gotoAndStop(1); this._alpha = 80; } }; } } instance of movieClip 123 { onClipEvent (load) { this._alpha = 80; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound('introclicked'); clicksound.start(); getURL('http://www.newgrounds.com/', '_blank'); }; this.onRollOver = function () { this._alpha = 100; }; this.onDragOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; this.onDragOut = function () { this._alpha = 80; }; } } }




http://swfchan.com/43/211238/info.shtml
Created: 8/10 -2018 01:29:52 Last modified: 8/10 -2018 01:29:52 Server time: 14/11 -2024 06:24:58