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

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

Pico-Sim-Date-3-8-35.swf

This is the info page for
Flash #195500

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


ActionScript [AS1/AS2]
Combined Code
movieClip 13 fxPoor { frame 20 { this.removeMovieClip(); } } movieClip 15 fxStatsAddOne { frame 15 { this.removeMovieClip(); } } movieClip 17 fxPurchased { frame 20 { this.removeMovieClip(); } } movieClip 20 { } movieClip 21 fxMoneyAddOne { frame 15 { this.removeMovieClip(); } } movieClip 24 { } movieClip 25 { } movieClip 27 { } movieClip 29 { frame 1 { stop(); } } movieClip 32 { } movieClip 33 { } movieClip 36 { } movieClip 39 { frame 1 { stop(); } } movieClip 40 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 && haltComplete != true) { onEnterFrame = null; gotoAndStop('loaded'); } } stop(); var autoPlay; var className; var haltComplete; onEnterFrame = enterFrameHandler; } frame 10 { function _onPlayClick() { _root.preloader.fx.gotoAndPlay(2); _parent._onLoaded(); } if (playButton) { playButton.onRelease = _onPlayClick; playButton.stop(); } if (autoPlay) { _onPlayClick(null); } } } movieClip 42 Newgrounds API Classes { #initclip Object.registerClass('Newgrounds API Classes', com.newgrounds.shims.APIShim); #endinitclip } movieClip 82 { } movieClip 85 { } movieClip 90 { } movieClip 94 { } movieClip 95 { } movieClip 96 { } movieClip 97 FlashAd { #initclip Object.registerClass('FlashAd', com.newgrounds.components.FlashAdBase); #endinitclip frame 1 { function initPlayButton() { if (this.playButton) { this.playButton.onRelease = onPlayClick; if (!this.showPlayButton) { this.playButton._visible = false; } } } function onPlayClick() { removeAd(); _visible = false; } stop(); } frame 2 { initPlayButton(); } frame 10 { initPlayButton(); } frame 20 { initPlayButton(); } } movieClip 98 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 1319; case 'Simulate Logged-in User': //Invalid switch } v2.debugMode = v2.DEBUG_MODE_LOGGED_IN; goto 1319; case 'Off': v2.debugMode = v2.DEBUG_MODE_LOGGED_OUT; goto 1319; case 'Simulate Logged-in User': v2.debugMode = v2.DEBUG_MODE_NEW_VERSION; goto 1319; case 'Simulate Logged-out User': v2.debugMode = v2.DEBUG_MODE_HOST_BLOCKED; label 1319: if (loader) { loader.haltComplete = true; } v2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected); v2.connect(_root, apiId, encryptionKey, movieVersion); } } function _onConnected(event) { if (loader) { loader.haltComplete = false; } 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 97 FlashAd { onClipEvent (construct) { apiId = ''; showBorder = true; adType = 'Video'; } } instance loader of movieClip 40 Preloader { onClipEvent (construct) { autoPlay = false; mainClass = ''; } } } frame 1 { function itemHandler1(obj, item) { getURL('http://newgrounds.com', '_blank'); } stop(); _root.musicIntro = new Sound(); _root.musicIntro.attachSound('musicIntro'); root_cm = new ContextMenu(); root_cm.hideBuiltInItems(); aaa_cmi = new ContextMenuItem('Newgrounds', itemHandler1); ccc_cmi.separatorBefore = true; root_cm.customItems.push(aaa_cmi); _root.menu = root_cm; } movieClip 102 { } movieClip 106 { } movieClip 108 { } movieClip 110 { } movieClip 113 { } // unknown tag 88 length 107 // unknown tag 88 length 284 // unknown tag 88 length 75 movieClip 123 { frame 1 { stop(); } frame 2 { _root.musicIntro.start(0, 0); } frame 25 { _root.nextFrame(); } } movieClip 124 { instance of movieClip 98 APIConnector { onClipEvent (construct) { apiId = '40565:39MfIlfA'; encryptionKey = 'cUxmLuX47UHjNDH0ccGoGanJlbrq1WXv'; debugMode = 'Simulate Logged-in User'; movieVersion = ''; connectorType = 'Flash Ad + Preloader'; redirectOnNewVersion = true; redirectOnHostBlocked = true; adType = 'Video'; } } } movieClip 51 __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.splice(0, 3)).join('/'); } } 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 44 __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 43 __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 45 __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 48 __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 54 __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) { com.newgrounds.Logger.logInternal('Received packet:', data); try { if (!data || data == '') { throw new Error(); } var v2 = com.newgrounds.encoders.json.JSON.decode(data); if (!v2) { throw new Error(); } 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)); if (com.newgrounds.APICommand.bridge) { com.newgrounds.APICommand.bridge.sendEvent(v2.command_id, v2); } } 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 50 __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) { super(); this._widgetId = id; this._inConnection = new LocalConnection(); this._outConnection = new LocalConnection(); var me = this; this._inConnection.receiveEvent = function () { me.receiveEvent.apply(me, arguments); }; this._inConnection.allowInsecureDomain = function (d) { return d == 'www.newgrounds.com' || d == 'newgrounds.com' || d == 'uploads.ungrounded.net'; }; this._inConnection.allowDomain = this._inConnection.allowInsecureDomain; this._inConnection.connect('_rec_' + this._widgetId); com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {'target': this, 'func': this.onLogMessage}); }; com.newgrounds.Bridge = v1; com.newgrounds.Bridge extends com.newgrounds.EventDispatcher; var v2 = v1.prototype; v2.__get__widgetId = function () { return this._widgetId; }; 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}; try { this._outConnection.send(this._widgetId, 'sendEvent', command, parameters); } } }; v2.receiveEvent = function (responseData) { var v2; try { v2 = com.newgrounds.encoders.json.JSON.decode(responseData); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.BRIDGE_EVENT_RECEIVED, v2, (v2 == null) ? com.newgrounds.APIEvent.ERROR_UNKNOWN : null)); }; v2.onStatus = function (event) {}; v2.addProperty('widgetId', v2.__get__widgetId, function () {}); ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1); } #endinitclip } movieClip 46 __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.BRIDGE_EVENT_RECEIVED = 'brdigeEventReceived'; 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_DELETED = 'fileDeleted'; v1.FILE_REQUESTED = 'fileRequested'; v1.VOTE_COMPLETE = 'voteComplete'; v1.USER_SIGNED_IN = 'userSignedIn'; 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'; v1.ERROR_SIGN_IN_FAILED = 'signInFailed'; 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 65 __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__serverTime = function () { return com.newgrounds.API._serverTime; }; 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; } else { com.newgrounds.API._bridge = new com.newgrounds.Bridge(com.newgrounds.crypto.MD5.hash(String(Math.random()))); 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; } com.newgrounds.API._serverTime = new Date(int(v1.time) * 1000); 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 v4; var v1; 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'); } v4 = 0; while (v4 < v10) { var v5 = v11.medals[v4]; var v15 = v5.medal_unlocked; var v17 = v18 && v18[v5.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 v6 = new com.newgrounds.Medal(com.newgrounds.API._connection, v5.medal_id, v5.medal_name, v5.medal_description, Boolean(int(v5.secret)), v14, v5.medal_value, v5.medal_difficulty, v5.medal_icon); v6.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked, false, 0, true); v6.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed, false, 0, true); com.newgrounds.API._medals[v6.__get__name()] = v6; com.newgrounds.API._medalsArray.push(v6); com.newgrounds.Logger.logMessage(v6); if (com.newgrounds.API.__get__hasUserSession() && v17 && !v15) { com.newgrounds.Logger.logMessage('Server missed the "' + v6.__get__name() + '" unlock. Resending...'); v6.unlock(); } ++v4; } } com.newgrounds.Logger.logMessage(v10 + ' medal' + ((v10 != 1) ? 's' : '') + ' initialized.'); v10 = 0; if (v11.score_boards) { v10 = v11.score_boards.length; v4 = 0; while (v4 < v10) { var v16 = v11.score_boards[v4]; 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); ++v4; } } com.newgrounds.Logger.logMessage(v10 + ' scoreboard' + ((v10 != 1) ? 's' : '') + ' initialized.'); v10 = 0; if (v11.save_groups) { v10 = v11.save_groups.length; v4 = 0; while (v4 < v10) { var v2 = v11.save_groups[v4]; var v13 = []; if (v2.keys) { v1 = 0; while (v1 < v2.keys.length) { var v7 = v2.keys[v1]; v13.push(new com.newgrounds.SaveKey(v7.name, v7.id, v7.type)); ++v1; } } 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); ++v4; } } 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.promptSignIn = function () { if (com.newgrounds.API._connection.assertInitialized()) { getURL(com.newgrounds.API.PASSPORT_URL + com.newgrounds.API._bridge.__get__widgetId(), '_blank'); com.newgrounds.API._bridge.addEventListener(com.newgrounds.APIEvent.BRIDGE_EVENT_RECEIVED, com.newgrounds.API.onUserSignedIn, false, 0, true); } }; v1.onUserSignedIn = function (e) { com.newgrounds.API._bridge.removeEventListener(com.newgrounds.APIEvent.BRIDGE_EVENT_RECEIVED, com.newgrounds.API.onUserSignedIn); var v1 = e.__get__data(); if (e.__get__success()) { try { if (v1.NewgroundsAPI_UserName) { com.newgrounds.API._connection.username = v1.NewgroundsAPI_UserName; } if (v1.NewgroundsAPI_UserID) { com.newgrounds.API._connection.userId = v1.NewgroundsAPI_UserID; } if (v1.NewgroundsAPI_PublisherID) { com.newgrounds.API._connection.publisherId = v1.NewgroundsAPI_PublisherID; } if (v1.NewgroundsAPI_SessionID) { com.newgrounds.API._connection.sessionId = v1.NewgroundsAPI_SessionID; } com.newgrounds.API._connection.sendSimpleCommand('preloadSettings', com.newgrounds.API.onMetadataLoaded, {'publisher_id': com.newgrounds.API._connection.publisherId, 'user_id': com.newgrounds.API._connection.userId}); } com.newgrounds.Logger.logMessage('User ' + com.newgrounds.API._connection.username + ' signed in.'); } com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.USER_SIGNED_IN, null, e.__get__success() ? null : com.newgrounds.APIEvent.ERROR_SIGN_IN_FAILED); }; 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.2 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.PASSPORT_URL = 'https://www.newgrounds.com/login/remote/'; 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('serverTime', v1.__get__serverTime, 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 62 __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 v4 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'i': 6, 'x': 0, 'y': 0, 'output': null}; var v3 = source.substr(0, 3); var v2 = source.substr(3, 3); while (v3.charAt(0) == '0') { v3 = v3.substr(1); } while (v2.charAt(0) == '0') { v2 = v2.substr(1); } var v7 = int(v3); var v8 = int(v2); v4.output = new flash.display.BitmapData(v7, v8, this._encodeAlpha); var v6 = setInterval(this, 'doDecode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v4); v4.interval = v6; }; 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 63 __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 = {}; this._numVotes = {}; }; 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 v3 = new com.newgrounds.SaveFile(group); v3._name = fileData.filename; v3._description = fileData.description; v3._id = fileData.save_id; v3._authorId = fileData.user_id; v3._authorName = fileData.user_name; v3._createdDate = fileData.created; v3._modifiedDate = fileData.last_update; v3._views = fileData.views; if (fileData.thumb && fileData.thumb != '') { v3._iconLoader.__set__url(com.newgrounds.SaveFile._imageFilePath + fileData.thumb); } v3._dataURL = com.newgrounds.SaveFile._saveFilePath + fileData.file; v3._fileSize = fileData.file_size; v3._approved = fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED; v3._readOnly = false; v3._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 v4 = group.getKeyById(v6.id); if (v4) { v3._keys[v4.__get__name()] = v4.validateValue(v6.value); } } for (var v9 in fileData.ratings) { var v5 = fileData.ratings[v9]; var v2 = group.getRatingById(v5.id); if (v2) { v3._ratings[v2.__get__name()] = v2.validateValue(v5.score); v3._numVotes[v2.__get__name()] = int(v5.votes); } } return v3; }; 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__numVotes = function () { return this._numVotes; }; 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 v7; var v6; var v10 = 0; var v8 = 0; if (source instanceof flash.display.BitmapData) { v7 = source.width; v6 = source.height; } else { if (source instanceof MovieClip) { var v2 = (MovieClip(source)).getBounds(source); v7 = v2.xMax - v2.xMin; v6 = v2.yMax - v2.yMin; v10 = v2.xMin; v8 = v2.yMin; } } var v4 = new flash.geom.Matrix(); var v5; v5 = Math.min(com.newgrounds.SaveFile.ICON_WIDTH / v7, com.newgrounds.SaveFile.ICON_HEIGHT / v6); v4.translate(-v10, -v8); v4.scale(v5, v5); v4.translate((com.newgrounds.SaveFile.ICON_WIDTH - v7 * v5) / 2, (com.newgrounds.SaveFile.ICON_HEIGHT - v6 * v5) / 2); v9.draw(source, v4); 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.deleteFile = function () { if (!(this._group.__get__connection()).__get__hasUserSession()) { com.newgrounds.Logger.logError('The user must be logged-in to delete a file.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_DELETED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN)); return undefined; } if (!this._id) { com.newgrounds.Logger.logError('The file does not exist.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_DELETED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN)); return undefined; } var v2 = new com.newgrounds.APICommand('deleteSaveFile'); (v2.__get__secureParameters()).save_id = this._id; v2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {'target': this, 'func': this.onFileDeleted}); (this._group.__get__connection()).sendCommand(v2); }; 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 + '&random=' + Math.random()); }; 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.onFileDeleted = function (event) { if (event.__get__success()) { this._id = 0; } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_DELETED, this, event.__get__error())); }; 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]; } for (v2 in this._numVotes) { v3._numVotes[v2] = this._numVotes[v2]; } v3._name = this._name; return v3; }; v1.ICON_WIDTH = 90; v1.ICON_HEIGHT = 90; v1.DEFAULT_ICON = new flash.display.BitmapData(com.newgrounds.SaveFile.ICON_WIDTH, com.newgrounds.SaveFile.ICON_HEIGHT, false, 0); 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('numVotes', v2.__get__numVotes, function () {}); 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 61 __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 59 __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) && int(value) != 0; 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 60 __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 55 __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 64 __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 v4 = this._group.getKey(field); if (v4) { value = v4.validateValue(value); this._keyConditions.push({'key_id': v4.__get__id(), 'operator': operator, 'value': value}); return undefined; } var v3 = field.split('.'); var v6 = this._group.getRating(v3[0]); if (v6) { if (v3[1] != 'votes') { value = v6.validateValue(value); } this._ratingConditions.push({'rating_id': v6.__get__id(), 'operator': operator, 'value': value, 'column': 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.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 56 __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 58 __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 47 __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 66 __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.gotoAndStop('idle'); 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) { 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.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 41 __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 49 __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 52 __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 53 __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 57 __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 { } frame 2 { _root.descPortalJob = new Array('[RANK1 DESC]', 'Scouting the city for flashes of \'questionable quality\' is a low-risk gig but the pay is as equally low.', 'Keeping a steady eye on the portal is a lazy job, but at least you get paid for it.', 'Keep the steets clean of crap with your new fancy uniform and a standard issue BLAM stick.', 'From the steets, to a desk. As a captain, it\'s your job to keep your men in line and organized.', 'Tired of being behind the scenes, it\'s time to get dirty and put matters into your own hands.', 'Your passion has been noticed by the NG Army and you decide to bring your skills to the battlefield.', 'With a battalion of trained fighters under you, it\'ll be tough to lead them to victory.', 'Respected and adored, you now have the entire army in the palm of your hands.', 'All your heroic deeds in the name of Tom Fulp has been fully recognized for all eternity.'); _root.descBBSJob = new Array('[RANK1 DESC]', 'Picking up a mop is the first step towards a successful NG Career.', 'Drop the broom for a wrench. Nothing works properly without you around.', 'Leave the overalls home and bring a tie. Get ready to bring everyone their morning coffee.', 'Stand up for your own opinions instead of others. You have a voice now!', 'Get your facts straight. Fight for the right causes with the power of research.', 'You\'re the one that makes the final call now. Listen carefully and make the right decisions.', 'Bring down judgement on those who break the rules, but use your powers responsibly.', 'Respected and adored, you run the show. Maintain the peace, everyone\'s counting on you.', 'Even the great Fulp has recoginized your contributions to the community and has put all his faith in you.'); _root.descAdventure = new Array(['You break boulders with your fist!', 'You do some rock climbing!', 'You fight a bear!'], ['You do some waterfall meditation!', 'You study an elder scroll!', 'You count some sheep!'], ['You meet a mermaid!', 'You do some hardcore yodeling!', 'You find some abandoned beer!'], ['You break your leg!', 'You break your arm!', 'You break a rib!'], ['You bang your head on a rock!', 'You get lost in the forest!', 'You forget your way back!'], ['You got skunked!', 'You fall and lose a tooth!', 'You get scared and scream like a girl!']); _root.dateTalkTopics = new Array(['TALK ABOUT SEX', 'SHARE FANTASIES', 'SQUEEZE BUTT'], ['BRAG ABOUT SELF', 'FLEX MUSCLES', 'BRAG ABOUT JOB'], ['TALK ABOUT MUSIC', 'RECITE POETRY', 'TALK ABOUT ART'], ['TALK ABOUT WORK', 'TALK ABOUT SCHOOL', 'TALK ABOUT POLITICS'], ['TELL A JOKE', 'TELL A DIRTY JOKE', 'SHARE A DRINK'], ['COMPLIMENT', 'SMILE SILENTLY', 'TALK ABOUT DREAMS']); _root.dateBoldTopics = new Array('SLAP ASS', 'SEDUCE', 'SERENADE', 'FLAUNT INTELLIGENCE', 'PRANK', 'HOLD HAND'); _root.diaAllieTalk = new Array(['... I\'m sorry... If I\'m in your way...', '... Please kindly... leave me be...', '... *Tries to ignore you*...'], ['Oh... hello again!', 'It\'s nice to see you again!', 'Would you like to join me in some crafts?'], ['Oh... hello again!', 'It\'s nice to see you again!', 'Would you like to join me in some crafts?'], ['Watching you gives me a lot of inspiration! ... Sorry if that\'s weird...', 'I never feel lonely when you\'re around...', 'I\'m glad I got to see you today...'], ['Watching you gives me a lot of inspiration! ... Sorry if that\'s weird...', 'I never feel lonely when you\'re around...', 'I\'m glad I got to see you today...'], ['Watching you gives me a lot of inspiration! ... Sorry if that\'s weird...', 'I never feel lonely when you\'re around...', 'I\'m glad I got to see you today...'], ['Watching you gives me a lot of inspiration! ... Sorry if that\'s weird...', 'I never feel lonely when you\'re around...', 'I\'m glad I got to see you today...']); _root.diaAllieGive = new Array('... *Ignores you uncomfortably*...', '... That\'s so nice of you! Thank you!', '... That\'s so nice of you! Thank you!', '... That\'s so nice of you! Thank you!', '... That\'s so nice of you! Thank you!', '... That\'s so nice of you! Thank you!', '... That\'s so nice of you! Thank you!'); _root.diaAllieDate = new Array('... Please leave me alone...', '... Maybe some other time... Sorry...', '... Maybe some other time... Sorry...', '... I\'d love to...', '... That sounds stellar!', '... That sounds stellar!', '... That sounds stellar!'); _root.diaAllieUp = new Array('... Are you an artist too...? \n\n(Press \'TALK\' again to \nproperly introduce yourself)', '', '... It\'s so nice to see you here so often... \n\n(Press \'TALK\' again to ask if she\'s \ninterested in going out sometime)'); _root.diaAllieFacts = new Array('It\'s embarrassing but... I\'m about 56... \n...centuries old...', 'I love Earth art! I especially like Van Gogh. His art is so swirly.', 'Of all of Earth\'s amazing food, I loved nothing more than Taro Bubble Tea.', 'I love Muse. They remind me of home!', 'I work at the Space Jam Amusement Park as a mascot. This is my costume actually...', 'When I\'m not trying to fix my ship, I like to garden at the park...', 'I just want to be with someone creative... spending afternoons making crafts...'); _root.diaAllieAsk = new Array('How old are you?', 'Favorite artist?', 'Favorite food?', 'Favorte music band?', 'Do you have a job?', 'Do you have a favorite pastime?', 'What kind of guys are you into?'); _root.diaAllieDateQuestion = new Array('... I know it\'s weird but do you know how old I am...?', 'Do you remember which Earth painter inspires me the most?', 'I\'m a little hungry right now... What kind of bubble tea should I have?', 'I heard my favorite band on the radiowaves last night! Do you know them?', 'I hope my work doesn\'t fire me for being gone for so long... Do you know what I do?', 'Do you know what I like to do to relax...?', 'Do you know what kind of people I like being around...?'); _root.diaAllieDateAnswers = new Array(['5600 Years Old', '8 Years Old', '24 Years Old', '52 Years Old'], ['Van Gogh', 'Picasso', 'Monet', 'Warhol'], ['Taro', 'Chocolate', 'Watermelon', 'Orange'], ['Muse', 'Foo Fighters', 'FLOW', 'Green Day'], ['Mascot', 'Waitress', 'Scientist', 'Mechanic'], ['Garden', 'Play Videogames', 'Take naps', 'Exercise'], ['Creative', 'Energetic', 'Funny', 'Easy-Going']); _root.diaBreeTalk = new Array(['... Nyyaa?', 'Ehhhhh...?', 'Who you...?'], ['Ello!', 'Hiya!', 'Ohh, wanna play a game?!'], ['Ello!', 'Hiya!', 'Ohh, wanna play a game?!'], ['C\'mon, play a game with me? Pleeasse?', 'Whheeee! You\'re finally back!', 'What chu wanna do today?!'], ['C\'mon, play a game with me? Pleeasse?', 'Whheeee! You\'re finally back!', 'What chu wanna do today?!'], ['C\'mon, play a game with me? Pleeasse?', 'Whheeee! You\'re finally back!', 'What chu wanna do today?!'], ['C\'mon, play a game with me? Pleeasse?', 'Whheeee! You\'re finally back!', 'What chu wanna do today?!']); _root.diaBreeGive = new Array('Nya...? *ignores you*...', 'Oooh! Can I eat this?', 'Oooh! Can I eat this?', 'Oooh! Can I eat this?', 'Oooh! Can I eat this?', 'Oooh! Can I eat this?', 'Oooh! Can I eat this?'); _root.diaBreeDate = new Array('... Boring...', 'Date? Do I eat that?', 'Date? Do I eat that?', 'Ohhh fun?!', 'Date! Date!', 'Date! Date!', 'Date! Date!'); _root.diaBreeUp = new Array('Nya, you look fun! \n\n(Press \'TALK\' again to \nproperly introduce yourself)', '', 'Wanna go do somethin\'? Nya? \n\n(Press \'TALK\' again to ask if she\'s \ninterested in going out sometime)'); _root.diaBreeFacts = new Array('Nmmm? I think... 18? I don\'t remember!', 'Nya? Job? What is that?', 'Pink! No... Green! ... ummmmm... Pinkish Green!', 'Mushrooms! The ones in the forest are nom nom!', 'The one where you throw a plate! ... Fizzbee? FUZZBEY? Whatever that is!', 'Bears! I love sleeping on them...', 'Nmmmmm... I like funny people. They\'re fun!'); _root.diaBreeAsk = new Array('How old are you?', 'What kind of job do you have?', 'Favorite color?', 'Favorte food?', 'Favorite game?', 'Favorite animal?', 'What kind of guys are you into?'); _root.diaBreeDateQuestion = new Array('My birthday is soon! I think... Do you know how old I am?', 'Someone asked me if I have a job... Do I have one, nya?', 'Ohhh! I saw a butterfly that was my favorite color! Remember what that is?!', 'My tummy\'s grumbly! If we go get food, what would you get me?!', 'Wanna play a game? Let\'s play my favorite one!', 'I want a pet... Do you know what animal I want?!', 'What kinda people do I like?!'); _root.diaBreeDateAnswers = new Array(['18 Years Old', '5 Years Old', '22 Years Old', '19 Years Old'], ['Unemployed', 'Zoo Keeper', 'Park Guide', 'Gardener'], ['Pinkish Green', 'Minty Blue', 'Maroon', 'Poop Brown'], ['Mushrooms', 'Cat Food', 'Meat', 'Oranges'], ['Frisbee', 'Basketball', 'Freeze Tag', 'Volleyball'], ['A Bear', 'A Penguin', 'A Llama', 'A Dragon'], ['Funny', 'Energetic', 'Caring', 'Exciting']); _root.diaTrishTalk = new Array(['... I\'m sorry but, can you give me some space?', '... I\'m busy', '... What do you want...?'], ['Oh... hey.', 'I see, you\'re back.', 'Do you need something?'], ['Oh... hey.', 'I see, you\'re back.', 'Do you need something?'], ['Oh hey, what are you up to?', 'Good to see you...', 'Nice to see you again.'], ['Oh hey, what are you up to?', 'Good to see you...', 'Nice to see you again.'], ['Oh hey, what are you up to?', 'Good to see you...', 'Nice to see you again.'], ['Oh hey, what are you up to?', 'Good to see you...', 'Nice to see you again.']); _root.diaTrishGive = new Array('... I don\'t need your trash...', '... Ohh heh... Thanks.', '... Ohh heh... Thanks.', '... Ohh heh... Thanks.', '... Ohh heh... Thanks.', '... Ohh heh... Thanks.', '... Ohh heh... Thanks.'); _root.diaTrishDate = new Array('... Not interested...', 'Ohh... Sorry I\'m busy right now. Maybe next time.', 'Ohh... Sorry I\'m busy right now. Maybe next time.', 'Sure, let\'s go.', 'Sounds fun... :)', 'Sounds fun... :)', 'Sounds fun... :)'); _root.diaTrishUp = new Array('You like hanging around here, huh? \n\n(Press \'TALK\' again to \nproperly introduce yourself)', '', 'Hey! Wanna hang out for a while? \n\n(Press \'TALK\' again to ask if she\'s \ninterested in going out sometime)'); _root.diaTrishFacts = new Array('If you really need to know, I just turned 23.', 'I\'ve been to 8 countries. Mostly on duty though.', 'I climbed Mt. Fuji once! The view from the top was awesome.', 'I love greek food. I usually get extra tzatziki sauce. So good!', 'People say I\'m an activist. But all I really care about is making this a better place.', 'When I get the chance, there\'s nothing more fun than travelling the world!', 'I need to be around someone I respect... Someone who is diligent and serious.'); _root.diaTrishAsk = new Array('How old are you?', 'Have you ever travelled?', 'Fondest memory?', 'Favorite food?', 'Do you have a job?', 'Do you have a favorite pastime?', 'What kind of guys are you into?'); _root.diaTrishDateQuestion = new Array('I feel old... Remember how old I am?', 'I need a vacation, you know how many countries I\'ve been to?', 'Do you remember what mountain I\'ve climbed?', 'I missed lunched today because of duty... Know what kinda food I want?', 'This week\'s been really busy for me... You know what I do, right?', 'I\'m a little stressed out... Do you know what I want to do right now?', 'Some people really piss me off... but do you know what kind of people I respect?'); _root.diaTrishDateAnswers = new Array(['23 Years Old', '21 Years Old', '30 Years Old', '25 Years Old'], ['8', '5', '3', '4'], ['Mt. Fuji', 'Mt. Everest', 'Mt. Fulp', 'The Alps'], ['Greek', 'Chinese', 'Fast Food', 'Italian'], ['Activist', 'Waitress', 'Pilot', 'Taxi Driver'], ['Travel', 'Watch Movies', 'Read a Book', 'Hiking'], ['Diligent', 'Smart', 'Handsome', 'Forgiving']); _root.diaDonnaTalk = new Array(['I\'m trying to workout here...', 'Get lost...', 'You\'re in my way...'], ['Heya!', 'What\'s up?', 'Here for some training?'], ['Heya!', 'What\'s up?', 'Here for some training?'], ['Hey! Let\'s go pump some iron!', 'Wanna go mess shit up? I\'m down.', 'Yo! What\'s up!'], ['Hey! Let\'s go pump some iron!', 'Wanna go mess shit up? I\'m down.', 'Yo! What\'s up!'], ['Hey! Let\'s go pump some iron!', 'Wanna go mess shit up? I\'m down.', 'Yo! What\'s up!'], ['Hey! Let\'s go pump some iron!', 'Wanna go mess shit up? I\'m down.', 'Yo! What\'s up!']); _root.diaDonnaGive = new Array('What is this shit...?', 'Thanks! I owe ya one!', 'Thanks! I owe ya one!', 'Thanks! I owe ya one!', 'Thanks! I owe ya one!', 'Thanks! I owe ya one!', 'Thanks! I owe ya one!'); _root.diaDonnaDate = new Array('... Fuck off...', 'A date? I don\'t think you can handle me.', 'A date? I don\'t think you can handle me.', 'Yeah! Let\'s do it.', 'I\'m down!', 'I\'m down!', 'I\'m down!'); _root.diaDonnaUp = new Array('You hang around here a lot, don\'t ya? \n\n(Press \'TALK\' again to \nproperly introduce yourself)', '', 'Yo! It\'s good to see you here a lot! \n\n(Press \'TALK\' again to ask if she\'s \ninterested in going out sometime)'); _root.diaDonnaFacts = new Array('Just turned legal! I\'m 21!', 'Waitress... Big fucking surprise right...?', 'MMA of course! I love watching the shit being beaten out of someone.', 'Are you kidding me? Bugles are the fucking shit.', 'What do you think? I work out here everyday!', 'Gordon Ramsey\'s like my all time hero. He doesn\'t take any shit at all.', 'A guy\'s gotta have confidence you know? A set of balls.'); _root.diaDonnaAsk = new Array('How old are you?', 'Do you have a job?', 'Favorite sport?', 'Favorite food?', 'Do you have a favorite pastime?', 'Favorite famous person?', 'What kind of guys are you into?'); _root.diaDonnaDateQuestion = new Array('You know how old I am now?', 'I hate it but... Ya know where I work?', 'Remember what kinda sport I\'m into?', 'Fuck I\'m hungry... You got any of my favorite snack?', 'I wanna relax... Know what I like to do on my off time?', 'Speaking of awesome people... Remember who my hero is?', 'You know what every guy should be like...?'); _root.diaDonnaDateAnswers = new Array(['21 Years Old', '24 Years Old', '19 Years Old', '31 Years Old'], ['Waitress', 'Cashier', 'Construction', 'Assassin'], ['MMA', 'Rugby', 'Curling', 'Baseball'], ['Bugles', 'Doritos', 'Donuts', 'Cheesecake'], ['Work-Out', 'Swim', 'Play Piano', 'Street Racing'], ['Gordon Ramsey', 'Batman', 'Walt Disney', 'Stamper'], ['Confident', 'Strong', 'Scarred Up', 'Dumb']); _root.diaNeneTalk = new Array(['Hmph... *ignores you*', 'I have no time for you...', 'What do you want...?'], ['Oh... Hello', 'Are you looking for something or what?', 'Make it quick, I don\'t have all day.'], ['Oh... Hello', 'Are you looking for something or what?', 'Make it quick, I don\'t have all day.'], ['Well well, you\'re back.', 'I knew I\'d see you again today.', 'Miss me?'], ['Well well, you\'re back.', 'I knew I\'d see you again today.', 'Miss me?'], ['Well well, you\'re back.', 'I knew I\'d see you again today.', 'Miss me?'], ['Well well, you\'re back.', 'I knew I\'d see you again today.', 'Miss me?']); _root.diaNeneGive = new Array('This is not worth my time.', '... Am I supposed to be impressed?', '... Am I supposed to be impressed?', '... Am I supposed to be impressed?', '... Am I supposed to be impressed?', '... Am I supposed to be impressed?', '... Am I supposed to be impressed?'); _root.diaNeneDate = new Array('Kindly fuck off please.', 'Hmph... You think you\'re worth my time?', 'Hmph... You think you\'re worth my time?', 'Alright, I\'ll give you a chance.', 'C\'mon, what are you waiting for.', 'C\'mon, what are you waiting for.', 'C\'mon, what are you waiting for.'); _root.diaNeneUp = new Array('Hey, wanna buy me a drink? \n\n(Press \'TALK\' again to \nproperly introduce yourself)', '', 'Maybe I wouldn\'t mind doing some drinking at your place. \n\n(Press \'TALK\' again to ask if she\'s \ninterested in going out sometime)'); _root.diaNeneFacts = new Array('No one here knows but I\'m only 20.', 'I\'m a Capricorn, got it?', 'I love Instantious. They sound fake but they\'re the real deal.', 'I love Potatoe Pie even if it makes me fat!', 'I\'m very picky with where I shop. I find that M Bottlers is the best.', 'I exclusively buy Dremio. They use only the finest fibers of Tibet.', 'Men need to be bold and have the audacity to take risks.'); _root.diaNeneAsk = new Array('How old are you?', 'Zodiac sign?', 'Favorite band?', 'Favorite food?', 'Favotire place to shop?', 'Favorite clothing brand?', 'What kind of guys are you into?'); _root.diaNeneDateQuestion = new Array('Do you know how old I really am?', 'My birthday\'s soon... Know what my zodiac sign is?', 'My favorite band\'s in town this weekend, do you know them?', 'I really want some dessert... Do you know what I probably want?', 'I need to do some shopping tonight... Know where I usually go?', 'You like this top? It\'s from my favorite brand... You know what it is, right?', 'What kinda guys do you think I\'m into?'); _root.diaNeneDateAnswers = new Array(['20 Years Old', '19 Years Old', '17 Years Old', '23 Years Old'], ['Capricorn', 'Leo', 'Virgo', 'Cancer'], ['Instantious', 'Sex Bob-omb', 'Spinal Tap', 'Max Rebo'], ['Potatoe Pie', 'Tiramisu', 'Jello', 'Cream Puffs'], ['M Bottlers', 'Winners', 'Forever Young', 'The Bay'], ['Dremio', 'Harajuku', 'Tigre Punks', 'Pavo Real'], ['Bold', 'Sexy', 'Weird', 'Foreign']); _root.diaHunniTalk = new Array(['.......', '.... Sumimasen...', 'Shillehages sumnida...'], ['Oh... Konnichiwa!', 'Annyeong-Hasimnikka...!', '... H-hello!'], ['Oh... Konnichiwa!', 'Annyeong-Hasimnikka...!', '... H-hello!'], ['...H-How are you...?', 'Annyeonghaseyo!', 'O genki desu ka?'], ['...H-How are you...?', 'Annyeonghaseyo!', 'O genki desu ka?'], ['...H-How are you...?', 'Annyeonghaseyo!', 'O genki desu ka?'], ['...H-How are you...?', 'Annyeonghaseyo!', 'O genki desu ka?']); _root.diaHunniGive = new Array('Gomenasai...', '... Kamsahamnida!', '... Kamsahamnida!', '... Kamsahamnida!', '... Kamsahamnida!', '... Kamsahamnida!', '... Kamsahamnida!'); _root.diaHunniDate = new Array('...... *no response*', '... D-Dato...?', '... D-Dato...?', '... O-Okay!', 'Araso, ikimasu yo!', 'Araso, ikimasu yo!', 'Araso, ikimasu yo!'); _root.diaHunniUp = new Array('Sungham ee onamae wa desu ka? \n\n(Press \'TALK\' again to \nproperly introduce yourself)', '', 'H-how are you doing...? \n\n(Press \'TALK\' again to ask if she\'s \ninterested in going out sometime)'); _root.diaHunniFacts = new Array('... Ni ju... U-um... 20?', 'I play... game. Streamingu... on Twitch!', 'Ahnn... I...like... Pho!', 'I... Only school. Student all time.', 'C-card game... Hearthstone!', 'I wish to go back... Disneyland. Very cool!', '... Kind... S-sensitive man?'); _root.diaHunniAsk = new Array('How old are you?', 'Do you have a hobby?', 'Favorite food?', 'Do you have a job?', 'Favorite videogame?', 'Favorite place to vacation?', 'What kind of guys are you into?'); _root.diaHunniDateQuestion = new Array('M-my... Age?', 'D-do you... like... my hobby?', 'Onaka suita... My... favorite food?', 'D-do... you know... what I do?', 'You... play video gamu too? I really... like gamu...', 'I... want to go... place. You like... vacation?', 'Man... nice to have...! Hehe...'); _root.diaHunniDateAnswers = new Array(['20 Years Old', '19 Years Old', '17 Years Old', '23 Years Old'], ['Streaming Games', 'Cosplaying', 'Cooking', 'Parkour'], ['Pho', 'Dim Sum', 'Siopao', 'Chow mein'], ['Full-Time Student', 'Dancer', 'Librarian', 'Secretary'], ['Hearthstone', 'Starcraft 2', 'League of Legends', 'DotA'], ['Disneyland', 'Hawaii', 'Tokyo', 'Rome'], ['Sensitive', 'Expressive', 'Good Cook', 'Smart']); _root.diaGroupDateGiftRefuse = new Array('It\'s alright... I don\'t need anymore.', 'Man... It\'s too much already!', 'No more please!', 'Ummm... I can\'t take anymore, but thank you...', 'I don\'t need any more of your junk...', 'Gomen... no more... jeh-bahl.'); _root.diaGroupDateTalkSuccess = new Array('Yeah, I see.', 'Yeah, totally!', 'Ohh right right!', 'Ohhh... I see!', 'Right right...', 'Ohh... so desu ne.'); _root.diaGroupDateTalkRefuse = new Array('Can we do something else? This is a waste of time...', 'Man... This shit\'s getting old...', 'This is getting boring...', 'Ummm... can we do something else please...?', 'Can you please stop talking? You\'re annoying me now...', '..... *looks bored*...'); _root.diaGroupDateQuestionRefuse = new Array('Really...?', 'Seriously?', 'Ehhh...?!', 'Ohhh... okay nevermind...', 'Are you for real right now?', '... Wae yo?'); _root.diaGroupDateQuestionResults = new Array(['Yeah! That\'s right.', 'Have you been listening...?'], ['Haha totally!', 'Are you kidding me?'], ['Yup! You got it!', 'Nya?! That\'s not right...'], ['Yes! You remembered!', 'No... I don\'t think that\'s right...'], ['Yeah, you better remember that.', 'How could you forget that...'], ['Hai!', 'Aniyo...']); _root.diaGroupDateKiss = new Array(['I really enjoyed tonight...'], ['We need to do this shit more often!'], ['This so fun! Nya!'], ['Mmmmmm... Spending time with you is so fun...'], ['Well well... I guess I underestimated you...'], ['..... <3']); _root.diaGroupDateMoveResponseHum = new Array('That\'s hilarious.', 'Hahaha...', 'Ah haha!', 'Oh hehe...', '.... Really?', 'Hehe...'); _root.diaGroupDateMoveResponseSen = new Array('You feeling alright?', 'What\'s wrong with you?', 'Nya? You okay?', 'Oh it\'s okay... don\'t worry about it...', 'Get your shit together...', '... Daijoubu?'); _root.diaGroupDateMoveResponseAud = new Array('.... Wow.', '.... Haha geez...', '... N-Nya...', 'O-ohhh my...', 'Oh baby...', '... Eyahh..~'); _root.diaGroupDateIntro = new Array('So... What do you want to do?', 'Alright, what you down for?', 'Are we gonna do something, or what?', 'Ummm... So what would you like to do?', 'So we\'re here. Now what?', '... H-hai?'); } frame 2 { function funcUpdateTime(addTime) { _root.statsTime += addTime; if (_root.statsTime >= 6) { _root.statsTime = 3; funcAddDay(); } else { if (_root.statsTime == 5) { _root.statsTime = 2; funcAddDay(); } else { if (_root.statsTime == 4) { _root.statsTime = 1; funcAddDay(); } } } _root.guiMain.guiTimeOfDay.anim.gotoAndStop(_root.statsTime); _root.guiMain.guiTimeOfDay.gotoAndPlay(2); _root.guiMain.guiTODBack.gotoAndPlay(2); } function funcAddDay() { ++_root.statsDay; if (_root.statsWeekday == 'MON') { _root.statsWeekday = 'TUE'; } else { if (_root.statsWeekday == 'TUE') { _root.statsWeekday = 'WED'; } else { if (_root.statsWeekday == 'WED') { _root.statsWeekday = 'THU'; } else { if (_root.statsWeekday == 'THU') { _root.statsWeekday = 'FRI'; } else { if (_root.statsWeekday == 'FRI') { _root.statsWeekday = 'SAT'; } else { if (_root.statsWeekday == 'SAT') { _root.statsWeekday = 'SUN'; } else { if (_root.statsWeekday == 'SUN') { _root.statsWeekday = 'MON'; } } } } } } } } function funcDisRelationUpdate() { _root.disRelationship = _root.listGirlRelationships[_root.statsGirlRLevel[_root.varChosenGirl]]; } function funcDisMoneyUpdate() { _root.disMoney = '$' + _root.statsMoney; } function funcRandom(min, max) { var v1 = int(Math.random() * (max - min + 1) + min); return v1; } function funcTip(stat) { var v1 = stat; if (stat <= 0) { ++v1; } return Math.round(v1 / 2); } function funcPortalJobWage() { var v2 = int((_root.statsBrains / 2 + _root.statsBalls / 2) / 2); _root.varTip = _root.funcRandom(1, _root.listWagePortal[_root.statsPortalRank][1]); v2 += _root.listWagePortal[_root.statsPortalRank][0] + _root.varTip; return v2; } function funcBBSJobWage() { var v2 = int((_root.statsBrains / 2 + _root.statsCharm / 2) / 2); _root.varTip = _root.funcRandom(1, _root.listWageBBS[_root.statsBBSRank][1]); v2 += _root.listWageBBS[_root.statsBBSRank][0] + _root.varTip; return v2; } function funcPortalPromotionCalculate() { var v4 = _root.statsBrains + _root.statsBalls; var v2 = ((v4 - _root.listPromoReqPortal[_root.statsPortalRank]) / (_root.listPromoReqPortal[_root.statsPortalRank + 1] - _root.listPromoReqPortal[_root.statsPortalRank])) * 100; var v3 = int(Math.random() * 100 + 1); if (v2 >= v3) { _root.varIsPromoted = true; ++_root.statsPortalRank; } else { _root.varIsPromoted = false; } } function funcBBSPromotionCalculate() { var v4 = _root.statsBrains + _root.statsCharm; var v2 = ((v4 - _root.listPromoReqBBS[_root.statsBBSRank]) / (_root.listPromoReqBBS[_root.statsBBSRank + 1] - _root.listPromoReqBBS[_root.statsBBSRank])) * 100; var v3 = int(Math.random() * 100 + 1); if (v2 >= v3) { _root.varIsPromoted = true; ++_root.statsBBSRank; } else { _root.varIsPromoted = false; } } function funcArtQualityCalculate() { var v2 = funcRandom(0, _root.statsCre); if (v2 >= 135) { _root.statArtQuality = 4; } else { if (v2 >= 80) { _root.statArtQuality = 3; } else { if (v2 >= 50) { _root.statArtQuality = 2; } else { if (v2 >= 15) { _root.statArtQuality = 1; } else { _root.statArtQuality = 0; } } } } } function funcFlashCompleteCalculate() { if (_root.statsFlash >= 150) { return funcRandom(20, 30); } else { if (_root.statsFlash >= 100) { return funcRandom(15, 25); } else { if (_root.statsFlash >= 50) { return funcRandom(10, 20); } else { return funcRandom(10, 15); } } } } function funcFlashQualityCalculate() { var v2 = funcRandom(0, _root.statsFlash); if (v2 >= 175) { _root.statsFlashQuality = 4; } else { if (v2 >= 130) { _root.statsFlashQuality = 3; } else { if (v2 >= 55) { _root.statsFlashQuality = 2; } else { if (v2 >= 15) { _root.statsFlashQuality = 1; } else { _root.statsFlashQuality = 0; } } } } } function funcCompleteTask(task, taskdone) { var v2 = 0; while (v2 < _root.statsGirlTasks.length) { if (_root.statsGirlTasks[v2] == task) { _root.statsGirlTasks.splice(v2, 1); _root.statsGirlTasks.push(taskdone); break; } ++v2; } } _root.frictionWorld = 5; _root.frictionLocation = 45; _root.frictionCharacter = 100; _root.frictionGirl = 250; _root.statsMax = 300; _root.statsPerMax = 160; _root.statsFlashMax = 200; _root.statsPerUpMax = 10; _root.girlRPAddTalk = 10; _root.girlCharmFriction = 10; _root.statsGirlGiftLevels = new Array(10, 15, 25); _root.statsTime = 1; _root.statsDay = 1; _root.statsWeekday = 'MON'; _root.statsMoney = 150; _root.statsBalls = 1; _root.statsBrains = 1; _root.statsCharm = 1; _root.statsFlash = 10; _root.statsGrade = 0; _root.statsPortalRank = 0; _root.statsBBSRank = 0; _root.statsAud = 10; _root.statsCon = 10; _root.statsCre = 10; _root.statsDil = 10; _root.statsHum = 10; _root.statsSen = 10; _root.statsInventoryKey = new Array(); _root.statsInventoryGifts = new Array(0, 0, 0, 0, 0, 0); _root.statsArtComplete = 0; _root.statsArtPogress = 0; _root.statsArtValue = 0; _root.statArtProject = ''; _root.statArtQuality = 0; _root.statsFlashComplete = 0; _root.statsFlashProgress = 0; _root.statsFlashValue = 0; _root.statsFlashProject = ''; _root.statsFlashType = 0; _root.statsFlashQuality = 0; _root.statsGirlRLevel = new Array(0, 0, 0, 0, 0, 0); _root.statsGirlHeartLevel = new Array([0, 65], [0, 65], [0, 65], [0, 65], [0, 65], [0, 65]); _root.statsGirlLevel2RPReq = 200; _root.statsGirlTaskLevel = new Array(0, 0, 0, 0, 0, 0); _root.statsGirlTaskActive = new Array([], [], [], [], [], []); _root.statsGirlTasks = new Array(); _root.statsGirlTexts = new Array(); _root.statsGirlPhotos = new Array(); _root.statsAlertTask = false; _root.statsAlertText = false; _root.statsFlashMadeHum = 0; _root.statsFlashMadeDil = 0; _root.statsArtMade = 0; _root.statsArtMasterpieces = 0; _root.taskBreeFoundVillage = false; _root.disMoney = '$' + _root.statsMoney; _root.guiActionDesc = ''; _root.diaName = ''; _root.diaDialog = ''; _root.disRelationship = ''; _root.varIsNap = true; _root.varIsTestPass = true; _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPay = 0; _root.varTip = 0; _root.varPayMax = 0; _root.varIsOvertime = false; _root.varStatGain = ''; _root.varIsPromoted = false; _root.varPerUp = ''; _root.varPerUpValue = 0; _root.varItemName = ''; _root.varItemDesc = ''; _root.varDisArtCost = 0; _root.varDisReqCre = 0; _root.varAdventureResult = ''; _root.varAdventureStory = ''; _root.varAdventureHeadline = ''; _root.varDateGirlHP = 0; _root.varDateGirlHPMax = 0; _root.varDateGirlLerp = 0; _root.varDatePicoHP = 0; _root.varDatePicoHPMax = 0; _root.varDatePicoLerp = 0; _root.varDateGiftsGiven = 0; _root.varDateTalksGiven = 0; _root.varDateHumMoves = 0; _root.varDateConMoves = 0; _root.varDateDilMoves = 0; _root.varDateSenMoves = 0; _root.varDateAudMoves = 0; _root.varDateCreMoves = 0; _root.varDateKissing = false; _root.varChosenGirl = 0; _root.varGirlTalked = false; _root.varGirlIsUpgrading = false; _root.varGirlIsAsking = false; _root.varChosenText = ''; _root.varChosenPhoto = 0; _root.varDiaryChoice1 = ''; _root.varDiaryChoice2 = ''; _root.varDiaryChoice3 = ''; _root.varDiaryChosenChoice = 0; _root.varDiaryPreviousChoice = 0; _root.varDiaryStatIncrease = ''; _root.varCustomizeXtraPts = 15; _root.specialAllieKeyChance = 45; _root.specialBreeVillageChance = 45; _root.listGrades = new Array('F', 'D-', 'D', 'D+', 'C-', 'C', 'C+', 'B-', 'B', 'B+', 'A-', 'A', 'A+'); _root.listPortalRanks = new Array('Town Watch', 'Scout', 'Portal Security', 'Police Officer', 'Police Captain', 'Vigilante', 'Private', 'Major', 'Supreme Commander', 'Portal Savior'); _root.listBBSRanks = new Array('Lurker', 'Janitor', 'Technician', 'Intern', 'Topic Participant', 'Debater', 'Judge', 'Moderator', 'Admin', 'Fulp\'s Right Hand'); _root.listWagePortal = new Array([5, 2], [10, 4], [20, 6], [40, 12], [60, 20], [100, 30], [140, 45], [180, 60], [240, 80], [500, 100]); _root.listPromoReqPortal = new Array(25, 50, 75, 100, 125, 175, 225, 275, 400, 600); _root.listWageBBS = new Array([5, 2], [10, 4], [20, 6], [40, 12], [60, 20], [100, 30], [140, 45], [180, 60], [240, 80], [500, 100]); _root.listPromoReqBBS = new Array(25, 50, 75, 100, 125, 175, 225, 275, 400, 600); _root.listPromoGradeReqBBS = new Array(0, 1, 2, 3, 4, 6, 8, 10, 12, 12); _root.listArtProjects = new Array(['Sketch', 'Drawing'], ['Painting', 'Photo Collage'], ['Pottery', 'Sculpture'], ['Statue', 'City Mural']); _root.listArtReq = new Array(0, 35, 80, 135, 80); _root.listArtCost = new Array(10, 25, 45, 70, 300); _root.listArtQuality = new Array('Crappy...', 'Average', 'Exceptional', 'Fantastic!', 'A Masterpiece!', 'Cosmic!'); _root.listArtReward = new Array(-15, 0, 25, 55, 100, 0); _root.listFlashProjects = new Array('Epic', 'Series', 'Original', 'Educational', 'Funny', 'Emotional'); _root.listFlashReq = new Array(50, 60, 0, 20, 40, 30); _root.listFlashQuality = new Array('BLAMMED', 'Average', 'Daily Feature', 'Best Monthly!', 'Legendary!'); _root.listFlashReward = new Array(-20, 0, 35, 65, 120); _root.listGirlRelationships = new Array('STRANGERS', 'AQUAINTANCES', 'NEW FRIENDS', 'CLOSE FRIENDS', 'GIRLFRIEND', 'LOVER', 'LOVER'); _root.tuneDateCharmLevelMin = new Array(50, 150, 250); _root.tuneDateItemDamage = new Array(1.5, 3, 6.25); _root.tuneDateTalkTopicDamage = new Array(1.25, 2.5, 5); _root.tuneDateQuestionDamage = 12.5; _root.tuneDateItemCap = new Array(20, 30, 40); _root.tuneDateTalkTopicCap = new Array(10, 20, 30); _root.tuneDateQuestionCap = new Array(50, 60, 100); _root.tuneDateMaxGifts = 2; _root.tuneDateMaxTalk = 5; _root.tuneDateTopicEffect = new Array([0, 1, 0, 2, 0, 1], [1, 2, 0, 0, 1, 0], [1, 0, 1, 0, 2, 0], [0, 0, 2, 1, 0, 1], [2, 1, 1, 0, 0, 0], [0, 0, 0, 1, 1, 2]); _root.tuneDateHumMoves = new Array(20, 70, 120); _root.tuneDateConMoves = new Array(20, 70, 120); _root.tuneDateDilMoves = new Array(20, 70, 120); _root.tuneDateSenMoves = new Array(20, 70, 120); _root.tuneDateCreMoves = new Array(20, 80); _root.tuneDateCreMovesMulti = 1.75; _root.tuneDateAudMoves = new Array(20, 80); _root.tuneDateAudMovesMulti = 2; _root.tuneFlashAbilityUpgrades = new Array(25, 50); _root.tuneDiaryStatIncrease = 6; _root.tuneDiaryPerIncrease = 10; _root.musicCurrentTrack = 99; _root.musicIsOn = true; _root.musicWorldReset = false; _root.musicMenu = new Sound(); _root.musicMenu.attachSound('musicMenu'); _root.musicWorld = new Sound(); _root.musicWorld.attachSound('musicWorld'); _root.musicBattleIntro = new Sound(); _root.musicBattleIntro.attachSound('musicBattleIntro'); _root.musicBattle = new Sound(); _root.musicBattle.attachSound('musicBattle'); _root.musicVictory = new Sound(); _root.musicVictory.attachSound('musicVictory'); _root.musicDiary = new Sound(); _root.musicDiary.attachSound('musicDiary'); _root.musicDiaryIntroIntro = new Sound(); _root.musicDiaryIntroIntro.attachSound('musicDiaryIntroIntro'); _root.musicDiaryIntro = new Sound(); _root.musicDiaryIntro.attachSound('musicDiaryIntro'); _root.soundMenuPlay = new Sound(); _root.soundMenuPlay.attachSound('soundMenuPlay'); _root.soundMenuPlay2 = new Sound(); _root.soundMenuPlay2.attachSound('soundMenuPlay2'); } movieClip 129 { } movieClip 131 { } movieClip 132 { } movieClip 136 { } movieClip 138 { } movieClip 142 { } movieClip 143 { } movieClip 146 { } movieClip 150 { } movieClip 153 { } movieClip 154 { } movieClip 156 { } movieClip 157 { } movieClip 158 { } movieClip 172 { frame 79 { stop(); } } movieClip 173 { frame 188 { _root.nextFrame(); } } button 175 { on (release) { stopAllSounds(); nextFrame(); } } frame 3 { stop(); _root.musicMenu.start(0, 100); } movieClip 180 { } movieClip 181 { } movieClip 183 { } movieClip 187 { } movieClip 190 { } movieClip 191 { frame 50 { gotoAndPlay(1); } frame 84 { gotoAndPlay(1); } frame 140 { stop(); } } movieClip 194 { } button 195 { on (release) { _parent.titlePico.gotoAndPlay('pop'); play(); if (_root.musicIsOn) { _root.soundMenuPlay.start(0.25, 0); } } } movieClip 199 { } movieClip 200 { } // unknown tag 88 length 98 movieClip 210 { frame 7 { stop(); } } button 212 { on (release) { nextFrame(); } } button 220 { on (release) { nextFrame(); } } // unknown tag 88 length 155 movieClip 234 { } movieClip 236 { frame 8 { stop(); } } button 243 { on (release) { _parent._parent.titlePico.gotoAndPlay('popbig'); stopAllSounds(); if (_root.musicIsOn) { _root.soundMenuPlay2.start(0.25, 0); } _root.musicCurrentTrack = 0; _parent._parent.fxDiaryTransition.gotoAndPlay(2); _parent.gotoAndStop(1); } } movieClip 250 { frame 1 { stop(); } } movieClip 251 { frame 20 { stop(); } frame 58 { stop(); } } movieClip 252 { frame 60 { stop(); } } movieClip 254 { } movieClip 255 { frame 1 { stop(); } frame 56 { stop(); _root.nextFrame(); } } movieClip 256 { } movieClip 263 { } button 265 { on (release) { _root.musicIsOn = false; stopAllSounds(); nextFrame(); } } button 268 { on (release) { _root.musicIsOn = true; if (_root.musicCurrentTrack == 99) { _root.musicMenu.start(0, 100); } else { if (_root.musicCurrentTrack == 97) { _root.musicBattle.start(0, 100); } else { if (_root.musicCurrentTrack == 1) { _root.musicWorld.start(0, 100); } else { if (_root.musicCurrentTrack == 95) { _root.musicDiary.start(0, 100); } else { if (_root.musicCurrentTrack == 93) { _root.musicDiaryIntro.start(0, 100); } } } } } prevFrame(); } } movieClip 269 { frame 1 { stop(); } } movieClip 272 { } movieClip 275 { frame 1 { stop(); } } movieClip 278 { } movieClip 281 { } button 282 { on (release) { nextFrame(); } } movieClip 285 { } movieClip 287 { } movieClip 289 { } movieClip 290 { } movieClip 293 { } movieClip 296 { frame 1 { stop(); } } movieClip 305 { } movieClip 307 { } movieClip 311 { } movieClip 314 { } movieClip 318 { } movieClip 320 { } movieClip 322 { } movieClip 325 { } movieClip 329 { } movieClip 331 { } movieClip 334 { } movieClip 338 { } movieClip 342 { } movieClip 345 { } movieClip 351 { } movieClip 354 { } movieClip 356 { } movieClip 359 { } movieClip 364 { } movieClip 366 { } movieClip 368 { } movieClip 374 { } movieClip 377 { } movieClip 380 { } movieClip 384 { } movieClip 388 { } movieClip 391 { } movieClip 395 { } movieClip 399 { } movieClip 402 { } movieClip 404 { } movieClip 408 { } movieClip 411 { } movieClip 415 { } movieClip 418 { } movieClip 422 { } movieClip 425 { } movieClip 429 { } movieClip 430 { frame 33 { _root.musicCurrentTrack = 95; stopAllSounds(); if (_root.musicIsOn) { _root.musicDiary.start(0, 100); } } frame 125 { stop(); } frame 126 { stopAllSounds(); _root.musicCurrentTrack = 93; if (_root.musicIsOn) { _root.musicDiaryIntroIntro.start(0, 0); } } frame 164 { _parent.nextFrame(); } frame 449 { if (_root.musicIsOn) { _root.musicDiaryIntro.start(0, 100); } } frame 885 { _root.nextFrame(); } } button 431 { on (release) { if (_root.diaLength <= 0) { nextFrame(); } if (!_root.diaSkipped) { _root.diaDisplay += _root.dialog.substr(0); _root.disDialog = _root.diaDisplay; _root.diaLength = 0; _root.diaSkipped = true; } } } // unknown tag 88 length 69 movieClip 435 { } movieClip 437 { } button 438 { on (release) { if (!_root.diaSkipped) { _root.diaDisplay += _root.dialog.substr(0); _root.disDialog = _root.diaDisplay; _root.diaLength = 0; _root.diaSkipped = true; } } } button 454 { on (release) { _root.varDiaryChosenChoice = 3; } } button 455 { on (release) { _root.varDiaryChosenChoice = 2; } } button 456 { on (release) { _root.varDiaryChosenChoice = 1; } } movieClip 457 { frame 1 { stop(); } frame 28 { stop(); } } button 461 { on (release) { if (_root.diaLength <= 0 && !diaIntroStart) { _root.musicCurrentTrack = 93; stopAllSounds(); diaryfx.gotoAndPlay('intro'); diaIntroStart = true; } if (!_root.diaSkipped) { _root.diaDisplay += _root.dialog.substr(0); _root.disDialog = _root.diaDisplay; _root.diaLength = 0; _root.diaSkipped = true; } } } movieClip 463 { frame 1 { stop(); } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 435 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.diaLength <= 0) { this._visible = true; } } } instance of movieClip 437 { onClipEvent (load) { _root.disDialog = ''; _root.dialog = 'Dearest Diary, \n\nI\'m so excited! Today, is the first day I start as a Freshman at Newgrounds University. \n\nI\'m finally a man!'; _root.diaLength = _root.dialog.length; _root.diaDisplay = ''; _root.diaSkipped = false; } onClipEvent (enterFrame) { if (_root.diaLength > 0) { _root.diaDisplay += _root.dialog.substr(0, 1); _root.dialog = _root.dialog.substr(1); --_root.diaLength; _root.disDialog = _root.diaDisplay; } } } instance of movieClip 457 { onClipEvent (load) { this.gotoAndStop(1); _root.varDiaryChosenChoice = 0; } onClipEvent (enterFrame) { if (_root.diaLength <= 0 && this._currentframe == 1) { _root.varDiaryChoice1 = '> STUDY MY HEART OUT!'; _root.varDiaryChoice2 = '> PARTY AND GET SHIT DRUNK!'; _root.varDiaryChoice3 = '> FUCK BITCHES!'; this.gotoAndPlay(2); } if (_root.varDiaryChosenChoice != 0) { if (_root.varDiaryChosenChoice == 1) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'BRAINS'; _root.statsBrains += _root.tuneDiaryStatIncrease; } else { if (_root.varDiaryChosenChoice == 2) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'CHARM'; _root.statsCharm += _root.tuneDiaryStatIncrease; } else { if (_root.varDiaryChosenChoice == 3) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'BALLS'; _root.statsBalls += _root.tuneDiaryStatIncrease; } } } _parent.picoshine.gotoAndPlay(2); _root.varDiaryPreviousChoice = _root.varDiaryChosenChoice; _parent.nextFrame(); this.gotoAndStop(1); } } } instance of movieClip 437 { onClipEvent (load) { _root.disDialog = ''; _root.dialog = '\n\nI\'ve made many mistakes in the past, but this time I\'ve got my goals in order. I\'m going to...'; _root.diaLength = _root.dialog.length; _root.diaDisplay = ''; _root.diaSkipped = false; } onClipEvent (enterFrame) { if (_root.diaLength > 0) { _root.diaDisplay += _root.dialog.substr(0, 1); _root.dialog = _root.dialog.substr(1); --_root.diaLength; _root.disDialog = _root.diaDisplay; } } } instance of movieClip 457 { onClipEvent (load) { this.gotoAndStop(1); _root.varDiaryChosenChoice = 0; } onClipEvent (enterFrame) { if (_root.diaLength <= 0 && this._currentframe == 1) { _root.varDiaryChoice1 = '> I BURNED DOWN THE SCHOOL!'; _root.varDiaryChoice2 = '> I MURDERED GOTHS AND NINJAS!'; _root.varDiaryChoice3 = '> I TOOK MY FIRST SHIT!'; this.gotoAndPlay(2); } if (_root.varDiaryChosenChoice != 0) { if (_root.varDiaryChosenChoice == 1) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'CREATIVITY'; _root.statsCre += _root.tuneDiaryPerIncrease; } else { if (_root.varDiaryChosenChoice == 2) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'AUDACITY'; _root.statsAud += _root.tuneDiaryPerIncrease; } else { if (_root.varDiaryChosenChoice == 3) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'HUMOR'; _root.statsHum += _root.tuneDiaryPerIncrease; } } } _parent.picoshine.gotoAndPlay(2); _root.varDiaryPreviousChoice = _root.varDiaryChosenChoice; _parent.nextFrame(); this.gotoAndStop(1); } } } instance of movieClip 437 { onClipEvent (load) { _root.disDialog = ''; if (_root.varDiaryPreviousChoice == 1) { _root.dialog = 'I\'m going to nerd out and hit the books!'; } else { if (_root.varDiaryPreviousChoice == 2) { _root.dialog = 'I\'m going to drink like I\'m Irish!'; } else { if (_root.varDiaryPreviousChoice == 3) { _root.dialog = 'I\'m going to fuck all the pussy I can!'; } } } _root.dialog += '\n\nTimes like these remind me of my fondest childhood memories. I know the one I miss the the most was when...'; _root.diaLength = _root.dialog.length; _root.diaDisplay = ''; _root.diaSkipped = false; } onClipEvent (enterFrame) { if (_root.diaLength > 0) { _root.diaDisplay += _root.dialog.substr(0, 1); _root.dialog = _root.dialog.substr(1); --_root.diaLength; _root.disDialog = _root.diaDisplay; } } } instance of movieClip 457 { onClipEvent (load) { this.gotoAndStop(1); _root.varDiaryChosenChoice = 0; } onClipEvent (enterFrame) { if (_root.diaLength <= 0 && this._currentframe == 1) { _root.varDiaryChoice1 = '> NO ONE FUCKS WITH ME!'; _root.varDiaryChoice2 = '> NEVER PUSSY OUT!'; _root.varDiaryChoice3 = '> PUPPIES ARE PEOPLE TOO!'; this.gotoAndPlay(2); } if (_root.varDiaryChosenChoice != 0) { if (_root.varDiaryChosenChoice == 1) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'CONFIDENCE'; _root.statsCon += _root.tuneDiaryPerIncrease; } else { if (_root.varDiaryChosenChoice == 2) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'DILIGENCE'; _root.statsDil += _root.tuneDiaryPerIncrease; } else { if (_root.varDiaryChosenChoice == 3) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'SENSITIVITY'; _root.statsSen += _root.tuneDiaryPerIncrease; } } } _parent.picoshine.gotoAndPlay(2); _root.varDiaryPreviousChoice = _root.varDiaryChosenChoice; _parent.nextFrame(); this.gotoAndStop(1); } } } instance of movieClip 437 { onClipEvent (load) { _root.disDialog = ''; if (_root.varDiaryPreviousChoice == 1) { _root.dialog = 'I burned down the school! (But not on purpose)'; } else { if (_root.varDiaryPreviousChoice == 2) { _root.dialog = 'I fucked those goths and ninjas up!'; } else { if (_root.varDiaryPreviousChoice == 3) { _root.dialog = 'I took my first shit! Fuck did that one hurt.'; } } } _root.dialog += '\n\nAhhh yes... That was when I learned my most precious life lesson...'; _root.diaLength = _root.dialog.length; _root.diaDisplay = ''; _root.diaSkipped = false; } onClipEvent (enterFrame) { if (_root.diaLength > 0) { _root.diaDisplay += _root.dialog.substr(0, 1); _root.dialog = _root.dialog.substr(1); --_root.diaLength; _root.disDialog = _root.diaDisplay; } } } instance of movieClip 457 { onClipEvent (load) { this.gotoAndStop(1); _root.varDiaryChosenChoice = 0; } onClipEvent (enterFrame) { if (_root.diaLength <= 0 && this._currentframe == 1) { _root.varDiaryChoice1 = '> AWESOME'; _root.varDiaryChoice2 = '> POSSIMPIBLE'; _root.varDiaryChoice3 = '> A CARROT'; this.gotoAndPlay(2); } if (_root.varDiaryChosenChoice != 0) { if (_root.varDiaryChosenChoice == 1) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'BALLS'; _root.statsBalls += _root.tuneDiaryStatIncrease; } else { if (_root.varDiaryChosenChoice == 2) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'BRAINS'; _root.statsBrains += _root.tuneDiaryStatIncrease; } else { if (_root.varDiaryChosenChoice == 3) { _parent.statup.gotoAndPlay(2); _root.varDiaryStatIncrease = 'CHARM'; _root.statsCharm += _root.tuneDiaryStatIncrease; } } } _parent.picoshine.gotoAndPlay(2); _root.varDiaryPreviousChoice = _root.varDiaryChosenChoice; _parent.nextFrame(); this.gotoAndStop(1); } } } instance of movieClip 437 { onClipEvent (load) { _root.disDialog = ''; if (_root.varDiaryPreviousChoice == 1) { _root.dialog = 'No one fucks with me! I\'m fucking king shit.'; } else { if (_root.varDiaryPreviousChoice == 2) { _root.dialog = 'Never pussy out! I\'ll die a man if I have to.'; } else { if (_root.varDiaryPreviousChoice == 3) { _root.dialog = 'Puppies are people too! Seriously, just look at them.'; } } } _root.dialog += '\n\nBut looking at myself now, I\'ve changed so much. I\'d say the one word that I would use to describe myself is...'; _root.diaLength = _root.dialog.length; _root.diaDisplay = ''; _root.diaSkipped = false; } onClipEvent (enterFrame) { if (_root.diaLength > 0) { _root.diaDisplay += _root.dialog.substr(0, 1); _root.dialog = _root.dialog.substr(1); --_root.diaLength; _root.disDialog = _root.diaDisplay; } } } frame 7 { diaIntroStart = false; } instance of movieClip 435 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.diaLength <= 0) { this._visible = true; } } } instance of movieClip 437 { onClipEvent (load) { _root.disDialog = ''; if (_root.varDiaryPreviousChoice == 1) { _root.dialog = '\'AWESOME\', nothing else to it.'; } else { if (_root.varDiaryPreviousChoice == 2) { _root.dialog = '\'POSSIMPIBLE\', nothing is out of my reach.'; } else { if (_root.varDiaryPreviousChoice == 3) { _root.dialog = '\'A CARROT\', seriously, just look at me.'; } } } _root.dialog += '\n\nAnyways, I think it\'s time to start the day! There\'s a whole world out there just ready to be explored! \n\nI wonder who I\'ll meet out there...'; _root.diaLength = _root.dialog.length; _root.diaDisplay = ''; _root.diaSkipped = false; } onClipEvent (enterFrame) { if (_root.diaLength > 0) { _root.diaDisplay += _root.dialog.substr(0, 1); _root.dialog = _root.dialog.substr(1); --_root.diaLength; _root.disDialog = _root.diaDisplay; } } } } button 469 { on (release) { if (_root.statsBalls > 1) { ++_root.varCustomizeXtraPts; --_root.statsBalls; } } } button 470 { on (release) { if (_root.varCustomizeXtraPts >= 1) { --_root.varCustomizeXtraPts; ++_root.statsBalls; } } } button 471 { on (release) { if (_root.statsBrains > 1) { ++_root.varCustomizeXtraPts; --_root.statsBrains; } } } button 472 { on (release) { if (_root.varCustomizeXtraPts >= 1) { --_root.varCustomizeXtraPts; ++_root.statsBrains; } } } button 473 { on (release) { if (_root.statsCharm > 1) { ++_root.varCustomizeXtraPts; --_root.statsCharm; } } } button 474 { on (release) { if (_root.varCustomizeXtraPts >= 1) { --_root.varCustomizeXtraPts; ++_root.statsCharm; } } } button 483 { on (release) { stopAllSounds(); nextFrame(); } } movieClip 506 { frame 1 { stop(); } } button 507 { on (rollOver, dragOver) { hudhelp.gotoAndStop('balls'); } on (rollOut, dragOut) { hudhelp.gotoAndStop(1); } } button 508 { on (rollOver, dragOver) { hudhelp.gotoAndStop('brains'); } on (rollOut, dragOut) { hudhelp.gotoAndStop(1); } } button 509 { on (rollOver, dragOver) { hudhelp.gotoAndStop('charm'); } on (rollOut, dragOut) { hudhelp.gotoAndStop(1); } } movieClip 510 { frame 20 { stop(); } } button 512 { on (release) { _root.nextFrame(); } } movieClip 520 { frame 1 { stop(); } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance hudhelp of movieClip 506 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { this._x = _level0._xmouse; this._y = _level0._ymouse; } } } frame 6 { stopAllSounds(); _root.musicCurrentTrack = 1; if (_root.musicIsOn) { _root.musicWorld.start(0, 100); } } movieClip 526 { } movieClip 531 { frame 7 { stop(); } } button 536 { on (release) { _parent.gotoAndStop('bbs'); } } movieClip 540 { frame 7 { stop(); } } button 546 { on (release) { _parent.gotoAndStop('dorm'); } } movieClip 550 { frame 7 { stop(); } } button 555 { on (release) { _parent.gotoAndStop('mall'); } } movieClip 559 { frame 7 { stop(); } } button 564 { on (release) { _parent.gotoAndStop('audio'); } } movieClip 567 { } movieClip 568 { frame 7 { stop(); } } button 574 { on (release) { _parent.gotoAndStop('ngu'); } } movieClip 578 { frame 7 { stop(); } } button 582 { on (release) { _parent.gotoAndStop('park'); } } movieClip 586 { frame 7 { stop(); } } button 592 { on (release) { _parent.gotoAndStop('portal'); } } movieClip 596 { frame 7 { stop(); } } button 601 { on (release) { _parent.gotoAndStop('art'); } } movieClip 605 { frame 7 { stop(); } } button 609 { on (release) { _parent.gotoAndStop('bar'); } } movieClip 610 { } movieClip 641 { frame 1 { stop(); } frame 2 { if (_root.statsTime == 3) { gotoAndStop('nightngu'); } } } movieClip 648 { } movieClip 651 { frame 5 { stop(); } } button 653 { on (rollOver) { _root.guiActionDesc = 'SLEEP // Pass out until next morning.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('sleep'); } } movieClip 660 { frame 5 { stop(); } } button 664 { on (rollOver) { _root.guiActionDesc = 'COMPUTER // Go online, make some flash.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('computer'); } } button 670 { on (release) { _parent.gotoAndStop(1); } } movieClip 674 { frame 7 { stop(); } } button 675 { on (rollOver) { DormSleepDesc.gotoAndStop(2); } on (rollOut) { DormSleepDesc.gotoAndStop(1); } on (release) { _parent.actionSleep.gotoAndPlay('nap'); gotoAndStop(1); } } button 676 { on (rollOver) { DormSleepDesc.gotoAndStop(3); } on (rollOut) { DormSleepDesc.gotoAndStop(1); } on (release) { _parent.actionSleep.gotoAndPlay('sleep'); gotoAndStop(1); } } movieClip 708 { } movieClip 710 { } movieClip 711 { frame 5 { stop(); } } movieClip 752 { frame 5 { stop(); } } movieClip 753 { frame 1 { stop(); } frame 15 { disReq = _root.listFlashReq[0]; } frame 16 { disReq = _root.listFlashReq[1]; } frame 17 { disReq = _root.listFlashReq[2]; } frame 18 { disReq = _root.listFlashReq[3]; } frame 19 { disReq = _root.listFlashReq[4]; } frame 20 { disReq = _root.listFlashReq[5]; } frame 22 { disProgress = '%' + Math.round((_root.statsFlashProgress / _root.statsFlashComplete) * 100); } } button 754 { on (release) { gotoAndStop(1); } } button 755 { on (rollOver) { DormSleepDesc.gotoAndStop('flash'); } on (rollOut) { DormSleepDesc.gotoAndStop(1); } on (release) { var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'flash') { ispurchased = true; } ++i; } if (!ispurchased) { DormSleepDesc.gotoAndStop('noflash'); DormSleepDesc.DormNoFlash.gotoAndPlay(1); } else { if (_root.statsTime == 3) { DormSleepDesc.gotoAndStop('tired'); DormSleepDesc.FlashTired.gotoAndPlay(1); } else { if (_root.statsFlashComplete == 0) { gotoAndStop('createflash'); } else { gotoAndStop('createflash2'); } } } } } button 756 { on (rollOver) { DormSleepDesc.gotoAndStop('hax'); } on (rollOut) { DormSleepDesc.gotoAndStop(1); } } button 762 { on (rollOut) { DormSleepDesc.gotoAndStop('chooseflash'); } on (rollOver) { var num = 2; if (_root.statsCre < _root.listFlashReq[num]) { DormSleepDesc.gotoAndStop('noCre'); } else { DormSleepDesc.gotoAndStop('cCre'); } } on (release) { var num = 2; var flashcomplete = _root.funcFlashCompleteCalculate(); var minprogress = 5; var maxprogress = 10; if (_root.statsCre >= _root.listFlashReq[num]) { _root.diaName = 'PICO'; _root.diaDialog = '...'; _parent.actionFlash.gotoAndPlay('create'); _root.statsFlashComplete = flashcomplete; _root.statsFlashProgress = _root.funcRandom(minprogress, maxprogress); _root.statsFlashValue = _root.funcRandom(30, 50); _root.statsFlashValue += _root.funcTip(_root.statsCre); _root.statsFlashProject = _root.listFlashProjects[num]; _root.funcFlashQualityCalculate(); _root.statsFlashType = 2; _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'FLA'; _root.statsFlash += _root.varPerUpValue; _root.funcUpdateTime(1); gotoAndStop(1); } } } button 763 { on (rollOut) { DormSleepDesc.gotoAndStop('chooseflash'); } on (rollOver) { var num = 0; if (_root.statsAud < _root.listFlashReq[num]) { DormSleepDesc.gotoAndStop('noAud'); } else { DormSleepDesc.gotoAndStop('cAud'); } } on (release) { var num = 0; var flashcomplete = _root.funcFlashCompleteCalculate(); var minprogress = 5; var maxprogress = 10; if (_root.statsAud >= _root.listFlashReq[num]) { _root.diaName = 'PICO'; _root.diaDialog = '...'; _parent.actionFlash.gotoAndPlay('create'); _root.statsFlashComplete = flashcomplete; _root.statsFlashProgress = _root.funcRandom(minprogress, maxprogress); _root.statsFlashValue = _root.funcRandom(30, 50); _root.statsFlashValue += _root.funcTip(_root.statsAud); _root.statsFlashProject = _root.listFlashProjects[num]; _root.funcFlashQualityCalculate(); _root.statsFlashType = 0; _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'FLA'; _root.statsFlash += _root.varPerUpValue; _root.funcUpdateTime(1); gotoAndStop(1); } } } button 764 { on (rollOut) { DormSleepDesc.gotoAndStop('chooseflash'); } on (rollOver) { var num = 3; if (_root.statsDil < _root.listFlashReq[num]) { DormSleepDesc.gotoAndStop('noDil'); } else { DormSleepDesc.gotoAndStop('cDil'); } } on (release) { var num = 3; var flashcomplete = _root.funcFlashCompleteCalculate(); var minprogress = 5; var maxprogress = 10; if (_root.statsDil >= _root.listFlashReq[num]) { _root.diaName = 'PICO'; _root.diaDialog = '...'; _parent.actionFlash.gotoAndPlay('create'); _root.statsFlashComplete = flashcomplete; _root.statsFlashProgress = _root.funcRandom(minprogress, maxprogress); _root.statsFlashValue = _root.funcRandom(30, 50); _root.statsFlashValue += _root.funcTip(_root.statsDil); _root.statsFlashProject = _root.listFlashProjects[num]; _root.funcFlashQualityCalculate(); _root.statsFlashType = 3; _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'FLA'; _root.statsFlash += _root.varPerUpValue; _root.funcUpdateTime(1); gotoAndStop(1); } } } button 765 { on (rollOut) { DormSleepDesc.gotoAndStop('chooseflash'); } on (rollOver) { var num = 4; if (_root.statsHum < _root.listFlashReq[num]) { DormSleepDesc.gotoAndStop('noHum'); } else { DormSleepDesc.gotoAndStop('cHum'); } } on (release) { var num = 4; var flashcomplete = _root.funcFlashCompleteCalculate(); var minprogress = 5; var maxprogress = 10; if (_root.statsHum >= _root.listFlashReq[num]) { _root.diaName = 'PICO'; _root.diaDialog = '...'; _parent.actionFlash.gotoAndPlay('create'); _root.statsFlashComplete = flashcomplete; _root.statsFlashProgress = _root.funcRandom(minprogress, maxprogress); _root.statsFlashValue = _root.funcRandom(30, 50); _root.statsFlashValue += _root.funcTip(_root.statsHum); _root.statsFlashProject = _root.listFlashProjects[num]; _root.funcFlashQualityCalculate(); _root.statsFlashType = 4; _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'FLA'; _root.statsFlash += _root.varPerUpValue; _root.funcUpdateTime(1); gotoAndStop(1); } } } button 766 { on (rollOut) { DormSleepDesc.gotoAndStop('chooseflash'); } on (rollOver) { var num = 1; if (_root.statsCon < _root.listFlashReq[num]) { DormSleepDesc.gotoAndStop('noCon'); } else { DormSleepDesc.gotoAndStop('cCon'); } } on (release) { var num = 1; var flashcomplete = _root.funcFlashCompleteCalculate(); var minprogress = 5; var maxprogress = 10; if (_root.statsCon >= _root.listFlashReq[num]) { _root.diaName = 'PICO'; _root.diaDialog = '...'; _parent.actionFlash.gotoAndPlay('create'); _root.statsFlashComplete = flashcomplete; _root.statsFlashProgress = _root.funcRandom(minprogress, maxprogress); _root.statsFlashValue = _root.funcRandom(30, 50); _root.statsFlashValue += _root.funcTip(_root.statsCon); _root.statsFlashProject = _root.listFlashProjects[num]; _root.funcFlashQualityCalculate(); _root.statsFlashType = 1; _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'FLA'; _root.statsFlash += _root.varPerUpValue; _root.funcUpdateTime(1); gotoAndStop(1); } } } button 767 { on (rollOut) { DormSleepDesc.gotoAndStop('chooseflash'); } on (rollOver) { var num = 5; if (_root.statsSen < _root.listFlashReq[num]) { DormSleepDesc.gotoAndStop('noSen'); } else { DormSleepDesc.gotoAndStop('cSen'); } } on (release) { var num = 5; var flashcomplete = _root.funcFlashCompleteCalculate(); var minprogress = 5; var maxprogress = 10; if (_root.statsSen >= _root.listFlashReq[num]) { _root.diaName = 'PICO'; _root.diaDialog = '...'; _parent.actionFlash.gotoAndPlay('create'); _root.statsFlashComplete = flashcomplete; _root.statsFlashProgress = _root.funcRandom(minprogress, maxprogress); _root.statsFlashValue = _root.funcRandom(30, 50); _root.statsFlashValue += _root.funcTip(_root.statsSen); _root.statsFlashProject = _root.listFlashProjects[num]; _root.funcFlashQualityCalculate(); _root.statsFlashType = 5; _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'FLA'; _root.statsFlash += _root.varPerUpValue; _root.funcUpdateTime(1); gotoAndStop(1); } } } movieClip 769 { } movieClip 771 { } movieClip 773 { } movieClip 775 { } movieClip 777 { } movieClip 779 { } movieClip 781 { } button 783 { on (rollOver) { DormSleepDesc.gotoAndStop('progress'); } on (rollOut) { DormSleepDesc.gotoAndStop('chooseflash'); } on (release) { var minprogress = 5; var maxprogress = 10; _root.diaName = 'PICO'; _root.diaDialog = '...'; _parent.actionFlash.gotoAndPlay('create'); _root.varLerpStat = _root.statsFlashProgress; _root.varLerpStatDis = 0; _root.statsFlashProgress += _root.funcRandom(minprogress, maxprogress); if (_root.statsFlashProgress >= 100) { _root.statsFlashProgress = 100; } _root.statsFlashValue += _root.funcRandom(20, 45); if (_root.statsFlashType == 0) { _root.statsFlashValue += _root.funcTip(_root.statsAud); } else { if (_root.statsFlashType == 1) { _root.statsFlashValue += _root.funcTip(_root.statsCon); } else { if (_root.statsFlashType == 2) { _root.statsFlashValue += _root.funcTip(_root.statsCre); } else { if (_root.statsFlashType == 3) { _root.statsFlashValue += _root.funcTip(_root.statsDil); } else { if (_root.statsFlashType == 4) { _root.statsFlashValue += _root.funcTip(_root.statsHum); } else { if (_root.statsFlashType == 5) { _root.statsFlashValue += _root.funcTip(_root.statsSen); } } } } } } _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'FLA'; _root.statsFlash += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); gotoAndStop(1); } } movieClip 785 { frame 1 { stop(); } instance of movieClip 779 { onClipEvent (load) { if (_root.statsAud >= _root.listFlashReq[0]) { this._visible = false; } } } instance of movieClip 779 { onClipEvent (load) { if (_root.statsDil >= _root.listFlashReq[3]) { this._visible = false; } } } instance of movieClip 779 { onClipEvent (load) { if (_root.statsHum >= _root.listFlashReq[4]) { this._visible = false; } } } instance of movieClip 779 { onClipEvent (load) { if (_root.statsCon >= _root.listFlashReq[1]) { this._visible = false; } } } instance of movieClip 779 { onClipEvent (load) { if (_root.statsSen >= _root.listFlashReq[5]) { this._visible = false; } } } instance DormSleepDesc of movieClip 753 { onClipEvent (load) { gotoAndStop('chooseflash'); } } } movieClip 789 { } movieClip 793 { } movieClip 802 { } movieClip 804 { } movieClip 806 { } movieClip 815 { frame 19 { if (_root.varIsNap) { gotoAndPlay(26); } } frame 25 { stop(); } frame 31 { stop(); } } button 818 { on (release) { gotoAndStop(1); } } movieClip 819 { frame 1 { stop(); } frame 2 { _root.varIsNap = false; } instance of movieClip 793 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 6 { if (_root.statsTime == 1) { _root.funcUpdateTime(1); } } frame 14 { if (_root.statsTime == 2) { _root.funcUpdateTime(1); } } frame 21 { if (_root.statsTime == 3) { _root.funcUpdateTime(1); } } frame 26 { stop(); } frame 28 { _root.varIsNap = true; } instance of movieClip 793 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 47 { _root.funcUpdateTime(1); } frame 52 { stop(); } } movieClip 826 { } movieClip 827 { } movieClip 831 { } movieClip 836 { instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsFlashComplete / _root.varLerpStat); } } } movieClip 853 { frame 1 { stop(); } } movieClip 856 { } movieClip 860 { } movieClip 879 { frame 1 { disProgress = '%' + Math.round((_root.statsFlashProgress / _root.statsFlashComplete) * 100); } instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsFlashComplete / _root.statsFlashProgress); } } frame 15 { stop(); } frame 17 { disQuality = _root.listFlashQuality[_root.statsFlashQuality]; disBonus = 'BONUS: $' + _root.listFlashReward[_root.statsFlashQuality]; } frame 31 { stop(); } } button 880 { on (release) { _root.guiMain._visible = true; gotoAndStop(1); } } movieClip 883 { frame 10 { stop(); } } movieClip 884 { frame 1 { stop(); } frame 2 { _root.guiMain._visible = false; } instance of movieClip 793 { onClipEvent (load) { var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.statsFlashProgress; var lerpFriction = 10; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; if (Math.round((_root.varLerpStat / _root.statsFlashComplete) * 100) >= 100) { _root.varLerpStatDis = '%100'; } else { _root.varLerpStatDis = '%' + Math.round((_root.varLerpStat / _root.statsFlashComplete) * 100); } } } frame 42 { if (_root.statsFlashProgress < _root.statsFlashComplete) { artResults.gotoAndPlay('progress'); } else { artResults.gotoAndPlay('complete'); _root.statsMoney += _root.listFlashReward[_root.statsFlashQuality]; _root.statsMoney += _root.statsFlashValue; _root.funcDisMoneyUpdate(); _root.statsFlashComplete = 0; _root.statsFlashProgress = 0; if (_root.statsFlashType == 4) { ++_root.statsFlashMadeHum; } else { if (_root.statsFlashType == 3) { ++_root.statsFlashMadeDil; } } } } instance of movieClip 853 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { _root.varLerpStat = 0; _root.varLerpStatDis = 0; var chosenVariable = _root.statsFlashValue + _root.listFlashReward[_root.statsFlashQuality]; var lerpFriction = 10; var fxXMin = 725; var fxXMax = 795; var fxYMin = 365; var fxYMax = 425; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '$0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); fxCurrent += 10; ++statgain; _root.varStatGain = '$' + statgain; } } } frame 52 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } } movieClip 893 { frame 5 { stop(); } } button 895 { on (rollOver) { _root.guiActionDesc = 'ATTEND CLASS // Keep that grade point average up.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('class'); } } movieClip 902 { frame 5 { stop(); } } button 905 { on (rollOver) { _root.guiActionDesc = 'STUDY // Work that brain. (BRAINS+)'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('study'); } } movieClip 916 { frame 5 { stop(); } } button 918 { on (rollOver) { _root.guiActionDesc = 'WOO // Hun-Ni'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _parent.gotoAndStop('girl-library'); } } movieClip 927 { frame 5 { stop(); } } button 928 { on (rollOver) { _root.guiActionDesc = 'ATTEND CLASS // Keep that grade point average up.'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 934 { frame 5 { stop(); } } button 935 { on (rollOver) { _root.guiActionDesc = 'STUDY // Work that brain. (BRAINS+)'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 943 { frame 5 { stop(); } } button 945 { on (rollOver) { NGUMenuDesc.gotoAndStop(2); } on (rollOut) { NGUMenuDesc.gotoAndStop(1); } on (release) { _root.diaName = 'MR. MADNESS'; _root.diaDialog = 'Do your best and maybe I wont have to kill you.'; _parent.actionSchool.gotoAndPlay('study'); _root.varLerpStat = _root.statsBrains; _root.varLerpStatDis = _root.statsBrains; _root.statsBrains += int(Math.random() * 4 + 1); _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'DIL'; _root.statsDil += _root.varPerUpValue; _root.funcUpdateTime(1); if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } button 946 { on (rollOver) { NGUMenuDesc.gotoAndStop(3); } on (rollOut) { NGUMenuDesc.gotoAndStop(1); } on (release) { var cost = 65; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.diaName = 'MR. MADNESS'; _root.diaDialog = 'I will teach you the way I only know how. By shooting you with bullets of knowledge!'; _parent.actionSchool.gotoAndPlay('tutor'); _root.varLerpStat = _root.statsBrains; _root.varLerpStatDis = _root.statsBrains; _root.statsBrains += int(Math.random() * 5 + 5); _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'DIL'; _root.statsDil += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } else { NGUMenuDesc.gotoAndStop(4); NGUMenuDesc.NGUMoola.gotoAndPlay(1); } } } movieClip 964 { frame 5 { stop(); } } movieClip 974 { frame 5 { stop(); } } movieClip 975 { frame 1 { stop(); } frame 6 { var chance = (_root.statsBrains - _root.statsGrade * 25) / 25; if (chance * 100 <= 0) { disGradeChance = '0%'; } else { if (chance * 100 >= 100) { disGradeChance = '100%'; } else { disGradeChance = chance * 100 + '%'; } } } } button 976 { on (release) { if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } button 977 { on (rollOver) { if (_root.statsGrade < _root.listGrades.length - 1) { NGUMenuDesc.gotoAndStop(6); } else { NGUMenuDesc.gotoAndStop(5); } } on (rollOut) { NGUMenuDesc.gotoAndStop(5); } on (release) { if (_root.statsGrade < _root.listGrades.length - 1) { var chance = ((_root.statsBrains - _root.statsGrade * 25) / 25) * 100; var diceroll = int(Math.random() * 100 + 1); if (chance >= diceroll) { _root.varIsTestPass = true; ++_root.statsGrade; } else { _root.varIsTestPass = false; } _root.diaName = 'MR. MADNESS'; _root.diaDialog = 'I will shoot you... \nwith bullets of wisdom!'; _parent.actionSchool.gotoAndPlay('class'); _root.funcUpdateTime(1); if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } else { NGUMenuDesc.gotoAndStop(7); NGUMenuDesc.NGUMax.gotoAndPlay(1); } } } movieClip 982 { frame 1 { stop(); if (_root.statsTime == 3) { _parent.worldbg.gotoAndStop('nightngu'); } } frame 2 { stop(); if (_root.statsTime == 3) { _parent.worldbg.gotoAndStop('nightngu'); } } frame 4 { disGrade = _root.listGrades[_root.statsGrade]; } instance NGUMenuDesc of movieClip 975 { onClipEvent (load) { this.gotoAndStop(5); } } } movieClip 987 { } movieClip 988 { } movieClip 997 { instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsMax / _root.statsBrains); } } instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsMax / _root.varLerpStat); } } } button 1000 { on (release) { _root.guiMain._visible = true; gotoAndStop(1); } } movieClip 1006 { } movieClip 1020 { frame 1 { disGrade = _root.listGrades[_root.statsGrade]; } frame 14 { stop(); } frame 16 { disGrade = _root.listGrades[_root.statsGrade]; } frame 29 { stop(); } } movieClip 1021 { frame 1 { stop(); } frame 2 { _root.guiMain._visible = false; } instance of movieClip 988 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('madness'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.statsBrains; var lerpFriction = 5; var fxXMin = 455; var fxXMax = 655; var fxYMin = 330; var fxYMax = 375; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxStatsAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } frame 15 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } frame 17 { _root.guiMain._visible = false; } instance of movieClip 988 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('madness'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.statsBrains; var lerpFriction = 5; var fxXMin = 455; var fxXMax = 655; var fxYMin = 330; var fxYMax = 375; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxStatsAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } frame 30 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } frame 32 { _root.guiMain._visible = false; } instance of movieClip 988 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 53 { if (_root.varIsTestPass) { _root.diaDialog = 'Who knows some day you might become a teacher too!'; testResults.gotoAndPlay('pass'); } else { _root.diaDialog = 'Maybe learning isn’t your thing? Maybe it\'s dying.'; testResults.gotoAndPlay('fail'); } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('madness'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 63 { stop(); } } movieClip 1028 { frame 5 { stop(); } } button 1030 { on (rollOver) { _root.guiActionDesc = 'TRAIN // Guts and Glory. (BALLS+)'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('train'); } } movieClip 1039 { frame 5 { stop(); } } button 1041 { on (rollOver) { _root.guiActionDesc = 'CAREER // Portal Defender'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('work'); } } button 1042 { on (rollOver) { _root.guiActionDesc = 'WOO // Donna'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _parent.gotoAndStop('girl-gym'); } } movieClip 1050 { frame 5 { stop(); } } button 1051 { on (rollOver) { _root.guiActionDesc = 'CAREER // Portal Defender'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 1056 { frame 5 { stop(); } } button 1057 { on (rollOver) { _root.guiActionDesc = 'TRAIN // Guts and Glory. (BALLS+)'; } on (rollOut) { _root.guiActionDesc = ''; } } button 1058 { on (rollOver) { PortalMenuDesc.gotoAndStop(2); } on (rollOut) { PortalMenuDesc.gotoAndStop(1); } on (release) { _root.diaName = 'DAD'; _root.diaDialog = 'Work out a good sweat my boy!- Get swoll!'; _parent.actionPortal.gotoAndPlay('workout'); _root.varLerpStat = _root.statsBalls; _root.varLerpStatDis = _root.statsBalls; _root.statsBalls += int(Math.random() * 4 + 1); _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'CON'; _root.statsCon += _root.varPerUpValue; _root.funcUpdateTime(1); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } button 1059 { on (rollOver) { PortalMenuDesc.gotoAndStop(3); } on (rollOut) { PortalMenuDesc.gotoAndStop(1); } on (release) { var cost = 50; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.diaName = 'DAD'; _root.diaDialog = 'Great job son! I\'ll hide the bodies, don\'t worry.'; _parent.actionPortal.gotoAndPlay('trainer'); _root.varLerpStat = _root.statsBalls; _root.varLerpStatDis = _root.statsBalls; _root.statsBalls += int(Math.random() * 5 + 5); _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'CON'; _root.statsCon += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } else { PortalMenuDesc.gotoAndStop(4); PortalMenuDesc.NGUMoola.gotoAndPlay(1); } } } movieClip 1076 { } movieClip 1078 { } movieClip 1093 { frame 5 { stop(); } } movieClip 1094 { frame 1 { stop(); } frame 8 { var stattotal = _root.statsBrains + _root.statsBalls; if (_root.statsPortalRank == 9) { minimumstat = 'MAX'; } else { minimumstat = _root.listPromoReqPortal[_root.statsPortalRank]; } var calculatechance = (stattotal - _root.listPromoReqPortal[_root.statsPortalRank]) / (_root.listPromoReqPortal[_root.statsPortalRank + 1] - _root.listPromoReqPortal[_root.statsPortalRank]); if (calculatechance * 100 <= 0) { chance = '0%'; } else { if (calculatechance * 100 >= 100) { chance = '100%'; } else { chance = Math.round(calculatechance * 100) + '%'; } } } } button 1095 { on (release) { if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } button 1096 { on (rollOver) { PortalMenuDesc.gotoAndStop(6); } on (rollOut) { PortalMenuDesc.gotoAndStop(5); } on (release) { _root.diaName = 'THE CAPTAIN'; _root.diaDialog = 'Goddammit sun shine- You know Im a sucker for hard workers!'; _parent.actionPortal.gotoAndPlay('work'); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varTip = 0; _root.varPay = _root.funcPortalJobWage(); _root.varPayMax = 450; _root.varIsOvertime = false; _root.statsMoney += _root.varPay; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } button 1097 { on (rollOver) { PortalMenuDesc.gotoAndStop(7); } on (rollOut) { PortalMenuDesc.gotoAndStop(5); } on (release) { _root.diaName = 'THE CAPTAIN'; _root.diaDialog = '...'; _parent.actionPortal.gotoAndPlay('work'); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varTip = 0; _root.varPay = _root.funcPortalJobWageOvertime(); _root.varPayMax = 1000; _root.varIsOvertime = true; _root.statsMoney += _root.varPay; _root.funcUpdateTime(2); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } button 1100 { on (rollOver) { if (_root.statsPortalRank < _root.listPortalRanks.length - 1) { PortalMenuDesc.gotoAndStop(8); } else { PortalMenuDesc.gotoAndStop(5); } } on (rollOut) { PortalMenuDesc.gotoAndStop(5); } on (release) { if (_root.statsPortalRank < _root.listPortalRanks.length - 1) { _root.funcPortalPromotionCalculate(); _root.diaName = 'THE CAPTAIN'; _root.diaDialog = '...'; _parent.actionPortal.gotoAndPlay('promotion'); _root.funcUpdateTime(1); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } else { PortalMenuDesc.gotoAndStop(9); PortalMenuDesc.portalMax.gotoAndPlay(1); } } } movieClip 1126 { frame 1 { stop(); } } movieClip 1129 { frame 1 { stop(); } frame 4 { disJobRank = _root.listPortalRanks[_root.statsPortalRank]; } instance PortalMenuDesc of movieClip 1094 { onClipEvent (load) { gotoAndStop(5); } } instance disJobBadge of movieClip 1126 { onClipEvent (load) { this.gotoAndStop(_root.statsPortalRank + 1); } } } movieClip 1133 { } movieClip 1134 { } movieClip 1140 { instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsMax / _root.statsBalls); } } instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsMax / _root.varLerpStat); } } } button 1142 { on (release) { _root.guiMain._visible = true; gotoAndStop(1); } } movieClip 1146 { } movieClip 1150 { instance of movieClip 1146 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.varPayMax / _root.varLerpStat); } } } movieClip 1154 { } movieClip 1174 { } movieClip 1176 { } movieClip 1178 { } movieClip 1180 { } movieClip 1182 { } movieClip 1184 { } movieClip 1186 { } movieClip 1188 { } movieClip 1190 { } movieClip 1192 { } movieClip 1193 { frame 1 { stop(); } } movieClip 1201 { } movieClip 1202 { frame 1 { disTip = '+$' + _root.varTip; } frame 15 { stop(); } frame 17 { disJobRank = _root.listPortalRanks[_root.statsPortalRank]; disTip = '+$' + _root.varTip; } instance disJobBadge of movieClip 1126 { onClipEvent (load) { this.gotoAndStop(_root.statsPortalRank + 1); } } frame 31 { stop(); } frame 33 { disJobRank = _root.listPortalRanks[_root.statsPortalRank]; disTip = '+$' + _root.varTip; } instance disJobBadge of movieClip 1126 { onClipEvent (load) { this.gotoAndStop(_root.statsPortalRank + 1); } } frame 47 { stop(); } frame 49 { disJobRank = _root.listBBSRanks[_root.statsBBSRank]; disTip = '+$' + _root.varTip; } instance disJobBadge of movieClip 1193 { onClipEvent (load) { this.gotoAndStop(_root.statsBBSRank + 1); } } frame 63 { stop(); } frame 72 { stop(); } } movieClip 1207 { } movieClip 1223 { frame 1 { disJobBadge.gotoAndStop(_root.statsPortalRank); disRankText = _root.listPortalRanks[_root.statsPortalRank]; disRankDesc = _root.descPortalJob[_root.statsPortalRank]; } frame 16 { disJobBadge.gotoAndStop(_root.statsPortalRank + 1); } frame 20 { stop(); } frame 22 { disJobBadge.gotoAndStop(_root.statsPortalRank + 1); disJobRank = _root.listPortalRanks[_root.statsPortalRank]; } frame 35 { stop(); } frame 37 { disJobBadge.gotoAndStop(_root.statsBBSRank); disRankText = _root.listBBSRanks[_root.statsBBSRank]; disRankDesc = _root.descBBSJob[_root.statsBBSRank]; } frame 52 { disJobBadge.gotoAndStop(_root.statsBBSRank + 1); } frame 56 { stop(); } frame 58 { disJobBadge.gotoAndStop(_root.statsBBSRank + 1); disJobRank = _root.listBBSRanks[_root.statsBBSRank]; } frame 71 { stop(); } } movieClip 1224 { frame 1 { stop(); } frame 2 { _root.guiMain._visible = false; } instance of movieClip 1134 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('dad'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.statsBalls; var lerpFriction = 5; var fxXMin = 455; var fxXMax = 655; var fxYMin = 330; var fxYMax = 375; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxStatsAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } frame 15 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } frame 17 { _root.guiMain._visible = false; } instance of movieClip 1134 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('dad'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.statsBalls; var lerpFriction = 5; var fxXMin = 455; var fxXMax = 655; var fxYMin = 330; var fxYMax = 375; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxStatsAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } frame 30 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } frame 32 { _root.guiMain._visible = false; } instance of movieClip 1134 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.varPay; var lerpFriction = 10; var fxXMin = 440; var fxXMax = 740; var fxYMin = 335; var fxYMax = 380; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } frame 63 { jobResults.gotoAndPlay('workportal'); } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('captain'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { _root.varLerpStat = 0; _root.varLerpStatDis = 0; var chosenVariable = _root.varPay - _root.varTip; var lerpFriction = 5; var fxXMin = 625; var fxXMax = 715; var fxYMin = 295; var fxYMax = 380; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '$0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); fxCurrent += 10; ++statgain; _root.varStatGain = '$' + statgain; } } } frame 73 { stop(); } frame 75 { _root.guiMain._visible = false; } instance of movieClip 1134 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 96 { if (_root.varIsPromoted) { _root.diaName = 'THE CAPTAIN'; _root.diaDialog = 'I\'m getting a major hard on right now- Good job, kid!'; promotionresults.gotoAndPlay('success'); } else { _root.diaName = 'THE CAPTAIN'; _root.diaDialog = 'We are so Fucked... You also got some nasty swamp ass, kid.'; promotionresults.gotoAndPlay('fail'); } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('captain'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 106 { stop(); } } movieClip 1231 { frame 5 { stop(); } } button 1233 { on (rollOver) { _root.guiActionDesc = 'CREATE // Make a work of art.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { if (_root.statsArtComplete == 0) { gotoAndStop('create'); } else { gotoAndStop('progress'); } } } button 1234 { on (rollOver) { _root.guiActionDesc = 'WOO // Allie'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _parent.gotoAndStop('girl-art'); } } movieClip 1240 { frame 5 { stop(); } } button 1242 { on (rollOver) { _root.guiActionDesc = 'WOO // Allie'; } on (rollOut) { _root.guiActionDesc = ''; } } button 1243 { on (rollOver) { ArtMenuDesc.gotoAndStop(2); } on (rollOut) { ArtMenuDesc.gotoAndStop(1); } on (release) { gotoAndStop('create2'); } } movieClip 1255 { frame 5 { stop(); } } movieClip 1260 { frame 1 { stop(); } frame 6 { disProgress = '%' + Math.round((_root.statsArtPogress / _root.statsArtComplete) * 100); } } button 1262 { on (release) { if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } button 1264 { on (rollOut) { ArtMenuDesc.gotoAndStop(1); } on (rollOver) { var num = 0; ArtMenuDesc.gotoAndStop('artcost'); _root.varDisArtCost = '$' + _root.listArtCost[num]; } on (release) { var num = 0; var artcomplete = 10; var minprogress = 5; var maxprogress = 10; if (_root.statsMoney < _root.listArtCost[num]) { ArtMenuDesc.gotoAndStop('nomoney'); ArtMenuDesc.ArtNoMoney.gotoAndPlay(1); } else { _root.statsMoney -= _root.listArtCost[num]; _root.diaName = 'LILIUM'; _root.diaDialog = 'Such beauty.. Just as the the sun sets in twilight.'; _parent.actionArt.gotoAndPlay('create'); _root.statsArtComplete = artcomplete; _root.statsArtPogress = _root.funcRandom(minprogress, maxprogress); _root.statsArtValue = _root.funcRandom(30, 55); _root.statsArtValue += _root.funcTip(_root.statsCre); _root.statArtProject = _root.listArtProjects[num][_root.funcRandom(0, 1)]; _root.funcArtQualityCalculate(); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'CRE'; _root.statsCre += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } } button 1265 { on (rollOut) { ArtMenuDesc.gotoAndStop(1); } on (rollOver) { var num = 1; if (_root.statsCre < _root.listArtReq[num]) { ArtMenuDesc.gotoAndStop('nocre'); _root.varDisReqCre = _root.listArtReq[num]; } else { ArtMenuDesc.gotoAndStop('artcost'); _root.varDisArtCost = '$' + _root.listArtCost[num]; } } on (release) { var num = 1; var artcomplete = 15; var minprogress = 5; var maxprogress = 10; if (_root.statsCre < _root.listArtReq[num]) { ArtMenuDesc.gotoAndStop('nocre'); ArtMenuDesc.ArtNoCre.gotoAndPlay(1); _root.varDisReqCre = _root.listArtReq[num]; } else { if (_root.statsMoney < _root.listArtCost[num]) { ArtMenuDesc.gotoAndStop('nomoney'); ArtMenuDesc.ArtNoMoney.gotoAndPlay(1); } else { _root.statsMoney -= _root.listArtCost[num]; _root.diaName = 'LILIUM'; _root.diaDialog = 'Such beauty.. Just as the the sun sets in twilight..'; _parent.actionArt.gotoAndPlay('create'); _root.statsArtComplete = artcomplete; _root.statsArtPogress = _root.funcRandom(minprogress, maxprogress); _root.statsArtValue = _root.funcRandom(45, 70); _root.statsArtValue += _root.funcTip(_root.statsCre); _root.statArtProject = _root.listArtProjects[num][_root.funcRandom(0, 1)]; _root.funcArtQualityCalculate(); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'CRE'; _root.statsCre += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } } } button 1266 { on (rollOut) { ArtMenuDesc.gotoAndStop(1); } on (rollOver) { var num = 2; if (_root.statsCre < _root.listArtReq[num]) { ArtMenuDesc.gotoAndStop('nocre'); _root.varDisReqCre = _root.listArtReq[num]; } else { ArtMenuDesc.gotoAndStop('artcost'); _root.varDisArtCost = '$' + _root.listArtCost[num]; } } on (release) { var num = 2; var artcomplete = 20; var minprogress = 5; var maxprogress = 10; if (_root.statsCre < _root.listArtReq[num]) { ArtMenuDesc.gotoAndStop('nocre'); ArtMenuDesc.ArtNoCre.gotoAndPlay(1); _root.varDisReqCre = _root.listArtReq[num]; } else { if (_root.statsMoney < _root.listArtCost[num]) { ArtMenuDesc.gotoAndStop('nomoney'); ArtMenuDesc.ArtNoMoney.gotoAndPlay(1); } else { _root.statsMoney -= _root.listArtCost[num]; _root.diaName = 'LILIUM'; _root.diaDialog = 'Such beauty.. Just as the the sun sets in twilight..'; _parent.actionArt.gotoAndPlay('create'); _root.statsArtComplete = artcomplete; _root.statsArtPogress = _root.funcRandom(minprogress, maxprogress); _root.statsArtValue = _root.funcRandom(65, 90); _root.statsArtValue += _root.funcTip(_root.statsCre); _root.statArtProject = _root.listArtProjects[num][_root.funcRandom(0, 1)]; _root.funcArtQualityCalculate(); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'CRE'; _root.statsCre += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } } } button 1267 { on (rollOut) { ArtMenuDesc.gotoAndStop(1); } on (rollOver) { var num = 3; if (_root.statsCre < _root.listArtReq[num]) { ArtMenuDesc.gotoAndStop('nocre'); _root.varDisReqCre = _root.listArtReq[num]; } else { ArtMenuDesc.gotoAndStop('artcost'); _root.varDisArtCost = '$' + _root.listArtCost[num]; } } on (release) { var num = 3; var artcomplete = 25; var minprogress = 5; var maxprogress = 10; if (_root.statsCre < _root.listArtReq[num]) { ArtMenuDesc.gotoAndStop('nocre'); ArtMenuDesc.ArtNoCre.gotoAndPlay(1); _root.varDisReqCre = _root.listArtReq[num]; } else { if (_root.statsMoney < _root.listArtCost[num]) { ArtMenuDesc.gotoAndStop('nomoney'); ArtMenuDesc.ArtNoMoney.gotoAndPlay(1); } else { _root.statsMoney -= _root.listArtCost[num]; _root.diaName = 'LILIUM'; _root.diaDialog = 'Such beauty.. Just as the the sun sets in twilight..'; _parent.actionArt.gotoAndPlay('create'); _root.statsArtComplete = artcomplete; _root.statsArtPogress = _root.funcRandom(minprogress, maxprogress); _root.statsArtValue = _root.funcRandom(90, 115); _root.statsArtValue += _root.funcTip(_root.statsCre); _root.statArtProject = _root.listArtProjects[num][_root.funcRandom(0, 1)]; _root.funcArtQualityCalculate(); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'CRE'; _root.statsCre += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } } } movieClip 1272 { } button 1275 { on (rollOut) { _parent.ArtMenuDesc.gotoAndStop(1); } on (rollOver) { var num = 4; if (_root.statsCre < _root.listArtReq[num]) { _parent.ArtMenuDesc.gotoAndStop('nocre'); _root.varDisReqCre = _root.listArtReq[num]; } else { _parent.ArtMenuDesc.gotoAndStop('artcost'); _root.varDisArtCost = '$' + _root.listArtCost[num]; } } on (release) { var num = 4; var artcomplete = 35; var minprogress = 5; var maxprogress = 10; if (_root.statsCre < _root.listArtReq[num]) { _parent.ArtMenuDesc.gotoAndStop('nocre'); _parent.ArtMenuDesc.ArtNoCre.gotoAndPlay(1); _root.varDisReqCre = _root.listArtReq[num]; } else { if (_root.statsMoney < _root.listArtCost[num]) { _parent.ArtMenuDesc.gotoAndStop('nomoney'); _parent.ArtMenuDesc.ArtNoMoney.gotoAndPlay(1); } else { _root.statsMoney -= _root.listArtCost[num]; _root.diaName = 'LILIUM'; _root.diaDialog = '...'; _parent._parent.actionArt.gotoAndPlay('create'); _root.statsArtComplete = artcomplete; _root.statsArtPogress = _root.funcRandom(minprogress, maxprogress); _root.statsArtValue = 0; _root.statArtProject = 'Space Component'; _root.statArtQuality = 5; _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'CRE'; _root.statsCre += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { _parent.gotoAndStop('closed'); } else { _parent.gotoAndStop('open'); } } } } } movieClip 1277 { } movieClip 1278 { frame 1 { stop(); } instance of movieClip 779 { onClipEvent (load) { if (_root.statsCre >= _root.listArtReq[4]) { this._visible = false; } } } } button 1279 { on (rollOver) { ArtMenuDesc.gotoAndStop('progress'); } on (rollOut) { ArtMenuDesc.gotoAndStop(1); } on (release) { var minprogress = 5; var maxprogress = 10; _root.diaName = 'LILIUM'; _root.diaDialog = 'Such beauty.. Just as the the sun sets in twilight.'; _parent.actionArt.gotoAndPlay('create'); _root.varLerpStat = _root.statsArtPogress; _root.varLerpStatDis = 0; _root.statsArtPogress += _root.funcRandom(minprogress, maxprogress); if (_root.statsArtPogress >= 100) { _root.statsArtPogress = 100; } _root.statsArtValue += _root.funcRandom(20, 45); _root.statsArtValue += _root.funcTip(_root.statsCre); if (_root.statArtQuality == 5) { _root.statsArtValue = 0; } _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'CRE'; _root.statsCre += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } movieClip 1282 { frame 1 { stop(); } instance of movieClip 779 { onClipEvent (load) { if (_root.statsCre >= _root.listArtReq[3]) { this._visible = false; } } } instance of movieClip 779 { onClipEvent (load) { if (_root.statsCre >= _root.listArtReq[2]) { this._visible = false; } } } instance of movieClip 779 { onClipEvent (load) { if (_root.statsCre >= _root.listArtReq[1]) { this._visible = false; } } } instance of movieClip 1278 { onClipEvent (load) { if (_root.statsGirlTaskActive[3][1] != undefined) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 1286 { } movieClip 1287 { } movieClip 1291 { } movieClip 1293 { } movieClip 1296 { instance of movieClip 1293 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsArtComplete / _root.varLerpStat); } } } movieClip 1312 { } movieClip 1315 { } movieClip 1317 { frame 1 { disProgress = '%' + Math.round((_root.statsArtPogress / _root.statsArtComplete) * 100); } instance of movieClip 1293 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsArtComplete / _root.statsArtPogress); } } frame 15 { stop(); } frame 17 { disQuality = _root.listArtQuality[_root.statArtQuality]; disBonus = 'BONUS: $' + _root.listArtReward[_root.statArtQuality]; } frame 31 { stop(); } frame 40 { stop(); } } button 1318 { on (release) { if (_root.statsArtPogress >= _root.statsArtComplete && _root.statArtQuality == 5) { if (!spacepartcontinue) { artResults.gotoAndPlay('spacepart'); spacepartcontinue = true; } else { _root.guiMain._visible = true; gotoAndStop(1); } } else { _root.guiMain._visible = true; gotoAndStop(1); } } } movieClip 1319 { frame 1 { stop(); } frame 2 { _root.guiMain._visible = false; } instance of movieClip 1287 { onClipEvent (load) { var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.statsArtPogress; var lerpFriction = 10; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; if (Math.round((_root.varLerpStat / _root.statsArtComplete) * 100) >= 100) { _root.varLerpStatDis = '%100'; } else { _root.varLerpStatDis = '%' + Math.round((_root.varLerpStat / _root.statsArtComplete) * 100); } } } frame 42 { if (_root.statsArtPogress >= _root.statsArtComplete && _root.statArtQuality == 5) { spacepartcontinue = false; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'spacepart2'; } if (_root.statsArtPogress < _root.statsArtComplete) { artResults.gotoAndPlay('progress'); } else { artResults.gotoAndPlay('complete'); _root.statsMoney += _root.listArtReward[_root.statArtQuality]; _root.statsMoney += _root.statsArtValue; _root.funcDisMoneyUpdate(); _root.statsArtComplete = 0; _root.statsArtPogress = 0; ++_root.statsArtMade; if (_root.statArtQuality == 4) { ++_root.statsArtMasterpieces; } } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('lilium'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { _root.varLerpStat = 0; _root.varLerpStatDis = 0; var chosenVariable = _root.statsArtValue + _root.listArtReward[_root.statArtQuality]; var lerpFriction = 10; var fxXMin = 725; var fxXMax = 795; var fxYMin = 365; var fxYMax = 425; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '$0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); fxCurrent += 10; ++statgain; _root.varStatGain = '$' + statgain; } } } frame 52 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } } button 1320 { on (release) { gotoAndStop(1); } } movieClip 1329 { frame 5 { stop(); } } button 1331 { on (rollOver) { _root.guiActionDesc = 'BUY MUSIC // Get some tracks.'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 1334 { } movieClip 1341 { frame 5 { stop(); } } button 1344 { on (rollOver) { _root.guiActionDesc = 'PART-TIME JOB // Gardener'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('garden'); } } movieClip 1353 { frame 5 { stop(); } } movieClip 1361 { frame 5 { stop(); } } button 1364 { on (rollOver) { _root.guiActionDesc = 'ADVENTURE // Who knows what\'s out there.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('adventure'); } } button 1365 { on (rollOver) { _root.guiActionDesc = 'WOO // Bree'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _parent.gotoAndStop('girl-park'); } } movieClip 1373 { frame 5 { stop(); } } button 1374 { on (rollOver) { _root.guiActionDesc = 'PART-TIME JOB // Gardener'; } on (rollOut) { _root.guiActionDesc = ''; } } button 1375 { on (rollOver) { GardenMenuDesc.gotoAndStop(2); } on (rollOut) { GardenMenuDesc.gotoAndStop(1); } on (release) { _root.diaName = 'PEASANT'; _root.diaDialog = 'Keep at it, Princesses love flowers!'; _parent.actionPark.gotoAndPlay('garden'); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varTip = _root.funcTip(_root.statsSen); _root.varPay = _root.funcRandom(20, 45) + _root.varTip; _root.varPayMax = 125; _root.statsMoney += _root.varPay; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'SEN'; _root.statsSen += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } movieClip 1386 { frame 1 { stop(); } } button 1388 { on (release) { if (_root.statsTime == 1) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } button 1389 { on (rollOver) { GardenMenuDesc.gotoAndStop(4); } on (rollOut) { GardenMenuDesc.gotoAndStop(3); } on (release) { _parent.actionPark.gotoAndPlay('adventure'); var diceroll = _root.funcRandom(0, 5); var statChange = _root.funcRandom(1, 7); var storyChoice = _root.funcRandom(0, 2); _root.varAdventureStory = _root.descAdventure[diceroll][storyChoice]; if (diceroll == 0) { _root.statsBalls += statChange; _root.varAdventureResult = 'BALLS +' + statChange + '!'; _root.varAdventureHeadline = 'yeah'; } else { if (diceroll == 1) { _root.statsBrains += statChange; _root.varAdventureResult = 'BRAINS +' + statChange + '!'; _root.varAdventureHeadline = 'yeah'; } else { if (diceroll == 2) { _root.statsCharm += statChange; _root.varAdventureResult = 'CHARM +' + statChange + '!'; _root.varAdventureHeadline = 'yeah'; } else { if (diceroll == 3) { _root.statsBalls -= statChange; _root.varAdventureResult = 'BALLS -' + statChange + '!'; _root.varAdventureHeadline = 'ouch'; } else { if (diceroll == 4) { _root.statsBrains -= statChange; _root.varAdventureResult = 'BRAINS -' + statChange + '!'; _root.varAdventureHeadline = 'ouch'; } else { if (diceroll == 5) { _root.statsCharm -= statChange; _root.varAdventureResult = 'CHARM -' + statChange + '!'; _root.varAdventureHeadline = 'ouch'; } } } } } } if (_root.statsGirlTaskActive[2][3] == true) { var breediceroll = _root.funcRandom(1, 100); if (breediceroll <= _root.specialBreeVillageChance) { _root.statsCharm += statChange; _root.varAdventureResult = 'DASHKIN VILLAGE!'; _root.varAdventureStory = 'The villagers seem hostile, so you draw a map to the village and sneak away.'; _root.varAdventureHeadline = 'yeah'; _root.taskBreeFoundVillage = true; } } _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'AUD'; _root.statsAud += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 1) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } movieClip 1391 { frame 1 { stop(); } instance GardenMenuDesc of movieClip 1386 { onClipEvent (load) { this.gotoAndStop(3); } } } movieClip 1395 { } movieClip 1396 { } movieClip 1400 { } button 1401 { on (release) { if (_root.statsGirlTaskActive[3][2] == true) { if (!spacekeyscontinue) { jobResults.gotoAndPlay('spacekeys'); spacekeyscontinue = true; } else { _root.guiMain._visible = true; gotoAndStop(1); } } else { _root.guiMain._visible = true; gotoAndStop(1); } } } movieClip 1405 { } movieClip 1415 { frame 1 { disDesc = _root.varAdventureStory; } frame 14 { stop(); } frame 16 { disDesc = _root.varAdventureStory; } frame 29 { stop(); } } button 1416 { on (release) { _root.guiMain._visible = true; gotoAndStop(1); } } movieClip 1417 { frame 1 { stop(); } frame 2 { _root.guiMain._visible = false; } instance of movieClip 1396 { onClipEvent (load) { var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.varPay; var lerpFriction = 10; var fxXMin = 440; var fxXMax = 740; var fxYMin = 335; var fxYMax = 380; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('peasant'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { _root.varLerpStat = 0; _root.varLerpStatDis = 0; var chosenVariable = _root.varPay - _root.varTip; var lerpFriction = 5; var fxXMin = 625; var fxXMax = 715; var fxYMin = 295; var fxYMax = 380; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '$0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); fxCurrent += 5; ++statgain; _root.varStatGain = '$' + statgain; } } } frame 43 { stop(); spacekeysdiceroll = _root.funcRandom(1, 100); var haskeys = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'spacepart3') { haskeys = true; break; } ++i; } if (!haskeys && _root.statsGirlTaskActive[3][2] == true) { if (spacekeysdiceroll > _root.specialAllieKeyChance) { spacekeyscontinue = true; } else { spacekeyscontinue = false; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'spacepart3'; } } else { spacekeyscontinue = true; } } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } frame 45 { _root.guiMain._visible = false; } frame 76 { adventureresults.gotoAndPlay(_root.varAdventureHeadline); } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 86 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } } movieClip 1426 { frame 5 { stop(); } } button 1428 { on (rollOver) { _root.guiActionDesc = 'SHOP FANCY // Bling-bling.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _root.diaName = '(NARRATOR)'; _root.diaDialog = 'Hatty welcomes you dear friend!!- Or at least I think so.'; _parent.actionShop.gotoAndStop('fancy'); } } movieClip 1434 { frame 5 { stop(); } } button 1436 { on (rollOver) { _root.guiActionDesc = 'SHOP GIFTS // Chocolates and Teddy Bears.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _root.diaName = 'DOKI'; _root.diaDialog = 'Hwangyong-hamnida!'; _parent.actionShop.gotoAndStop('gifts'); } } movieClip 1442 { frame 5 { stop(); } } button 1444 { on (rollOver) { _root.guiActionDesc = 'SHOP TECH // Software and tech.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _root.diaName = 'AWESOME SNAKE'; _root.diaDialog = 'Check out this Awesome crap I found in Otakon\'s la- Err... Nevermind'; _parent.actionShop.gotoAndStop('tech'); } } movieClip 1451 { frame 5 { stop(); } } button 1454 { on (rollOver) { _root.guiActionDesc = 'SHOP JUNK // Knick-knacks.'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _root.diaName = 'SALAD FINGERS'; _root.diaDialog = 'Hubert Cumberdale and I welcome you new friend. Hehe...'; _parent.actionShop.gotoAndStop('junk'); } } movieClip 1460 { frame 5 { stop(); } } button 1461 { on (rollOver) { _root.guiActionDesc = 'SHOP FANCY // Bling-bling.'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 1466 { frame 5 { stop(); } } button 1467 { on (rollOver) { _root.guiActionDesc = 'SHOP GIFTS // Chocolates and Teddy Bears.'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 1472 { frame 5 { stop(); } } button 1473 { on (rollOver) { _root.guiActionDesc = 'SHOP TECH // Software and tech.'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 1479 { frame 5 { stop(); } } button 1480 { on (rollOver) { _root.guiActionDesc = 'SHOP JUNK // Knick-knacks.'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 1481 { frame 1 { stop(); } } movieClip 1485 { } movieClip 1488 { } movieClip 1490 { } movieClip 1493 { } movieClip 1494 { } movieClip 1497 { } movieClip 1498 { } movieClip 1501 { } movieClip 1503 { } movieClip 1505 { } movieClip 1506 { } movieClip 1509 { } movieClip 1511 { } movieClip 1514 { } movieClip 1515 { } movieClip 1517 { } movieClip 1529 { } button 1531 { on (rollOut) { itemdesc._visible = false; } on (rollOver) { itemdesc._visible = true; _root.varItemName = 'MAGAZINE'; _root.varItemDesc = 'News and reviews.\nYou have: ' + _root.statsInventoryGifts[0]; } on (release) { var cost = 35; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; ++_root.statsInventoryGifts[0]; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); _root.funcDisMoneyUpdate(); _root.varItemDesc = 'News and reviews.\nYou have: ' + _root.statsInventoryGifts[0]; _root.diaName = 'DOKI'; _root.diaDialog = 'Kamsahamnida!'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } button 1532 { on (rollOut) { itemdesc._visible = false; } on (rollOver) { itemdesc._visible = true; _root.varItemName = 'ENERGY DRINK'; _root.varItemDesc = 'Time to energize!\nYou have: ' + _root.statsInventoryGifts[1]; } on (release) { var cost = 15; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; ++_root.statsInventoryGifts[1]; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); _root.funcDisMoneyUpdate(); _root.varItemDesc = 'Time to energize!\nYou have: ' + _root.statsInventoryGifts[1]; _root.diaName = 'DOKI'; _root.diaDialog = 'Kamsahamnida!'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } button 1533 { on (rollOut) { itemdesc._visible = false; } on (rollOver) { itemdesc._visible = true; _root.varItemName = 'CHOCOLATE'; _root.varItemDesc = 'For a sweet-tooth.\nYou have: ' + _root.statsInventoryGifts[2]; } on (release) { var cost = 20; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; ++_root.statsInventoryGifts[2]; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); _root.funcDisMoneyUpdate(); _root.varItemDesc = 'For a sweet-tooth.\nYou have: ' + _root.statsInventoryGifts[2]; _root.diaName = 'DOKI'; _root.diaDialog = 'Kamsahamnida!'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } button 1534 { on (rollOut) { itemdesc._visible = false; } on (rollOver) { itemdesc._visible = true; _root.varItemName = 'FLOWERS'; _root.varItemDesc = 'A fresh bundle.\nYou have: ' + _root.statsInventoryGifts[3]; } on (release) { var cost = 40; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; ++_root.statsInventoryGifts[3]; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); _root.funcDisMoneyUpdate(); _root.varItemDesc = 'A fresh bundle.\nYou have: ' + _root.statsInventoryGifts[3]; _root.diaName = 'DOKI'; _root.diaDialog = 'Kamsahamnida!'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } button 1535 { on (rollOut) { itemdesc._visible = false; } on (rollOver) { itemdesc._visible = true; _root.varItemName = 'HIGH-HEELS'; _root.varItemDesc = 'Simply classy.\nYou have: ' + _root.statsInventoryGifts[4]; } on (release) { var cost = 70; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; ++_root.statsInventoryGifts[4]; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); _root.funcDisMoneyUpdate(); _root.varItemDesc = 'Simply classy.\nYou have: ' + _root.statsInventoryGifts[4]; _root.diaName = 'DOKI'; _root.diaDialog = 'Kamsahamnida!'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } button 1536 { on (rollOut) { itemdesc._visible = false; } on (rollOver) { itemdesc._visible = true; _root.varItemName = 'PLUSH TOY'; _root.varItemDesc = 'Cute and fluffy.\nYou have: ' + _root.statsInventoryGifts[5]; } on (release) { var cost = 50; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; ++_root.statsInventoryGifts[5]; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); _root.funcDisMoneyUpdate(); _root.varItemDesc = 'Cute and fluffy.\nYou have: ' + _root.statsInventoryGifts[5]; _root.diaName = 'DOKI'; _root.diaDialog = 'Kamsahamnida!'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } movieClip 1541 { } movieClip 1544 { frame 1 { stop(); } } button 1550 { on (release) { _root.guiMain._visible = true; gotoAndStop(1); } } movieClip 1554 { frame 8 { stop(); } } movieClip 1558 { frame 10 { stop(); } } movieClip 1562 { } movieClip 1566 { } movieClip 1568 { } movieClip 1571 { } movieClip 1574 { } movieClip 1578 { } movieClip 1581 { } movieClip 1582 { } movieClip 1584 { } // unknown tag 88 length 107 movieClip 1588 { } movieClip 1589 { frame 1 { stop(); } } button 1590 { on (release) { var cost = 500; var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'flash') { ispurchased = true; } ++i; } if (!ispurchased) { if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'flash'; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); item1.gotoAndStop('soldanim'); _root.funcDisMoneyUpdate(); itemdesc._visible = false; _root.diaName = 'AWESOME SNAKE'; _root.diaDialog = 'Oh my god NICE BUY! Meryl\'s hot... Metal Gear.'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } on (rollOut) { itemdesc._visible = false; } on (rollOver) { var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'flash') { ispurchased = true; } ++i; } if (!ispurchased) { itemdesc._visible = true; _root.varItemName = 'ADOBE FLASH'; _root.varItemDesc = 'A program needed to create content like animations and games.'; } } } button 1593 { on (release) { var cost = 500; var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'photoshop') { ispurchased = true; } ++i; } if (!ispurchased) { if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'photoshop'; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); item2.gotoAndStop('soldanim'); _root.funcDisMoneyUpdate(); itemdesc._visible = false; _root.diaName = 'AWESOME SNAKE'; _root.diaDialog = 'Oh my god NICE BUY! Meryl\'s hot... Metal Gear.'; _root.statsFlash += _root.tuneFlashAbilityUpgrades[0]; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } on (rollOut) { itemdesc._visible = false; } on (rollOver) { var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'photoshop') { ispurchased = true; } ++i; } if (!ispurchased) { itemdesc._visible = true; _root.varItemName = 'ADOBE PHOTOSHOP'; _root.varItemDesc = 'Professional art program.\n[FLASH skill +' + _root.tuneFlashAbilityUpgrades[0] + ']'; } } } button 1594 { on (release) { var cost = 750; var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'wacom') { ispurchased = true; } ++i; } if (!ispurchased) { if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'wacom'; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); item3.gotoAndStop('soldanim'); _root.funcDisMoneyUpdate(); itemdesc._visible = false; _root.diaName = 'AWESOME SNAKE'; _root.diaDialog = 'Oh my god NICE BUY! Meryl\'s hot... Metal Gear.'; _root.statsFlash += _root.tuneFlashAbilityUpgrades[1]; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } on (rollOut) { itemdesc._visible = false; } on (rollOver) { var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'wacom') { ispurchased = true; } ++i; } if (!ispurchased) { itemdesc._visible = true; _root.varItemName = 'WACOM TABLET'; _root.varItemDesc = 'Make digital art like the pros.\n[FLASH skill +' + _root.tuneFlashAbilityUpgrades[1] + ']'; } } } button 1599 { on (release) { var cost = 650; var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'watch') { ispurchased = true; } ++i; } if (!ispurchased) { if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'watch'; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); item1.gotoAndStop('soldanim'); _root.funcDisMoneyUpdate(); itemdesc._visible = false; _root.diaName = '(NARRATOR)'; _root.diaDialog = 'Buckle your pants! Buckle your pants!'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } on (rollOut) { itemdesc._visible = false; } on (rollOver) { var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'watch') { ispurchased = true; } ++i; } if (!ispurchased) { itemdesc._visible = true; _root.varItemName = 'GOLDEN WATCH'; _root.varItemDesc = 'Show the world all your \nwealth on your wrists.'; } } } button 1601 { on (release) { var cost = 1500; var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'ring') { ispurchased = true; } ++i; } if (!ispurchased) { if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'ring'; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); item2.gotoAndStop('soldanim'); _root.funcDisMoneyUpdate(); itemdesc._visible = false; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } on (rollOut) { itemdesc._visible = false; } on (rollOver) { var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'ring') { ispurchased = true; } ++i; } if (!ispurchased) { itemdesc._visible = true; _root.varItemName = 'DIAMOND RING'; _root.varItemDesc = 'Shinier than ten \npaychecks combined.'; } } } button 1607 { on (release) { var cost = 265; var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'spacepart1') { ispurchased = true; } ++i; } if (!ispurchased) { if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'spacepart1'; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); item1.gotoAndStop('soldanim'); _root.funcDisMoneyUpdate(); itemdesc._visible = false; _root.diaName = 'SALAD FINGERS'; _root.diaDialog = 'Thank you for buying, but I think it would better... Rusted-'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } on (rollOut) { itemdesc._visible = false; } on (rollOver) { var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'spacepart1') { ispurchased = true; } ++i; } if (!ispurchased) { itemdesc._visible = true; _root.varItemName = 'COSMIC JUNK'; _root.varItemDesc = 'Seems to be out of this world.'; } } } button 1609 { on (release) { var cost = 950; var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'moonspeak') { ispurchased = true; } ++i; } if (!ispurchased) { if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.statsInventoryKey[_root.statsInventoryKey.length] = 'moonspeak'; this.attachMovie('fxPurchased', 'fxbought', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); item2.gotoAndStop('soldanim'); _root.funcDisMoneyUpdate(); itemdesc._visible = false; _root.diaName = 'SALAD FINGERS'; _root.diaDialog = 'Thank you for buying, but I think it would better... Rusted-'; } else { this.attachMovie('fxPoor', 'fxtooPoor', this.getNextHighestDepth(), {'_x': _level0._xmouse, '_y': _level0._ymouse}); } } } on (rollOut) { itemdesc._visible = false; } on (rollOver) { var ispurchased = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'moonspeak') { ispurchased = true; } ++i; } if (!ispurchased) { itemdesc._visible = true; _root.varItemName = 'MOON-$P3@K DEVICE'; _root.varItemDesc = 'No one knows how it works, but it does!'; } } } movieClip 1614 { frame 1 { stop(); } frame 2 { _root.guiMain._visible = false; } instance of movieClip 1488 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('doki'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance itemdesc of movieClip 1541 { onClipEvent (load) { this._visible = false; } } frame 3 { _root.guiMain._visible = false; } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('snake'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance item1 of movieClip 1589 { onClipEvent (load) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'flash') { this.gotoAndStop('sold'); break; } else { this.gotoAndStop('flash'); } ++i; } } } instance item2 of movieClip 1589 { onClipEvent (load) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'photoshop') { this.gotoAndStop('sold'); break; } else { this.gotoAndStop('photoshop'); } ++i; } } } instance item3 of movieClip 1589 { onClipEvent (load) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'wacom') { this.gotoAndStop('sold'); break; } else { this.gotoAndStop('wacom'); } ++i; } } } frame 4 { _root.guiMain._visible = false; } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('hatty'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance item1 of movieClip 1589 { onClipEvent (load) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'watch') { this.gotoAndStop('sold'); break; } else { this.gotoAndStop('watch'); } ++i; } } } instance item2 of movieClip 1589 { onClipEvent (load) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'ring') { this.gotoAndStop('sold'); break; } else { this.gotoAndStop('ring'); } ++i; } } } frame 5 { _root.guiMain._visible = false; } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('salad'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance item1 of movieClip 1589 { onClipEvent (load) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'spacepart1') { this.gotoAndStop('sold'); break; } else { this.gotoAndStop('spacepart1'); } ++i; } } } instance item2 of movieClip 1589 { onClipEvent (load) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'moonspeak') { this.gotoAndStop('sold'); break; } else { this.gotoAndStop('moonspeak'); } ++i; } } } } movieClip 1621 { frame 5 { stop(); } } button 1623 { on (rollOver) { _root.guiActionDesc = 'DRINK // Cheers! (CHARM+)'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('drink'); } } button 1624 { on (rollOver) { _root.guiActionDesc = 'WOO // Nene'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _parent.gotoAndStop('girl-bar'); } } movieClip 1634 { frame 5 { stop(); } } button 1637 { on (rollOver) { _root.guiActionDesc = 'PART-TIME JOB // Stand-Up Comedian'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('standup'); } } movieClip 1646 { frame 5 { stop(); } } button 1647 { on (rollOver) { _root.guiActionDesc = 'PART-TIME JOB // Stand-Up Comedian'; } on (rollOut) { _root.guiActionDesc = ''; } } movieClip 1652 { frame 5 { stop(); } } button 1653 { on (rollOver) { _root.guiActionDesc = 'DRINK // Cheers! (CHARM+)'; } on (rollOut) { _root.guiActionDesc = ''; } } button 1654 { on (rollOver) { BarMenuDesc.gotoAndStop(2); } on (rollOut) { BarMenuDesc.gotoAndStop(1); } on (release) { var cost = 10; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.diaName = 'BARTENDER ASSHOLE'; _root.diaDialog = 'Confucius say, you drink, you pay, you get the fuck out.'; _parent.actionBar.gotoAndPlay('drink'); _root.varLerpStat = _root.statsCharm; _root.varLerpStatDis = _root.statsCharm; _root.statsCharm += int(Math.random() * 4 + 2); _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'HUM'; _root.statsHum += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 3) { gotoAndStop('night'); } else { if (_root.statsTime == 2) { gotoAndStop('noon'); } else { if (_root.statsTime == 1) { gotoAndStop('morning'); } } } } else { BarMenuDesc.gotoAndStop('nomoney'); BarMenuDesc.NGUMoola.gotoAndPlay(1); } } } button 1655 { on (rollOver) { BarMenuDesc.gotoAndStop(3); } on (rollOut) { BarMenuDesc.gotoAndStop(1); } on (release) { var cost = 30; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.diaName = 'BARTENDER ASSHOLE'; _root.diaDialog = 'Confucius say, you drink, you pay, you get the fuck out.'; _parent.actionBar.gotoAndPlay('drink'); _root.varLerpStat = _root.statsCharm; _root.varLerpStatDis = _root.statsCharm; _root.statsCharm += int(Math.random() * 4 + 4); _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'HUM'; _root.statsHum += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 3) { gotoAndStop('night'); } else { if (_root.statsTime == 2) { gotoAndStop('noon'); } else { if (_root.statsTime == 1) { gotoAndStop('morning'); } } } } else { BarMenuDesc.gotoAndStop('nomoney'); BarMenuDesc.NGUMoola.gotoAndPlay(1); } } } button 1659 { on (rollOver) { BarMenuDesc.gotoAndStop(4); } on (rollOut) { BarMenuDesc.gotoAndStop(1); } on (release) { var cost = 55; if (_root.statsMoney >= cost) { _root.statsMoney -= cost; _root.diaName = 'BARTENDER ASSHOLE'; _root.diaDialog = 'Confucius say, you drink, you pay, you get the fuck out.'; _parent.actionBar.gotoAndPlay('drink'); _root.varLerpStat = _root.statsCharm; _root.varLerpStatDis = _root.statsCharm; _root.statsCharm += int(Math.random() * 4 + 7); _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'HUM'; _root.statsHum += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 3) { gotoAndStop('night'); } else { if (_root.statsTime == 2) { gotoAndStop('noon'); } else { if (_root.statsTime == 1) { gotoAndStop('morning'); } } } } else { BarMenuDesc.gotoAndStop('nomoney'); BarMenuDesc.NGUMoola.gotoAndPlay(1); } } } movieClip 1676 { frame 1 { stop(); } } button 1677 { on (release) { if (_root.statsTime == 3) { gotoAndStop('night'); } else { if (_root.statsTime == 2) { gotoAndStop('noon'); } else { if (_root.statsTime == 1) { gotoAndStop('morning'); } } } } } button 1678 { on (rollOver) { StandupMenuDesc.gotoAndStop(2); } on (rollOut) { StandupMenuDesc.gotoAndStop(1); } on (release) { _root.diaName = 'BLOCKHEAD'; _root.diaDialog = 'You can make people laugh by- *suddenly fits fist into mouth*'; _parent.actionBar.gotoAndPlay('standup'); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varTip = _root.funcTip(_root.statsHum); _root.varPay = _root.funcRandom(20, 45) + _root.varTip; _root.varPayMax = 125; _root.statsMoney += _root.varPay; _root.varPerUpValue = _root.funcRandom(0, _root.statsPerUpMax); _root.varPerUp = 'HUM'; _root.statsHum += _root.varPerUpValue; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 3) { gotoAndStop('night'); } else { if (_root.statsTime == 2) { gotoAndStop('noon'); } else { if (_root.statsTime == 1) { gotoAndStop('morning'); } } } } } movieClip 1685 { frame 1 { stop(); } } movieClip 1686 { frame 1 { stop(); } } movieClip 1690 { } movieClip 1691 { } movieClip 1697 { instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsMax / _root.statsCharm); } } instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsMax / _root.varLerpStat); } } } button 1699 { on (release) { _root.guiMain._visible = true; gotoAndStop(1); } } movieClip 1704 { } movieClip 1705 { frame 1 { stop(); } frame 2 { _root.guiMain._visible = false; } instance of movieClip 1691 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('samurai'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.statsCharm; var lerpFriction = 5; var fxXMin = 455; var fxXMax = 655; var fxYMin = 330; var fxYMax = 375; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxStatsAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } frame 15 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } frame 17 { _root.guiMain._visible = false; } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.varPay; var lerpFriction = 10; var fxXMin = 440; var fxXMax = 740; var fxYMin = 335; var fxYMax = 380; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('blockhead'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { _root.varLerpStat = 0; _root.varLerpStatDis = 0; var chosenVariable = _root.varPay - _root.varTip; var lerpFriction = 5; var fxXMin = 625; var fxXMax = 715; var fxYMin = 295; var fxYMax = 380; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '$0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); fxCurrent += 5; ++statgain; _root.varStatGain = '$' + statgain; } } } frame 58 { stop(); } instance of movieClip 883 { onClipEvent (load) { if (_root.varPerUpValue > 0) { this._visible = true; } else { this._visible = false; } } } } movieClip 1714 { frame 5 { stop(); } } button 1716 { on (rollOver) { _root.guiActionDesc = 'CAREER // NG Servant'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { gotoAndStop('work'); } } button 1717 { on (rollOver) { _root.guiActionDesc = 'WOO // Trish'; } on (rollOut) { _root.guiActionDesc = ''; } on (release) { _parent.gotoAndStop('girl-bbs'); } } movieClip 1726 { frame 5 { stop(); } } button 1727 { on (rollOver) { _root.guiActionDesc = 'CAREER // NG Servant'; } on (rollOut) { _root.guiActionDesc = ''; } } button 1728 { on (rollOver) { BBSMenuDesc.gotoAndStop(2); } on (rollOut) { BBSMenuDesc.gotoAndStop(1); } on (release) { _root.diaName = 'STRAWBERRY CLOCK'; _root.diaDialog = 'You are my loyal servant! Don\'t forget I am the King!'; _parent.actionBBS.gotoAndPlay('work'); _root.varLerpStat = 0; _root.varLerpStatDis = 0; _root.varTip = 0; _root.varPay = _root.funcBBSJobWage(); _root.varPayMax = 450; _root.varIsOvertime = false; _root.statsMoney += _root.varPay; _root.funcUpdateTime(1); _root.funcDisMoneyUpdate(); if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } button 1729 { on (rollOver) { if (_root.statsBBSRank < _root.listBBSRanks.length - 1) { BBSMenuDesc.gotoAndStop(4); } else { BBSMenuDesc.gotoAndStop(1); } } on (rollOut) { BBSMenuDesc.gotoAndStop(1); } on (release) { if (_root.statsBBSRank < _root.listBBSRanks.length - 1) { if (_root.statsGrade >= _root.listPromoGradeReqBBS[_root.statsBBSRank]) { _root.funcBBSPromotionCalculate(); _root.diaName = 'STRAWBERRY CLOCK'; _root.diaDialog = '...'; _parent.actionBBS.gotoAndPlay('promotion'); _root.funcUpdateTime(1); if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } else { BBSMenuDesc.gotoAndStop(6); BBSMenuDesc.BBSNoGrade.gotoAndPlay(1); } } else { BBSMenuDesc.gotoAndStop(5); BBSMenuDesc.BBSMax.gotoAndPlay(1); } } } movieClip 1734 { } movieClip 1745 { frame 1 { disReqGrade = _root.listGrades[_root.listPromoGradeReqBBS[_root.statsBBSRank]]; } } movieClip 1746 { frame 5 { stop(); } } movieClip 1751 { frame 1 { stop(); } frame 4 { var stattotal = _root.statsBrains + _root.statsCharm; if (_root.statsBBSRank == 9) { minimumstat = 'MAX'; } else { minimumstat = _root.listPromoReqBBS[_root.statsBBSRank]; } var calculatechance = (stattotal - _root.listPromoReqBBS[_root.statsBBSRank]) / (_root.listPromoReqBBS[_root.statsBBSRank + 1] - _root.listPromoReqBBS[_root.statsBBSRank]); if (calculatechance * 100 <= 0) { chance = '0%'; } else { if (calculatechance * 100 >= 100) { chance = '100%'; } else { chance = Math.round(calculatechance * 100) + '%'; } } minimumgrade = _root.listGrades[_root.listPromoGradeReqBBS[_root.statsBBSRank]]; } frame 6 { var stattotal = _root.statsBrains + _root.statsCharm; if (_root.statsBBSRank == 9) { minimumstat = 'MAX'; } else { minimumstat = _root.listPromoReqBBS[_root.statsBBSRank]; } var calculatechance = (stattotal - _root.listPromoReqBBS[_root.statsBBSRank]) / (_root.listPromoReqBBS[_root.statsBBSRank + 1] - _root.listPromoReqBBS[_root.statsBBSRank]); if (calculatechance * 100 <= 0) { chance = '0%'; } else { if (calculatechance * 100 >= 100) { chance = '100%'; } else { chance = Math.round(calculatechance * 100) + '%'; } } minimumgrade = _root.listGrades[_root.listPromoGradeReqBBS[_root.statsBBSRank]]; disGrade = _root.listGrades[_root.statsGrade]; } } button 1752 { on (release) { gotoAndStop(1); } } movieClip 1755 { frame 1 { stop(); } frame 3 { disJobRank = _root.listBBSRanks[_root.statsBBSRank]; } instance of movieClip 1193 { onClipEvent (load) { this.gotoAndStop(_root.statsBBSRank + 1); } } } movieClip 1759 { } movieClip 1760 { } movieClip 1764 { } button 1765 { on (release) { _root.guiMain._visible = true; gotoAndStop(1); } } movieClip 1766 { frame 1 { stop(); } frame 2 { _root.guiMain._visible = false; } instance of movieClip 1760 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 437 { onClipEvent (load) { var chosenVariable = _root.varPay; var lerpFriction = 10; var fxXMin = 440; var fxXMax = 740; var fxYMin = 335; var fxYMax = 380; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '+0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); ++fxCurrent; ++statgain; _root.varStatGain = '+' + statgain; } } } frame 33 { jobResults.gotoAndPlay('workbbs'); } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('strawberry'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 437 { onClipEvent (load) { _root.varLerpStat = 0; _root.varLerpStatDis = 0; var chosenVariable = _root.varPay - _root.varTip; var lerpFriction = 5; var fxXMin = 625; var fxXMax = 715; var fxYMin = 295; var fxYMax = 380; var fxX = 0; var fxY = 0; var fxCurrent = int(_root.varLerpStat + 1); var statgain = 0; _root.varStatGain = '$0'; } onClipEvent (enterFrame) { _root.varLerpStat += (chosenVariable - _root.varLerpStat) / lerpFriction; _root.varLerpStatDis = '$' + Math.round(_root.varLerpStat); if (Math.round(_root.varLerpStat) >= fxCurrent) { fxX = int(Math.random() * (fxXMax - fxXMin) + fxXMin); fxY = int(Math.random() * (fxYMax - fxYMin) + fxYMin); this.attachMovie('fxMoneyAddOne', 'fxaddOne', this.getNextHighestDepth(), {'_x': fxX, '_y': fxY}); fxCurrent += 10; ++statgain; _root.varStatGain = '$' + statgain; } } } frame 43 { stop(); } frame 45 { _root.guiMain._visible = false; } instance of movieClip 1760 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 66 { if (_root.varIsPromoted) { _root.diaName = 'STRAWBERRY CLOCK'; _root.diaDialog = 'You have pleased your king! Perhaps you will save the portal someday like I did!'; promotionresults.gotoAndPlay('successbbs'); } else { _root.diaName = 'STRAWBERRY CLOCK'; _root.diaDialog = 'What is wrong with you?! Your king IS NOT HAPPY!'; promotionresults.gotoAndPlay('failbbs'); } } instance of movieClip 853 { onClipEvent (load) { this.gotoAndStop('strawberry'); var velocityx = 0; var friction = _root.frictionCharacter; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 76 { stop(); } } movieClip 1771 { } movieClip 1780 { } movieClip 1781 { } movieClip 1790 { frame 1 { stop(); } } button 1792 { on (release) { _root.guiMain._visible = true; _root.funcUpdateTime(1); _parent.gotoAndStop('art'); } } button 1797 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; var talkadd = _root.girlRPAddTalk + _root.statsCharm / _root.girlCharmFriction; girlGive.gotoAndStop(1); if (_root.varGirlIsUpgrading) { if (relationshiplevel == 0) { _parent.cutsceneAllie.gotoAndStop('level0'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('normal'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; _root.statsGirlHeartLevel[_root.varChosenGirl][1] = _root.statsGirlLevel2RPReq; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } else { if (relationshiplevel == 2) { _parent.cutsceneAllie.gotoAndStop('dateaccept'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('blushhappy'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } else { if (!_root.varGirlTalked) { _root.diaName = 'ALLIE'; _root.diaDialog = _root.diaAllieTalk[relationshiplevel][_root.funcRandom(0, 2)]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel == 1 || relationshiplevel == 2) { charaGirl.gotoAndStop('normal'); } } girlDia.gotoAndPlay(2); _root.varGirlTalked = true; if (relationshiplevel >= 3) { girlDia.gotoAndStop(1); girlAsk.gotoAndStop(2); _root.varGirlIsAsking = true; } if (relationshiplevel <= 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += talkadd; fxHeartUp.gotoAndPlay(2); } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] = _root.statsGirlHeartLevel[_root.varChosenGirl][1]; } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { if (relationshiplevel == 0 || relationshiplevel == 2) { _root.diaName = 'ALLIE'; _root.diaDialog = _root.diaAllieUp[relationshiplevel]; girlDia.gotoAndPlay('alert'); charaGirl.gotoAndStop('blush'); _root.varGirlIsUpgrading = true; _root.varGirlTalked = false; } } } } } } button 1801 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; _root.diaName = 'ALLIE'; _root.diaDialog = _root.diaAllieGive[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } if (relationshiplevel == 0) { girlDia.gotoAndPlay(2); } else { if (relationshiplevel >= 1 && _root.varGirlIsAsking == false) { if (girlGive._currentframe == 2) { girlGive.gotoAndStop(1); } else { girlGive.gotoAndStop(2); } girlDia.gotoAndStop(1); } } } } button 1805 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; girlGive.gotoAndStop(1); _root.diaName = 'ALLIE'; _root.diaDialog = _root.diaAllieDate[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel >= 1) { charaGirl.gotoAndStop('blush'); } } if (_root.varGirlIsAsking == false) { girlDia.gotoAndPlay(2); if (relationshiplevel >= 3) { dateTransition.gotoAndStop(2); } } } } button 1810 { on (release) { _root.guiCellphone.gotoAndPlay(2); } } movieClip 1825 { frame 7 { stop(); } } movieClip 1829 { frame 1 { stop(); } frame 8 { stop(); } frame 16 { stop(); } frame 24 { stop(); } frame 30 { stop(); } frame 37 { stop(); } frame 44 { stop(); } frame 51 { stop(); } frame 60 { stop(); } frame 67 { stop(); } } movieClip 1832 { } movieClip 1833 { } movieClip 1834 { frame 1 { stop(); } } button 1839 { on (release) { _root.diaDialog = girlanswer0; _parent.girlDia.gotoAndPlay(2); _root.varGirlIsAsking = false; gotoAndStop(1); } } button 1840 { on (release) { _root.diaDialog = girlanswer1; _parent.girlDia.gotoAndPlay(2); _root.varGirlIsAsking = false; gotoAndStop(1); } } button 1841 { on (release) { _root.diaDialog = girlanswer2; _parent.girlDia.gotoAndPlay(2); _root.varGirlIsAsking = false; gotoAndStop(1); } } movieClip 1845 { frame 1 { stop(); } frame 2 { var questionarray = new Array(); var i = 0; while (i < _root.diaAllieFacts.length) { questionarray[i] = i; ++i; } chosenQuestions = new Array(); var diceroll = _root.funcRandom(0, questionarray.length - 1); chosenQuestions[0] = questionarray[diceroll]; questionarray.splice(diceroll, 1); diceroll = _root.funcRandom(0, questionarray.length - 1); chosenQuestions[1] = questionarray[diceroll]; questionarray.splice(diceroll, 1); diceroll = _root.funcRandom(0, questionarray.length - 1); chosenQuestions[2] = questionarray[diceroll]; questionarray.splice(diceroll, 1); girlanswer0 = ''; girlanswer1 = ''; girlanswer2 = ''; if (_root.varChosenGirl == 0) { question0 = _root.diaTrishAsk[chosenQuestions[0]]; question1 = _root.diaTrishAsk[chosenQuestions[1]]; question2 = _root.diaTrishAsk[chosenQuestions[2]]; girlanswer0 = _root.diaTrishFacts[chosenQuestions[0]]; girlanswer1 = _root.diaTrishFacts[chosenQuestions[1]]; girlanswer2 = _root.diaTrishFacts[chosenQuestions[2]]; } else { if (_root.varChosenGirl == 1) { question0 = _root.diaDonnaAsk[chosenQuestions[0]]; question1 = _root.diaDonnaAsk[chosenQuestions[1]]; question2 = _root.diaDonnaAsk[chosenQuestions[2]]; girlanswer0 = _root.diaDonnaFacts[chosenQuestions[0]]; girlanswer1 = _root.diaDonnaFacts[chosenQuestions[1]]; girlanswer2 = _root.diaDonnaFacts[chosenQuestions[2]]; } else { if (_root.varChosenGirl == 2) { question0 = _root.diaBreeAsk[chosenQuestions[0]]; question1 = _root.diaBreeAsk[chosenQuestions[1]]; question2 = _root.diaBreeAsk[chosenQuestions[2]]; girlanswer0 = _root.diaBreeFacts[chosenQuestions[0]]; girlanswer1 = _root.diaBreeFacts[chosenQuestions[1]]; girlanswer2 = _root.diaBreeFacts[chosenQuestions[2]]; } else { if (_root.varChosenGirl == 3) { question0 = _root.diaAllieAsk[chosenQuestions[0]]; question1 = _root.diaAllieAsk[chosenQuestions[1]]; question2 = _root.diaAllieAsk[chosenQuestions[2]]; girlanswer0 = _root.diaAllieFacts[chosenQuestions[0]]; girlanswer1 = _root.diaAllieFacts[chosenQuestions[1]]; girlanswer2 = _root.diaAllieFacts[chosenQuestions[2]]; } else { if (_root.varChosenGirl == 4) { question0 = _root.diaNeneAsk[chosenQuestions[0]]; question1 = _root.diaNeneAsk[chosenQuestions[1]]; question2 = _root.diaNeneAsk[chosenQuestions[2]]; girlanswer0 = _root.diaNeneFacts[chosenQuestions[0]]; girlanswer1 = _root.diaNeneFacts[chosenQuestions[1]]; girlanswer2 = _root.diaNeneFacts[chosenQuestions[2]]; } else { if (_root.varChosenGirl == 5) { question0 = _root.diaHunniAsk[chosenQuestions[0]]; question1 = _root.diaHunniAsk[chosenQuestions[1]]; question2 = _root.diaHunniAsk[chosenQuestions[2]]; girlanswer0 = _root.diaHunniFacts[chosenQuestions[0]]; girlanswer1 = _root.diaHunniFacts[chosenQuestions[1]]; girlanswer2 = _root.diaHunniFacts[chosenQuestions[2]]; } } } } } } } } movieClip 1854 { frame 1 { stop(); } } movieClip 1861 { frame 1 { stop(); } } movieClip 1862 { instance of movieClip 1854 { onClipEvent (enterFrame) { this.gotoAndStop(_root.statsGirlRLevel[_root.varChosenGirl] + 2); } } instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsGirlHeartLevel[_root.varChosenGirl][1] / _root.statsGirlHeartLevel[_root.varChosenGirl][0]); } } instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsGirlHeartLevel[_root.varChosenGirl][1] / _root.statsGirlHeartLevel[_root.varChosenGirl][0]); } } instance of movieClip 831 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.statsGirlHeartLevel[_root.varChosenGirl][1] / _root.statsGirlHeartLevel[_root.varChosenGirl][0]); } } instance of movieClip 1854 { onClipEvent (enterFrame) { this.gotoAndStop(_root.statsGirlRLevel[_root.varChosenGirl] + 1); } } instance of movieClip 1861 { onClipEvent (enterFrame) { this.gotoAndStop(_root.statsGirlRLevel[_root.varChosenGirl] + 1); } } } movieClip 1864 { frame 1 { stop(); } frame 2 { _root.funcDisRelationUpdate(); } frame 50 { stop(); } } button 1866 { on (release) { var numid = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[2]; } else { if (_root.varChosenGirl == 1) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 3) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 4) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 5) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } } } } } } --_root.statsInventoryGifts[numid]; _parent.fxHeartUp.gotoAndPlay(2); _parent.charaGirl.gotoAndStop('gift'); _parent.girlDia.gotoAndPlay(2); gotoAndStop(1); } } } button 1867 { on (release) { var numid = 1; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 1) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[2]; } else { if (_root.varChosenGirl == 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 3) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 4) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 5) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } } } } } } --_root.statsInventoryGifts[numid]; _parent.fxHeartUp.gotoAndPlay(2); _parent.charaGirl.gotoAndStop('gift'); _parent.girlDia.gotoAndPlay(2); gotoAndStop(1); } } } button 1868 { on (release) { var numid = 2; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 1) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[2]; } else { if (_root.varChosenGirl == 3) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 4) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 5) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } } } } } } --_root.statsInventoryGifts[numid]; _parent.fxHeartUp.gotoAndPlay(2); _parent.charaGirl.gotoAndStop('gift'); _parent.girlDia.gotoAndPlay(2); gotoAndStop(1); } } } button 1869 { on (release) { var numid = 3; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 1) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 3) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[2]; } else { if (_root.varChosenGirl == 4) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 5) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } } } } } } --_root.statsInventoryGifts[numid]; _parent.fxHeartUp.gotoAndPlay(2); _parent.charaGirl.gotoAndStop('gift'); _parent.girlDia.gotoAndPlay(2); gotoAndStop(1); } } } button 1870 { on (release) { var numid = 4; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 1) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 3) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 4) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[2]; } else { if (_root.varChosenGirl == 5) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } } } } } } --_root.statsInventoryGifts[numid]; _parent.fxHeartUp.gotoAndPlay(2); _parent.charaGirl.gotoAndStop('gift'); _parent.girlDia.gotoAndPlay(2); gotoAndStop(1); } } } button 1871 { on (release) { var numid = 5; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 1) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 3) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[1]; } else { if (_root.varChosenGirl == 4) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[0]; } else { if (_root.varChosenGirl == 5) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += _root.statsGirlGiftLevels[2]; } } } } } } --_root.statsInventoryGifts[numid]; _parent.fxHeartUp.gotoAndPlay(2); _parent.charaGirl.gotoAndStop('gift'); _parent.girlDia.gotoAndPlay(2); gotoAndStop(1); } } } movieClip 1879 { frame 1 { stop(); } frame 2 { disGift0 = _root.statsInventoryGifts[0]; disGift1 = _root.statsInventoryGifts[1]; disGift2 = _root.statsInventoryGifts[2]; disGift3 = _root.statsInventoryGifts[3]; disGift4 = _root.statsInventoryGifts[4]; disGift5 = _root.statsInventoryGifts[5]; } } button 1880 { on (release) { play(); } } movieClip 1883 { } movieClip 1889 { frame 1 { stop(); } frame 3 { _parent._parent.soundBattle.gotoAndPlay(2); } frame 90 { _parent._parent.gotoAndStop('systemdate'); } } movieClip 1891 { } movieClip 1894 { } button 1898 { on (release) { var hasring = false; var i = 0; while (i < _root.statsInventoryKey.length + 1) { if (_root.statsInventoryKey[i] == 'ring') { hasring = true; } ++i; } if (!hasring) { girlDia.gotoAndPlay('reddouble'); _root.diaName = ''; _root.diaDialog = '[!] You need a wedding ring before you can do that!'; } else { fxpropose.gotoAndPlay(2); } } } movieClip 1901 { } button 1905 { on (release) { _root.guiMain._visible = true; _parent._parent.gotoAndStop(1); } } movieClip 1907 { frame 1 { stop(); } frame 2 { stopAllSounds(); if (_root.musicIsOn) { _root.musicWorldReset = true; _root.musicCurrentTrack = 96; _root.musicVictory.start(0.5, 0); } } frame 125 { stop(); } } movieClip 1908 { frame 1 { _root.varChosenGirl = 3; if (_root.statsGirlTaskActive[_root.varChosenGirl][4] == true) { btndate._visible = false; } else { btnpropose._visible = false; } } frame 1 { _root.guiMain._visible = false; _root.varChosenGirl = 3; _root.varGirlTalked = false; _root.varGirlIsUpgrading = false; _root.varGirlIsAsking = false; _root.funcDisRelationUpdate(); var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; if (relationshiplevel >= 3) { girlDia.gotoAndStop('stillbox'); _root.diaName = 'ALLIE'; _root.diaDialog = _root.diaAllieTalk[relationshiplevel][_root.funcRandom(0, 2)]; } } instance charaGirl of movieClip 1790 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 1834 { onClipEvent (enterFrame) { if (_root.statsAlertTask || _root.statsAlertText) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 1910 { } movieClip 1912 { } movieClip 1914 { } button 1915 { on (release) { nextFrame(); } } movieClip 1916 { frame 25 { stop(); } } button 1917 { on (release) { gotoAndStop(1); } } button 1918 { on (release) { _root.guiMain._visible = true; _parent.gotoAndStop(1); gotoAndStop(1); } } button 1919 { on (release) { _root.diaDialog = '...'; gotoAndStop(1); } } movieClip 1920 { frame 1 { stop(); } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-art'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 3 { _root.diaName = 'ALLIE'; } frame 3 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '... It\'s nice to finally meet a friendly human here...'; } frame 4 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... Everyone else keeps asking if I\'m really a girl... it\'s scary...'; } frame 5 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = '... But thanks for being nice...'; } frame 6 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... You see... I don\'t know anyone else here...'; } frame 7 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... I\'m from another planet... and crash landed here a month ago.'; } frame 8 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... My ship is missing pieces and I can\'t seem to find them.'; } frame 9 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '... So if you find any weird, cosmic looking parts, please let me see it!'; } frame 10 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Thank you again, kind human!'; } frame 11 { dialog.gotoAndPlay('note'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '[!] She will accept gifts now!'; } frame 12 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][0] = true; _root.statsGirlTasks.unshift('a1'); } frame 12 { dialog.gotoAndPlay('note'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-art'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 15 { _root.diaName = 'ALLIE'; } frame 15 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = 'Hey! What is that whirling sound coming from your pants...'; } frame 16 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '... It sounds so familiar...'; } frame 17 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Oh I know! It\'s a part of my ship!'; } frame 18 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Thank you for finding it for me, nice human!'; } frame 19 { dialog.gotoAndPlay('notedouble'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '[!] Raise your relationship a little more and maybe she\'ll date you!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-art'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 22 { _root.diaName = 'ALLIE'; } frame 22 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = '... A date? Is that something Earthlings do...?'; } frame 23 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = '... If you want to do that with me... I\'d love to...'; } frame 24 { dialog.gotoAndPlay('note'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = '[!] You can date her now!'; } frame 25 { dialog.gotoAndPlay('notedouble'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Your relationship can only increase from completing tasks from now on.'; } frame 26 { dialog.gotoAndPlay('notedouble'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Be sure to talk to her beforehand and get to know her a little better.'; } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 29 { _root.diaName = 'ALLIE'; } frame 29 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = '... Th-... That was lovely...'; } frame 30 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Although, I wouldn\'t have minded if we just stayed at the studio making crafts too...'; } frame 31 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = 'Speaking of crafts... I\'ve been meaning to ask you something...'; } frame 32 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = 'Some parts of my ship needs to be fixed...'; } frame 33 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = 'Would you be so kind and help me craft some of the parts at the studio?'; } frame 34 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Thank you so much... lovely human...'; } frame 35 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][1] = true; _root.statsGirlTasks.unshift('a2'); } frame 35 { dialog.gotoAndPlay('note'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-art'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 38 { _root.diaName = 'ALLIE'; } frame 38 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = 'Is that what I think it is...?'; } frame 39 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'It is! This component looks exactly right!'; } frame 40 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'I knew you were good with your hands...'; } frame 41 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'Sometimes I wonder how great you really could be with them...'; } frame 42 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Ermmm... Nevermind that! Thanks a bunch again... lovely human...'; } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 45 { _root.diaName = 'ALLIE'; } frame 45 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'I had such a lovely time...'; } frame 46 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'Maybe we could do something like this on my home planet...'; } frame 47 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... But I\'m starting to think I\'ll never go back...'; } frame 48 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... You see... The ship is almost ready...'; } frame 49 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... But I lost the keys somewhere on this planet!'; } frame 50 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... I must\'ve lost them somewhere when I was at the park.'; } frame 51 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... I was gardening all day so that must be how they fell out of my pocket...'; } frame 52 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '......'; } frame 53 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = '... But anyways... I had a lovely time again.'; } frame 54 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = '... If you happen to find my keys... Please let me know!'; } frame 55 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][2] = true; _root.statsGirlTasks.unshift('a3'); } frame 55 { dialog.gotoAndPlay('note'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-art'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 58 { _root.diaName = 'ALLIE'; } frame 58 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = 'I...I can\'t believe it...!'; } frame 59 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'You found it...! My keys...'; } frame 60 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'The ship still needs a little more work, but I feel so close to home now...'; } frame 61 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'So close...'; } frame 62 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Thank you so much... love...'; } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 65 { _root.diaName = 'ALLIE'; } frame 65 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = 'Ohh... what\'s wrong...?'; } frame 66 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '... I hope I didn\'t do anything wrong...'; } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 69 { _root.diaName = 'ALLIE'; } frame 69 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = 'So... this is what a Earth date is like?'; } frame 70 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = '... It was fun I guess... But I think I had enough for today... Thank you!'; } frame 71 { dialog.gotoAndPlay('reddouble'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '[!] If you\'re having trouble, try to improve your charm before dating again.'; } frame 72 { dialog.gotoAndPlay('redtriple'); charadiaAllie.gotoAndStop('normal'); _root.diaDialog = '[!] Try to impress her before she \ngets bored from talking too much or getting too many gifts.'; } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 75 { _root.diaName = 'ALLIE'; } frame 75 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'Ohh my... Thank you for the lovely evening...!'; } frame 76 { dialog.gotoAndPlay('notedouble'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Complete tasks to improve your releationship!'; } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 79 { _root.diaName = 'ALLIE'; } frame 79 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'Love... The ship needs one last thing...'; } frame 80 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'The last part of the engine... the flux capacitor needs to be looked at...'; } frame 81 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'It\'s a piece of advanced alien technology so I don\'t have a clue on how to fix it...'; } frame 82 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'And that\'s it... the ship will finally be finished... and I can go home...'; } frame 83 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = 'But... lately I\'ve been thinking that... Earth isn\'t such a bad place...'; } frame 84 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = 'I don\'t know what to do love...'; } frame 85 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = 'I don\'t know anymore...'; } frame 86 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][3] = true; _root.statsGirlTasks.unshift('a4'); } frame 86 { dialog.gotoAndPlay('note'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-art'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaAllie of movieClip 1790 { onClipEvent (load) { this.gotoAndStop('pico'); var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 89 { _root.diaName = 'ALLIE'; } frame 89 { dialog.gotoAndPlay('smallbox'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'Ohh, you know how to fix it...?'; } frame 90 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Y-you\'re... you\'re so amazing... love...'; } frame 91 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = 'So now... I can go home.. back to where I came from...'; } frame 92 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = 'But ummmm...'; } frame 93 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = 'Because of the way my ship works... I won\'t be able to come back for another 200 years...'; } frame 94 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = '...'; } frame 95 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('worried'); _root.diaDialog = 'I\'ll need a bit of time to get my stuff together but...'; } frame 96 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blush'); _root.diaDialog = '...Promise to see me before I go...?'; } frame 97 { dialog.gotoAndPlay('smallboxcontinue'); charadiaAllie.gotoAndStop('blushhappy'); _root.diaDialog = 'Thank you for everything... \n...loveliest human...<3'; } frame 98 { dialog.gotoAndPlay('note'); charadiaAllie._visible = false; _root.diaDialog = '[!] Maybe this shouldn\'t be the end?'; } frame 99 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][4] = true; _root.statsGirlTasks.unshift('a5'); } frame 99 { dialog.gotoAndPlay('notedouble'); charadiaAllie._visible = false; _root.diaDialog = '[!] Maybe you should prove how committed you are.'; } } movieClip 1921 { frame 1 { stop(); } frame 2 { stopAllSounds(); _root.guiMusicTrack._visible = false; if (_root.musicIsOn) { _root.musicWorldReset = true; _root.musicCurrentTrack = 97; _root.musicBattleIntro.start(0, 0); } } frame 335 { stopAllSounds(); if (_root.musicIsOn) { _root.musicWorldReset = true; _root.musicCurrentTrack = 97; _root.musicBattle.start(0, 100); } stop(); } } movieClip 1924 { } movieClip 1925 { } movieClip 1933 { } movieClip 1934 { } movieClip 1943 { frame 1 { stop(); } } button 1944 { on (release) { _root.guiMain._visible = true; _root.funcUpdateTime(1); _parent.gotoAndStop('park'); } } button 1945 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; var talkadd = _root.girlRPAddTalk + _root.statsCharm / _root.girlCharmFriction; girlGive.gotoAndStop(1); if (_root.varGirlIsUpgrading) { if (relationshiplevel == 0) { _parent.cutsceneBree.gotoAndStop('level0'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('normal'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; _root.statsGirlHeartLevel[_root.varChosenGirl][1] = _root.statsGirlLevel2RPReq; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } else { if (relationshiplevel == 2) { _parent.cutsceneBree.gotoAndStop('dateaccept'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('blushhappy'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } else { if (!_root.varGirlTalked) { _root.diaName = 'BREE'; _root.diaDialog = _root.diaBreeTalk[relationshiplevel][_root.funcRandom(0, 2)]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel == 1 || relationshiplevel == 2) { charaGirl.gotoAndStop('normal'); } } girlDia.gotoAndPlay(2); _root.varGirlTalked = true; if (relationshiplevel >= 3) { girlDia.gotoAndStop(1); girlAsk.gotoAndStop(2); _root.varGirlIsAsking = true; } if (relationshiplevel <= 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += talkadd; fxHeartUp.gotoAndPlay(2); } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] = _root.statsGirlHeartLevel[_root.varChosenGirl][1]; } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { if (relationshiplevel == 0 || relationshiplevel == 2) { _root.diaName = 'BREE'; _root.diaDialog = _root.diaBreeUp[relationshiplevel]; girlDia.gotoAndPlay('alert'); charaGirl.gotoAndStop('blush'); _root.varGirlIsUpgrading = true; _root.varGirlTalked = false; } } } } } } button 1946 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; _root.diaName = 'BREE'; _root.diaDialog = _root.diaBreeGive[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } if (relationshiplevel == 0) { girlDia.gotoAndPlay(2); } else { if (relationshiplevel >= 1 && _root.varGirlIsAsking == false) { if (girlGive._currentframe == 2) { girlGive.gotoAndStop(1); } else { girlGive.gotoAndStop(2); } girlDia.gotoAndStop(1); } } } } button 1947 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; girlGive.gotoAndStop(1); _root.diaName = 'BREE'; _root.diaDialog = _root.diaBreeDate[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel >= 1) { charaGirl.gotoAndStop('blush'); } } if (_root.varGirlIsAsking == false) { girlDia.gotoAndPlay(2); if (relationshiplevel >= 3) { dateTransition.gotoAndStop(2); } } } } movieClip 1949 { frame 1 { _root.varChosenGirl = 2; if (_root.statsGirlTaskActive[_root.varChosenGirl][4] == true) { btndate._visible = false; } else { btnpropose._visible = false; } } frame 1 { _root.guiMain._visible = false; _root.varChosenGirl = 2; _root.varGirlTalked = false; _root.varGirlIsUpgrading = false; _root.varGirlIsAsking = false; _root.funcDisRelationUpdate(); var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; if (relationshiplevel >= 3) { girlDia.gotoAndStop('stillbox'); _root.diaName = 'BREE'; _root.diaDialog = _root.diaTrishTalk[relationshiplevel][_root.funcRandom(0, 2)]; } } instance charaGirl of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 1834 { onClipEvent (enterFrame) { if (_root.statsAlertTask || _root.statsAlertText) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } button 1950 { on (release) { gotoAndStop(1); } } button 1951 { on (release) { _root.guiMain._visible = true; _parent.gotoAndStop(1); gotoAndStop(1); } } button 1952 { on (release) { _root.diaDialog = '...'; gotoAndStop(1); } } movieClip 1953 { frame 1 { stop(); } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-park'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 3 { _root.diaName = 'BREE'; } frame 3 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'A date? What is this date?'; } frame 4 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'There\'ll be food?! Let me come!'; } frame 5 { dialog.gotoAndPlay('note'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = '[!] You can date her now!'; } frame 6 { dialog.gotoAndPlay('notedouble'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Your relationship can only increase from completing tasks from now on.'; } frame 7 { dialog.gotoAndPlay('notedouble'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Be sure to talk to her beforehand and get to know her a little better.'; } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 10 { _root.diaName = 'BREE'; } frame 10 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Nya...? You going?'; } frame 11 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Do we still get to eat?'; } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 14 { _root.diaName = 'BREE'; } frame 14 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = 'Ehhhhh...'; } frame 15 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = 'Can we something else...? This is boring...'; } frame 16 { dialog.gotoAndPlay('reddouble'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '[!] If you\'re having trouble, try to improve your charm before dating again.'; } frame 17 { dialog.gotoAndPlay('redtriple'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '[!] Try to impress her before she \ngets bored from talking too much or getting too many gifts.'; } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 20 { _root.diaName = 'BREE'; } frame 20 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'Nya! Can we do this again? Can we?!'; } frame 21 { dialog.gotoAndPlay('notedouble'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Complete tasks to improve your relationship!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-park'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 24 { _root.diaName = 'BREE'; } frame 24 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'I\'ve seen you around here.'; } frame 25 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = 'This place is soooo boring...'; } frame 26 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'But you...! You look funny!'; } frame 27 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Like some kinda carrot human!'; } frame 28 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'If you\'re bored too, let\'s have fun with eachother!'; } frame 29 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Can you please tell me a funny joke?'; } frame 30 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Please, please? Like... A real funny one!'; } frame 31 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'I\'ll even give you time to think of one!'; } frame 32 { dialog.gotoAndPlay('note'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = '[!] She will accept gifts now!'; } frame 33 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][0] = true; _root.statsGirlTasks.unshift('b1'); } frame 33 { dialog.gotoAndPlay('note'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 36 { _root.diaName = 'BREE'; } frame 36 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'Nya! That was fun!'; } frame 37 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'You\'re such a funny guy!'; } frame 38 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'You know what you should do?'; } frame 39 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'You should totally make one of those funny parody flashes!'; } frame 40 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'No wait...'; } frame 41 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'You should make a whole series!'; } frame 42 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'That would be so funny! Nya!'; } frame 43 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][1] = true; _root.statsGirlTasks.unshift('b2'); } frame 43 { dialog.gotoAndPlay('note'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 46 { _root.diaName = 'BREE'; } frame 46 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Nya! This is so fun!'; } frame 47 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blush'); _root.diaDialog = 'You know how to make me laugh nyahaha...'; } frame 48 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blush'); _root.diaDialog = 'But lately... I\'ve been in the mood for another kind of fun...'; } frame 49 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blush'); _root.diaDialog = 'You see... I\'m in heat...'; } frame 50 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('sexy'); _root.diaDialog = 'Maybe... we can have more fun next time? ;)'; } frame 51 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][2] = true; _root.statsGirlTasks.unshift('b3'); } frame 51 { dialog.gotoAndPlay('note'); charadiaBree.gotoAndStop('sexy'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 54 { _root.diaName = 'BREE'; } frame 54 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('blush'); _root.diaDialog = 'Nya... I have so much fun with you...'; } frame 55 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = 'I\'m always happy when you\'re around but...'; } frame 56 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = 'I have no one else...'; } frame 57 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = 'I found out I\'m the last of me...'; } frame 58 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = 'I\'m the last of the Dashkin...'; } frame 59 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = 'It makes me sad sometimes...'; } frame 60 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '...'; } frame 61 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'But I have you at least... Nya!'; } frame 62 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][3] = true; _root.statsGirlTasks.unshift('b4'); } frame 62 { dialog.gotoAndPlay('note'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-park'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 65 { _root.diaName = 'BREE'; } frame 65 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Nya! You come up with a funny joke yet?'; } frame 66 { _root.diaName = 'YOU'; dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = '*You tell a joke, probably a very racist one*'; } frame 67 { _root.diaName = 'BREE'; dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'NYAHA!'; } frame 68 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'I like you! You\'re funny!'; } frame 69 { dialog.gotoAndPlay('notedouble'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Raise your relationship a little more and maybe she\'ll date you!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-park'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 72 { _root.diaName = 'BREE'; } frame 72 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Nya! I saw your parody series!'; } frame 73 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'You\'re a funny fuck!'; } frame 74 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'The animation was weird but I still think you\'re funny!'; } frame 75 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'Tell me more jokes sometime, okay?'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-park'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 78 { _root.diaName = 'BREE'; } frame 78 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Nya...? You seem different...'; } frame 79 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'You... You wanna have fun? Nya...?'; } frame 80 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('sexy'); _root.diaDialog = 'I\'ve been waiting all day for this...'; } frame 81 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = '*You both head behind a bush*'; _root.diaName = ''; } frame 82 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Nmmmm.......'; _root.diaName = 'BREE'; } frame 83 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = '......Nyaaaaa'; _root.diaName = 'BREE'; } frame 84 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = '.............NYAAA!'; _root.diaName = 'BREE'; } frame 85 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = '.....'; _root.diaName = ''; } frame 86 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = '[4.3 Minutes Later]'; _root.diaName = ''; } frame 87 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('sexy'); _root.diaDialog = 'Nya...'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-park'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaBree of movieClip 1943 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 90 { _root.diaName = 'BREE'; } frame 90 { dialog.gotoAndPlay('smallbox'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = 'Nya...?'; } frame 91 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blush'); _root.diaDialog = 'You found a Dashkin village?'; } frame 92 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blushhappy'); _root.diaDialog = 'What are you waiting for! Let\'s go!'; } frame 93 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('blush'); _root.diaDialog = 'Nya...?'; } frame 94 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('normal'); _root.diaDialog = '... Humans aren\'t allowed...?'; } frame 95 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '...'; } frame 96 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '... I want to leave this place...'; } frame 97 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '... It\'s so boring here...'; } frame 98 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '... But...'; } frame 99 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '... You make it okay...'; } frame 100 { dialog.gotoAndPlay('smallboxcontinue'); charadiaBree.gotoAndStop('worried'); _root.diaDialog = '... Nya... I don\'t know what to do...'; } frame 101 { dialog.gotoAndPlay('note'); charadiaBree._visible = false; _root.diaDialog = '[!] Maybe this shouldn\'t be the end?'; } frame 102 { dialog.gotoAndPlay('notedouble'); charadiaBree._visible = false; _root.diaDialog = '[!] Maybe you should show her that you\'ll go where ever she goes?'; } frame 103 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][4] = true; _root.statsGirlTasks.unshift('b5'); } frame 103 { dialog.gotoAndPlay('notedouble'); charadiaBree._visible = false; _root.diaDialog = '[!] Show how committed you really are.'; } } movieClip 1956 { } movieClip 1958 { } movieClip 1967 { } movieClip 1968 { } movieClip 1983 { frame 1 { stop(); } } button 1984 { on (release) { _root.guiMain._visible = true; _root.funcUpdateTime(1); _parent.gotoAndStop('bbs'); } } button 1985 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; var talkadd = _root.girlRPAddTalk + _root.statsCharm / _root.girlCharmFriction; girlGive.gotoAndStop(1); if (_root.varGirlIsUpgrading) { if (relationshiplevel == 0) { _parent.cutsceneTrish.gotoAndStop('level0'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('normal'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; _root.statsGirlHeartLevel[_root.varChosenGirl][1] = _root.statsGirlLevel2RPReq; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } else { if (relationshiplevel == 2) { _parent.cutsceneTrish.gotoAndStop('dateaccept'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('blushhappy'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } else { if (!_root.varGirlTalked) { _root.diaName = 'TRISH'; _root.diaDialog = _root.diaTrishTalk[relationshiplevel][_root.funcRandom(0, 2)]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel == 1 || relationshiplevel == 2) { charaGirl.gotoAndStop('normal'); } } girlDia.gotoAndPlay(2); _root.varGirlTalked = true; if (relationshiplevel >= 3) { girlDia.gotoAndStop(1); girlAsk.gotoAndStop(2); charaGirl.gotoAndStop('blush'); _root.varGirlIsAsking = true; } if (relationshiplevel <= 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += talkadd; fxHeartUp.gotoAndPlay(2); } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] = _root.statsGirlHeartLevel[_root.varChosenGirl][1]; } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { if (relationshiplevel == 0 || relationshiplevel == 2) { _root.diaName = 'TRISH'; _root.diaDialog = _root.diaTrishUp[relationshiplevel]; girlDia.gotoAndPlay('alert'); charaGirl.gotoAndStop('blush'); _root.varGirlIsUpgrading = true; _root.varGirlTalked = false; } } } } } } button 1986 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; _root.diaName = 'TRISH'; _root.diaDialog = _root.diaTrishGive[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } if (relationshiplevel == 0) { girlDia.gotoAndPlay(2); } else { if (relationshiplevel >= 1 && _root.varGirlIsAsking == false) { if (girlGive._currentframe == 2) { girlGive.gotoAndStop(1); } else { girlGive.gotoAndStop(2); } girlDia.gotoAndStop(1); } } } } button 1987 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; girlGive.gotoAndStop(1); _root.diaName = 'TRISH'; _root.diaDialog = _root.diaTrishDate[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel >= 1) { charaGirl.gotoAndStop('blush'); } } if (_root.varGirlIsAsking == false) { girlDia.gotoAndPlay(2); if (relationshiplevel >= 3) { dateTransition.gotoAndStop(2); } } } } movieClip 1989 { frame 1 { _root.varChosenGirl = 0; if (_root.statsGirlTaskActive[_root.varChosenGirl][4] == true) { btndate._visible = false; } else { btnpropose._visible = false; } } frame 1 { _root.guiMain._visible = false; _root.varChosenGirl = 0; _root.varGirlTalked = false; _root.varGirlIsUpgrading = false; _root.varGirlIsAsking = false; _root.funcDisRelationUpdate(); var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; if (relationshiplevel >= 3) { girlDia.gotoAndStop('stillbox'); _root.diaName = 'TRISH'; _root.diaDialog = _root.diaTrishTalk[relationshiplevel][_root.funcRandom(0, 2)]; } } instance charaGirl of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 1834 { onClipEvent (enterFrame) { if (_root.statsAlertTask || _root.statsAlertText) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } button 1990 { on (release) { gotoAndStop(1); } } button 1991 { on (release) { _root.guiMain._visible = true; _parent.gotoAndStop(1); gotoAndStop(1); } } button 1992 { on (release) { _root.diaDialog = '...'; gotoAndStop(1); } } movieClip 1993 { frame 1 { stop(); } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-bbs'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 3 { _root.diaName = 'TRISH'; } frame 3 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'Ohh... ummm...'; } frame 4 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'I\'m usually busy... you know... saving the world and all.'; } frame 5 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'But... I guess I can clear up my schedule a bit... :)'; } frame 6 { dialog.gotoAndPlay('note'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = '[!] You can date her now!'; } frame 7 { dialog.gotoAndPlay('notedouble'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = '[!] Your relationship can only increase from completing tasks from now on.'; } frame 8 { dialog.gotoAndPlay('notedouble'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = '[!] Be sure to talk to her beforehand and get to know her a little better.'; } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 11 { _root.diaName = 'TRISH'; } frame 11 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = '... You\'re leaving?'; } frame 12 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('worried'); _root.diaDialog = 'Don\'t waste my time... Ass...'; } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 15 { _root.diaName = 'TRISH'; } frame 15 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'Look... I know you\'re trying to be nice and all.'; } frame 16 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('worried'); _root.diaDialog = 'But this is a bit of a waste of time for me...'; } frame 17 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'I gotta go. Catch you later.'; } frame 18 { dialog.gotoAndPlay('reddouble'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = '[!] If you\'re having trouble, try to improve your charm before dating again.'; } frame 19 { dialog.gotoAndPlay('redtriple'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = '[!] Try to impress her before she \ngets bored from talking too much or getting too many gifts.'; } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 22 { _root.diaName = 'TRISH'; } frame 22 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'That was great! I really needed that!'; } frame 23 { dialog.gotoAndPlay('notedouble'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Complete tasks to improve your relationship!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-bbs'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 26 { _root.diaName = 'TRISH'; } frame 26 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'I\'ve seen your face around here often.'; } frame 27 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'Are you here to make a difference?'; } frame 28 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'Or are you just one of those waste of space, spam posters.'; } frame 29 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'Either way, I\'m here to really fix this place up.'; } frame 30 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'There\'s so much chaos and grime going on here in Portal City.'; } frame 31 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'And things need to be cleaned up... Starting with the Art Portal.'; } frame 32 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'It\'s newer than most things here but I think it needs a hand.'; } frame 33 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'It could use some more content.'; } frame 34 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Anyways, catch you later, if I see ya.'; } frame 35 { dialog.gotoAndPlay('note'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = '[!] She will accept gifts now!'; } frame 36 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][0] = true; _root.statsGirlTasks.unshift('t1'); } frame 36 { dialog.gotoAndPlay('note'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 39 { _root.diaName = 'TRISH'; } frame 39 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'You know, you\'re a pretty good guy.'; } frame 40 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'It\'s nice to meet someone whose committed to cleaning up this place.'; } frame 41 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'You know... The BBS could really use someone like you.'; } frame 42 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Steer the place towards the right direction, you know?'; } frame 43 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Anyways... Thanks for tonight.'; } frame 44 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'Catch you later.'; } frame 45 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][1] = true; _root.statsGirlTasks.unshift('t2'); } frame 45 { dialog.gotoAndPlay('note'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 48 { _root.diaName = 'TRISH'; } frame 48 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'You know, you\'ve really made a difference lately!'; } frame 49 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'But I know somewhere else that really needs your help.'; } frame 50 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'The Flash and Audio portals have been around since forever.'; } frame 51 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'And the bots have been in need of repairs lately. Especially A-Bot.'; } frame 52 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'I\'ve been running a charity fund to fix him up.'; } frame 53 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'But we\'re still a little short...'; } frame 54 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'If you could lend a hand... that would be so great.'; } frame 55 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'Thanks again, and thanks for tonight!'; } frame 56 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][2] = true; _root.statsGirlTasks.unshift('t3'); } frame 56 { dialog.gotoAndPlay('note'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 59 { _root.diaName = 'TRISH'; } frame 59 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'It\'s amazing how much you\'ve changed this place...'; } frame 60 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'I don\'t usually say stuff like this but...'; } frame 61 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = '... You really are amazing.'; } frame 62 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'The only place that really needs help is...'; } frame 63 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'Well... the portal itself... The heart of this city...'; } frame 64 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('normal'); _root.diaDialog = 'But... It\'s such a big place that I wouldn\'t even know where to start...'; } frame 65 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('worried'); _root.diaDialog = 'If only someone could do something about it...'; } frame 66 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'But anyways... Thanks for everything...'; } frame 67 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Seriously... Thank you...'; } frame 68 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][3] = true; _root.statsGirlTasks.unshift('t4'); } frame 68 { dialog.gotoAndPlay('note'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-bbs'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 71 { _root.diaName = 'TRISH'; } frame 71 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Hey, it\'s you again.'; } frame 72 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'I saw some of your art a while ago.'; } frame 73 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'The style\'s not really my cup of tea but it\'s still impressive.'; } frame 74 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'Good work. It\'s nice to see that you\'re trying to make a difference.'; } frame 75 { dialog.gotoAndPlay('notedouble'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = '[!] Raise your relationship a little more and maybe she\'ll date you!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-bbs'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 78 { _root.diaName = 'TRISH'; } frame 78 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Hey! I just saw you up there on stage.'; } frame 79 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'It\'s really good to see you fighting the good fight.'; } frame 80 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'You really earned my respect.'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-bbs'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 83 { _root.diaName = 'TRISH'; } frame 83 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Hey!'; } frame 84 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'Wow! Is that for A-Bot?'; } frame 85 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'This is great! Now he can get the new speakers he deserves.'; } frame 86 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'You know... I was gonna do something for you to pay you back...'; } frame 87 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'But since money is involved... I don\'t think I can do that...'; } frame 88 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'I don\'t want people getting the wrong idea...'; } frame 89 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'But maybe I\'ll have something for you later on... ;)'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-bbs'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaTrish of movieClip 1983 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 92 { _root.diaName = 'TRISH'; } frame 92 { dialog.gotoAndPlay('smallbox'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = '... I can\'t believe it...'; } frame 93 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'Everyone\'s been talking about you lately!'; } frame 94 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blushhappy'); _root.diaDialog = 'You\'re everyone\'s hero now! Savior of everything.'; } frame 95 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Heh...'; } frame 96 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'The funny thing is...'; } frame 97 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'Now that I respect you so much...'; } frame 98 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = 'I barely feel like I can talk to you like equals...'; } frame 99 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('worried'); _root.diaDialog = '....'; } frame 100 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('worried'); _root.diaDialog = 'Anyways...'; } frame 101 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = '... I\'m sure you\'ve got lots of lives to save.'; } frame 102 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('blush'); _root.diaDialog = '... I\'ll just get out of your way...'; } frame 103 { dialog.gotoAndPlay('smallboxcontinue'); charadiaTrish.gotoAndStop('worried'); _root.diaDialog = 'Catch you later...'; } frame 104 { dialog.gotoAndPlay('note'); charadiaTrish._visible = false; _root.diaDialog = '[!] Maybe this shouldn\'t be the end?'; } frame 105 { dialog.gotoAndPlay('notedouble'); charadiaTrish._visible = false; _root.diaDialog = '[!] Maybe there\'s a way to show that you did it for her.'; } frame 106 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][4] = true; _root.statsGirlTasks.unshift('t5'); } frame 106 { dialog.gotoAndPlay('note'); charadiaTrish._visible = false; _root.diaDialog = '[!] Show how committed you really are.'; } } movieClip 1996 { } movieClip 1997 { } movieClip 2003 { } movieClip 2004 { } movieClip 2013 { frame 1 { stop(); } } button 2014 { on (release) { _root.guiMain._visible = true; _root.funcUpdateTime(1); _parent.gotoAndStop('portal'); } } button 2015 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; var talkadd = _root.girlRPAddTalk + _root.statsCharm / _root.girlCharmFriction; girlGive.gotoAndStop(1); if (_root.varGirlIsUpgrading) { if (relationshiplevel == 0) { _parent.cutsceneDonna.gotoAndStop('level0'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('normal'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; _root.statsGirlHeartLevel[_root.varChosenGirl][1] = _root.statsGirlLevel2RPReq; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } else { if (relationshiplevel == 2) { _parent.cutsceneDonna.gotoAndStop('dateaccept'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('blushhappy'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } else { if (!_root.varGirlTalked) { _root.diaName = 'DONNA'; _root.diaDialog = _root.diaDonnaTalk[relationshiplevel][_root.funcRandom(0, 2)]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel == 1 || relationshiplevel == 2) { charaGirl.gotoAndStop('normal'); } } girlDia.gotoAndPlay(2); _root.varGirlTalked = true; if (relationshiplevel >= 3) { girlDia.gotoAndStop(1); girlAsk.gotoAndStop(2); _root.varGirlIsAsking = true; } if (relationshiplevel <= 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += talkadd; fxHeartUp.gotoAndPlay(2); } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] = _root.statsGirlHeartLevel[_root.varChosenGirl][1]; } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { if (relationshiplevel == 0 || relationshiplevel == 2) { _root.diaName = 'DONNA'; _root.diaDialog = _root.diaDonnaUp[relationshiplevel]; girlDia.gotoAndPlay('alert'); charaGirl.gotoAndStop('blush'); _root.varGirlIsUpgrading = true; _root.varGirlTalked = false; } } } } } } button 2016 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; _root.diaName = 'DONNA'; _root.diaDialog = _root.diaDonnaGive[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } if (relationshiplevel == 0) { girlDia.gotoAndPlay(2); } else { if (relationshiplevel >= 1 && _root.varGirlIsAsking == false) { if (girlGive._currentframe == 2) { girlGive.gotoAndStop(1); } else { girlGive.gotoAndStop(2); } girlDia.gotoAndStop(1); } } } } button 2017 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; girlGive.gotoAndStop(1); _root.diaName = 'DONNA'; _root.diaDialog = _root.diaDonnaDate[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel >= 1) { charaGirl.gotoAndStop('blush'); } } if (_root.varGirlIsAsking == false) { girlDia.gotoAndPlay(2); if (relationshiplevel >= 3) { dateTransition.gotoAndStop(2); } } } } movieClip 2019 { frame 1 { _root.varChosenGirl = 1; if (_root.statsGirlTaskActive[_root.varChosenGirl][4] == true) { btndate._visible = false; } else { btnpropose._visible = false; } } frame 1 { _root.guiMain._visible = false; _root.varChosenGirl = 1; _root.varGirlTalked = false; _root.varGirlIsUpgrading = false; _root.varGirlIsAsking = false; _root.funcDisRelationUpdate(); var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; if (relationshiplevel >= 3) { girlDia.gotoAndStop('stillbox'); _root.diaName = 'DONNA'; _root.diaDialog = _root.diaDonnaTalk[relationshiplevel][_root.funcRandom(0, 2)]; } } instance charaGirl of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } instance of movieClip 1834 { onClipEvent (enterFrame) { if (_root.statsAlertTask || _root.statsAlertText) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } button 2020 { on (release) { gotoAndStop(1); } } button 2021 { on (release) { _root.guiMain._visible = true; _parent.gotoAndStop(1); gotoAndStop(1); } } button 2022 { on (release) { _root.diaDialog = '...'; gotoAndStop(1); } } movieClip 2023 { frame 1 { stop(); } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-gym'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 3 { _root.diaName = 'DONNA'; } frame 3 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'Ohh you wanna hang out sometime?'; } frame 4 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'Yeah, sure I\'m down!'; } frame 5 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = 'But can we not go to those boring fancy places?'; } frame 6 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'Talk about a fuckin\' buzzkill.'; } frame 7 { dialog.gotoAndPlay('note'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = '[!] You can date her now!'; } frame 8 { dialog.gotoAndPlay('notedouble'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = '[!] Your relationship can only increase from completing tasks from now on.'; } frame 9 { dialog.gotoAndPlay('notedouble'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = '[!] Be sure to talk to her beforehand and get to know her a little better.'; } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 12 { _root.diaName = 'DONNA'; } frame 12 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('worried'); _root.diaDialog = 'What, you\'re leaving?'; } frame 13 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('worried'); _root.diaDialog = 'Fuckin\' dick...'; } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 16 { _root.diaName = 'DONNA'; } frame 16 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('worried'); _root.diaDialog = '... That\'s it?'; } frame 17 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('worried'); _root.diaDialog = '... What a waste of time...'; } frame 18 { dialog.gotoAndPlay('reddouble'); charadiaDonna.gotoAndStop('worried'); _root.diaDialog = '[!] If you\'re having trouble, try to improve your charm before dating again.'; } frame 19 { dialog.gotoAndPlay('redtriple'); charadiaDonna.gotoAndStop('worried'); _root.diaDialog = '[!] Try to impress her before she \ngets bored from talking too much or getting too many gifts.'; } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 22 { _root.diaName = 'DONNA'; } frame 22 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('happyblush'); _root.diaDialog = 'Fuck, we need to do that again!'; } frame 23 { dialog.gotoAndPlay('notedouble'); charadiaDonna.gotoAndStop('happyblush'); _root.diaDialog = '[!] Complete tasks to improve your relationship!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-gym'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 26 { _root.diaName = 'DONNA'; } frame 26 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'I\'ve seen you around a lot lately.'; } frame 27 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'You must really like working out.'; } frame 28 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'I like that!'; } frame 29 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'I workout here with my family.'; } frame 30 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'Actually, I was JUST talking about you with my bro'; } frame 31 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'He said, you\'re too much of a pussy to even be a security guard'; } frame 32 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushappy'); _root.diaDialog = 'Looking at ya now... I might agree! Hahaha.'; } frame 33 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = 'Just kidding! Just keep at it.'; } frame 34 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = 'See ya around!'; } frame 35 { dialog.gotoAndPlay('note'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = '[!] She will accept gifts now!'; } frame 36 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][0] = true; _root.statsGirlTasks.unshift('d1'); } frame 36 { dialog.gotoAndPlay('note'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 39 { _root.diaName = 'DONNA'; } frame 39 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'You won\'t believe this...'; } frame 40 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'So I was talking to my other bro about you'; } frame 41 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'And now he says you\'re too dumb!'; } frame 42 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'Because... Ya know, you were just a security guard'; } frame 43 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'Hahaha, I\'d love to see you prove him wrong with a report card!'; } frame 44 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][1] = true; _root.statsGirlTasks.unshift('d2'); } frame 44 { dialog.gotoAndPlay('note'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 47 { _root.diaName = 'DONNA'; } frame 47 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'So guess what.'; } frame 48 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'I told my mom what you\'ve been doing.'; } frame 49 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'Ya know, trying to prove yourself and what not'; } frame 50 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'And she told me you were just some overcompensating baby with no class!'; } frame 51 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'It\'s funny cuz\' it\'s pretty true! Hahaha!'; } frame 52 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = 'Is there a way to prove that you\'re better than that?'; } frame 53 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = 'Cuz it would be great to see you show her up!'; } frame 54 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][2] = true; _root.statsGirlTasks.unshift('d3'); } frame 54 { dialog.gotoAndPlay('note'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 57 { _root.diaName = 'DONNA'; } frame 57 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'So ummm...'; } frame 58 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('happyblush'); _root.diaDialog = 'I can\'t believe you\'ve pretty much impressed my whole family...'; } frame 59 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'The only one left is... Dad'; } frame 60 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'He doesn\'t believe me at all!'; } frame 61 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'There\'s no way you can top him in body'; } frame 62 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'But maybe there\'s a way to convince him threw his head?'; } frame 63 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][3] = true; _root.statsGirlTasks.unshift('d4'); } frame 63 { dialog.gotoAndPlay('note'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-gym'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 66 { _root.diaName = 'DONNA'; } frame 66 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'No way! You actually got a job as a security guard?'; } frame 67 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'That\'s kinda...'; } frame 68 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'Lame hahaha.'; } frame 69 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = 'But better than being a pussy I guess!'; } frame 70 { dialog.gotoAndPlay('notedouble'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Raise your relationship a little more and maybe she\'ll date you!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-gym'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 73 { _root.diaName = 'DONNA'; } frame 73 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'Are you kidding me?'; } frame 74 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = 'Is that seriously a report card in your hands?'; } frame 75 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'LOL'; } frame 76 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'I\'ve got to take it to my bro right now!'; } frame 77 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'You rock, hahaha!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-gym'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 80 { _root.diaName = 'DONNA'; } frame 80 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'I just saw that masterpiece you made!'; } frame 81 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'Mom did too.'; } frame 82 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blushhappy'); _root.diaDialog = 'Totally blew her away! Haha!'; } frame 83 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('normal'); _root.diaDialog = 'She told me to apologize for her...'; } frame 84 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('blush'); _root.diaDialog = 'You know she\'s serious, because no one apologizes in my family!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-gym'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance charadiaDonna of movieClip 2013 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 87 { _root.diaName = 'DAD'; } frame 87 { dialog.gotoAndPlay('smallbox'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'So you\'re the kid my daughter\'s been talking about, huh'; } frame 88 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'You\'ve really made an impression on her'; } frame 89 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'And even on my whole family!'; } frame 90 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'Ya know what.'; } frame 91 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'I can tell that you\'re a real man, just by the way you smell'; } frame 92 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'It smells vaguely like the scent of Old Spice and spilled beer.'; } frame 93 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'But you\'re a man nonetheless...'; } frame 94 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'I\'ll be a man aswell, and say officially...'; } frame 95 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'You have my blessing to be with my daughter'; } frame 96 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'There.'; } frame 97 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = '...'; } frame 98 { dialog.gotoAndPlay('smallboxcontinue'); charadiaDonna.gotoAndStop('dad'); _root.diaDialog = 'But if you fuck that up somehow, I\'ll crush your skull like a can.'; } frame 99 { dialog.gotoAndPlay('note'); charadiaDonna.gotoAndStop('normal'); charadiaDonna._visible = false; _root.diaDialog = '[!] Maybe this is your chance?'; } frame 100 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][4] = true; _root.statsGirlTasks.unshift('d5'); } frame 100 { dialog.gotoAndPlay('notedouble'); charadiaDonna.gotoAndStop('normal'); charadiaDonna._visible = false; _root.diaDialog = '[!] Maybe you should prove how committed you really are.'; } } movieClip 2027 { } movieClip 2028 { } movieClip 2032 { } movieClip 2033 { } movieClip 2042 { frame 1 { stop(); } } button 2043 { on (release) { _root.guiMain._visible = true; _root.funcUpdateTime(1); _parent.gotoAndStop('bar'); } } button 2044 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; var talkadd = _root.girlRPAddTalk + _root.statsCharm / _root.girlCharmFriction; girlGive.gotoAndStop(1); if (_root.varGirlIsUpgrading) { if (relationshiplevel == 0) { girlDia.gotoAndPlay('reddouble'); _root.diaName = ''; _root.diaDialog = '[!] Sorry, Nene is not available in this [BETA]!'; } else { if (relationshiplevel == 2) { _parent.cutsceneNene.gotoAndStop('dateaccept'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('blushhappy'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } else { if (!_root.varGirlTalked) { _root.diaName = 'NENE'; _root.diaDialog = _root.diaNeneTalk[relationshiplevel][_root.funcRandom(0, 2)]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel == 1 || relationshiplevel == 2) { charaGirl.gotoAndStop('normal'); } } girlDia.gotoAndPlay(2); _root.varGirlTalked = true; if (relationshiplevel >= 3) { girlDia.gotoAndStop(1); girlAsk.gotoAndStop(2); _root.varGirlIsAsking = true; } if (relationshiplevel <= 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += talkadd; fxHeartUp.gotoAndPlay(2); } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] = _root.statsGirlHeartLevel[_root.varChosenGirl][1]; } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { if (relationshiplevel == 0 || relationshiplevel == 2) { _root.diaName = 'NENE'; _root.diaDialog = _root.diaNeneUp[relationshiplevel]; girlDia.gotoAndPlay('alert'); charaGirl.gotoAndStop('blush'); _root.varGirlIsUpgrading = true; _root.varGirlTalked = false; } } } } } } button 2045 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; _root.diaName = 'NENE'; _root.diaDialog = _root.diaNeneGive[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } if (relationshiplevel == 0) { girlDia.gotoAndPlay(2); } else { if (relationshiplevel >= 1 && _root.varGirlIsAsking == false) { if (girlGive._currentframe == 2) { girlGive.gotoAndStop(1); } else { girlGive.gotoAndStop(2); } girlDia.gotoAndStop(1); } } } } button 2046 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; girlGive.gotoAndStop(1); _root.diaName = 'NENE'; _root.diaDialog = _root.diaNeneDate[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel >= 1) { charaGirl.gotoAndStop('blush'); } } if (_root.varGirlIsAsking == false) { girlDia.gotoAndPlay(2); if (relationshiplevel >= 3) { dateTransition.gotoAndStop(2); } } } } movieClip 2048 { frame 1 { if (_root.statsGirlTaskActive[_root.varChosenGirl][4] == true) { btndate._visible = false; } else { btnpropose._visible = false; } } frame 1 { _root.guiMain._visible = false; _root.varChosenGirl = 4; _root.varGirlTalked = false; _root.varGirlIsUpgrading = false; _root.varGirlIsAsking = false; _root.funcDisRelationUpdate(); var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; if (relationshiplevel >= 3) { girlDia.gotoAndStop('stillbox'); _root.diaName = 'NENE'; _root.diaDialog = _root.diaNeneTalk[relationshiplevel][_root.funcRandom(0, 2)]; } } instance of movieClip 1834 { onClipEvent (enterFrame) { if (_root.statsAlertTask || _root.statsAlertText) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 2051 { } movieClip 2052 { } movieClip 2060 { } movieClip 2062 { } movieClip 2071 { frame 1 { stop(); } } button 2072 { on (release) { _root.guiMain._visible = true; _root.funcUpdateTime(1); _parent.gotoAndStop('ngu'); } } button 2073 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; var talkadd = _root.girlRPAddTalk + _root.statsCharm / _root.girlCharmFriction; girlGive.gotoAndStop(1); if (_root.varGirlIsUpgrading) { if (relationshiplevel == 0) { _parent.cutsceneHunni.gotoAndStop('level0'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('normal'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; _root.statsGirlHeartLevel[_root.varChosenGirl][1] = _root.statsGirlLevel2RPReq; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } else { if (relationshiplevel == 2) { _parent.cutsceneHunni.gotoAndStop('dateaccept'); girlDia.gotoAndStop(1); charaGirl.gotoAndStop('blushhappy'); _root.varGirlIsUpgrading = false; _root.varGirlTalked = false; _root.statsGirlHeartLevel[_root.varChosenGirl][0] = 0; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } else { if (!_root.varGirlTalked) { _root.diaName = 'HUN-NI'; _root.diaDialog = _root.diaHunniTalk[relationshiplevel][_root.funcRandom(0, 2)]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel == 1 || relationshiplevel == 2) { charaGirl.gotoAndStop('normal'); } } girlDia.gotoAndPlay(2); _root.varGirlTalked = true; if (relationshiplevel >= 3) { girlDia.gotoAndStop(1); girlAsk.gotoAndStop(2); _root.varGirlIsAsking = true; } if (relationshiplevel <= 2) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] += talkadd; fxHeartUp.gotoAndPlay(2); } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { _root.statsGirlHeartLevel[_root.varChosenGirl][0] = _root.statsGirlHeartLevel[_root.varChosenGirl][1]; } if (_root.statsGirlHeartLevel[_root.varChosenGirl][0] >= _root.statsGirlHeartLevel[_root.varChosenGirl][1]) { if (relationshiplevel == 0 || relationshiplevel == 2) { _root.diaName = 'HUN-NI'; _root.diaDialog = _root.diaHunniUp[relationshiplevel]; girlDia.gotoAndPlay('alert'); charaGirl.gotoAndStop('blush'); _root.varGirlIsUpgrading = true; _root.varGirlTalked = false; } } } } } } button 2074 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; _root.diaName = 'HUN-NI'; _root.diaDialog = _root.diaHunniGive[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } if (relationshiplevel == 0) { girlDia.gotoAndPlay(2); } else { if (relationshiplevel >= 1 && _root.varGirlIsAsking == false) { if (girlGive._currentframe == 2) { girlGive.gotoAndStop(1); } else { girlGive.gotoAndStop(2); } girlDia.gotoAndStop(1); } } } } button 2075 { on (release) { var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; girlGive.gotoAndStop(1); _root.diaName = 'HUN-NI'; _root.diaDialog = _root.diaHunniDate[relationshiplevel]; if (relationshiplevel == 0) { charaGirl.gotoAndStop('worried'); } else { if (relationshiplevel >= 1) { charaGirl.gotoAndStop('blush'); } } if (_root.varGirlIsAsking == false) { girlDia.gotoAndPlay(2); if (relationshiplevel >= 3) { dateTransition.gotoAndStop(2); } } } } movieClip 2077 { frame 1 { _root.varChosenGirl = 5; if (_root.statsGirlTaskActive[_root.varChosenGirl][4] == true) { btndate._visible = false; } else { btnpropose._visible = false; } } frame 1 { _root.guiMain._visible = false; _root.varChosenGirl = 5; _root.varGirlTalked = false; _root.varGirlIsUpgrading = false; _root.varGirlIsAsking = false; _root.funcDisRelationUpdate(); var relationshiplevel = _root.statsGirlRLevel[_root.varChosenGirl]; if (relationshiplevel >= 3) { girlDia.gotoAndStop('stillbox'); _root.diaName = 'HUN-NI'; _root.diaDialog = _root.diaHunniTalk[relationshiplevel][_root.funcRandom(0, 2)]; } } instance of movieClip 1834 { onClipEvent (enterFrame) { if (_root.statsAlertTask || _root.statsAlertText) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } button 2078 { on (release) { gotoAndStop(1); } } button 2079 { on (release) { _root.guiMain._visible = true; _parent.gotoAndStop(1); gotoAndStop(1); } } button 2080 { on (release) { _root.diaDialog = '...'; gotoAndStop(1); } } movieClip 2081 { frame 1 { stop(); } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-library'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 3 { _root.diaName = 'HUN-NI'; } frame 3 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'D-dato...?'; } frame 4 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = 'Hai... I.. come!'; } frame 5 { dialog.gotoAndPlay('note'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '[!] You can date her now!'; } frame 6 { dialog.gotoAndPlay('notedouble'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Your relationship can only increase from completing tasks from now on'; } frame 7 { dialog.gotoAndPlay('notedouble'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Be sure to talk to her beforehand and get to know her a little better.'; } frame 10 { _root.diaName = 'HUN-NI'; } frame 10 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '....?'; } frame 11 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'Gomen...'; } frame 14 { _root.diaName = 'HUN-NI'; } frame 14 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '... Kore wa...'; } frame 15 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '......'; } frame 16 { dialog.gotoAndPlay('reddouble'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '[!] If you\'re having trouble, try to improve your charm before dating again.'; } frame 17 { dialog.gotoAndPlay('redtriple'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '[!] Try to impress her before she \ngets bored from talking too much or getting too many gifts.'; } frame 20 { _root.diaName = 'HUN-NI'; } frame 20 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = 'Ahhhnn...~'; } frame 21 { dialog.gotoAndPlay('notedouble'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '[!] Complete tasks to improve your relationship!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-library'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 24 { _root.diaName = 'HUN-NI'; } frame 24 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = '.... Umnn....'; } frame 25 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = '.... Araseo...? Nihongo ga...'; } frame 26 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '.....'; } frame 27 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '... (I think she\'s trying to ask me something, but I don\'t understand)'; _root.diaName = ''; } frame 28 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '... (Maybe I should study some Moon-speak)'; _root.diaName = ''; } frame 29 { dialog.gotoAndPlay('note'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = '[!] She will accept gifts now!'; } frame 30 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][0] = true; _root.statsGirlTasks.unshift('h1'); } frame 30 { dialog.gotoAndPlay('note'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } frame 33 { _root.diaName = 'HUN-NI'; } frame 33 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = '... P-please...'; } frame 34 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'I help you... Teach?'; } frame 35 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'Teach eigo... teach english!'; } frame 36 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = 'Jebal...!'; } frame 37 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '... (I think she wants me to help her learn english)'; _root.diaName = ''; } frame 38 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '... (Maybe I should make some Flashes to help her)'; _root.diaName = ''; } frame 39 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = 'Kamsahamnida!'; _root.diaName = 'HUN-NI'; } frame 40 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][1] = true; _root.statsGirlTasks.unshift('h2'); } frame 40 { dialog.gotoAndPlay('note'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } frame 43 { _root.diaName = 'HUN-NI'; } frame 43 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '... Arigato!'; } frame 44 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = '... I speak... much better now.'; } frame 45 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = 'Thank you... much much!'; } frame 46 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'But... I need ask... favor...'; } frame 47 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '......'; } frame 48 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'Nan dangsin-i nae bumo leul mannago sip-eo.'; } frame 49 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '... P-pa...'; } frame 50 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '......'; } frame 51 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '... (Looks like she\'s trying to ask me something but it\'s too hard)'; _root.diaName = ''; } frame 52 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '... (Maybe I should just get a Moon-Speak translator...)'; _root.diaName = ''; } frame 53 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '... Gomen...'; _root.diaName = 'HUN-NI'; } frame 54 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][2] = true; _root.statsGirlTasks.unshift('h3'); } frame 54 { dialog.gotoAndPlay('note'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '[!] Check your phone for new tasks!'; } frame 57 { _root.diaName = 'HUN-NI'; } frame 57 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'I can finally talk to you...'; } frame 58 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'I am very relieved...'; } frame 59 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'I\'ve been wanting to tell you how I felt for so long...'; } frame 60 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'I... I want you to meet my parents.'; } frame 61 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'They are very strict with who I spend time with...'; } frame 62 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'And I... I want to be with you'; } frame 63 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'But...'; } frame 64 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'They expect a lot from me and my partner...'; } frame 65 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'They will expect you to have a very good job'; } frame 66 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'It\'s very typical where I am from...'; } frame 67 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = '...'; } frame 68 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'Btw, my parents are a cat and bunny if that makes a difference.'; } frame 69 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][3] = true; _root.statsGirlTasks.unshift('h4'); } frame 69 { dialog.gotoAndPlay('note'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = '[!] Check your phone for new tasks!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-library'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 72 { _root.diaName = 'HUN-NI'; } frame 72 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'Ohh... you... understand better?'; } frame 73 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '... It... nice to talk... to you!'; } frame 74 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'O genki desu ka?'; } frame 75 { dialog.gotoAndPlay('notedouble'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = '[!] Raise your relationship a little more and maybe she\'ll date you!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-library'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 78 { _root.diaName = 'HUN-NI'; } frame 78 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = 'Kamsahamnida!'; } frame 79 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'Your... learning flashes, very good!'; } frame 80 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'I... learn better!'; } frame 81 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = '... Domo arigato!'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-library'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 84 { _root.diaName = 'HUN-NI'; } frame 84 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'I... I can understand you perfectly!'; } frame 85 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'This is... wonderful...'; } frame 86 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'I need to tell you something important...'; } frame 87 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'Maybe, we should talk somewhere more private?'; } frame 88 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'I will tell you later... okay?'; } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-library'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } frame 91 { _root.diaName = 'HUN-NI'; } frame 91 { dialog.gotoAndPlay('smallbox'); charadiaHunni.gotoAndStop('blushhappy'); _root.diaDialog = 'I can\'t believe what kind of job you have!'; } frame 92 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'That is so wonderful!'; } frame 93 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = '....'; } frame 94 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'But...'; } frame 95 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('normal'); _root.diaDialog = 'I spoke with my parents... and they are happy for you.'; } frame 96 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'But... they say I need a committed man...'; } frame 97 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'I don\'t care, I just want to be with you...'; } frame 98 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'But... I can\'t betray my parents...'; } frame 99 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('worried'); _root.diaDialog = 'I\'m so sorry...'; } frame 100 { dialog.gotoAndPlay('smallboxcontinue'); charadiaHunni.gotoAndStop('blush'); _root.diaDialog = 'Saranghae...'; } frame 101 { dialog.gotoAndPlay('note'); charadiaHunni._visible = false; _root.diaDialog = '[!] Maybe this shouldn\'t be the end?'; } frame 102 { _root.statsAlertTask = true; _root.guiMain.guiCellAlert.gotoAndStop(2); _root.statsGirlTaskActive[_root.varChosenGirl][4] = true; _root.statsGirlTasks.unshift('h5'); } frame 102 { dialog.gotoAndPlay('notedouble'); charadiaHunni._visible = false; _root.diaDialog = '[!] Maybe you should prove how committed you are.'; } } button 2082 { on (keyPress '<Right>') { if (_root.varChosenGirl == 3) { if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == undefined) { cutsceneAllie.gotoAndStop('level3'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == undefined) { cutsceneAllie.gotoAndStop('level4'); } } } } } movieClip 2085 { frame 1 { stop(); } } movieClip 2087 { frame 1 { stop(); } } movieClip 2090 { frame 1 { stop(); } } movieClip 2092 { frame 1 { stop(); } } movieClip 2094 { frame 1 { stop(); } } movieClip 2096 { frame 1 { stop(); } } movieClip 2097 { frame 1 { stop(); var girlframe = _root.varChosenGirl + 2; gotoAndStop(girlframe); } instance sprite of movieClip 1983 { onClipEvent (enterFrame) { if (_root.varDateKissing) { this.gotoAndStop('datekiss'); } } } instance sprite of movieClip 1943 { onClipEvent (enterFrame) { if (_root.varDateKissing) { this.gotoAndStop('datekiss'); } } } instance sprite of movieClip 1790 { onClipEvent (enterFrame) { if (_root.varDateKissing) { this.gotoAndStop('datekiss'); } } } } movieClip 2102 { } movieClip 2105 { frame 5 { stop(); } } movieClip 2111 { frame 5 { stop(); } } movieClip 2119 { frame 5 { stop(); } } movieClip 2125 { frame 5 { stop(); } } movieClip 2131 { frame 5 { stop(); } } movieClip 2135 { } movieClip 2138 { frame 1 { stop(); } } movieClip 2139 { frame 1 { stop(); } } movieClip 2141 { instance of movieClip 2135 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.varDateGirlHPMax / _root.varDateGirlLerp); } } instance of movieClip 2138 { onClipEvent (enterFrame) { var percent = _root.varDateGirlHP / _root.varDateGirlHPMax; if (percent <= 0.25) { this.gotoAndStop(3); } else { if (percent <= 0.5) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } if (_root.varDateGirlLerp <= 0) { this._visible = false; } } } } movieClip 2145 { } movieClip 2158 { } movieClip 2165 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 40 { stop(); } frame 50 { stop(); } frame 70 { stop(); } } movieClip 2166 { instance of movieClip 2135 { onClipEvent (load) { initialWidth = this._width; } onClipEvent (enterFrame) { this._width = initialWidth / (_root.varDatePicoHPMax / _root.varDatePicoLerp); } } instance of movieClip 2138 { onClipEvent (enterFrame) { var percent = _root.varDatePicoHP / _root.varDatePicoHPMax; if (percent <= 0.25) { this.gotoAndStop(3); } else { if (percent <= 0.5) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } if (_root.varDatePicoLerp <= 0) { this._visible = false; } } } } button 2168 { on (release) { if (dateMenu._currentframe != 14) { dateMenu.gotoAndStop('leave'); } else { dateMenu.gotoAndStop(1); } } } button 2169 { on (release) { if (dateMenu._currentframe != 3) { dateMenu.gotoAndStop('talk'); } else { dateMenu.gotoAndStop(1); } } } button 2170 { on (release) { if (dateMenu._currentframe != 2) { dateMenu.gotoAndStop('give'); } else { dateMenu.gotoAndStop(1); } } } button 2171 { on (release) { if (dateMenu._currentframe != 9) { dateMenu.gotoAndStop('cre'); } else { dateMenu.gotoAndStop(1); } } } button 2172 { on (release) { if (dateMenu._currentframe != 11) { dateMenu.gotoAndStop('sen'); } else { dateMenu.gotoAndStop(1); } } } button 2173 { on (release) { if (dateMenu._currentframe != 12) { dateMenu.gotoAndStop('aud'); } else { dateMenu.gotoAndStop(1); } } } button 2176 { on (release) { var numid = 2; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 0; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 1; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 2; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 0; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 1; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 0; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2177 { on (release) { var numid = 1; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 0; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 2; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 1; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 1; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 0; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 0; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2178 { on (release) { var numid = 0; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 2; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 0; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 0; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 0; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 1; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 1; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2179 { on (release) { var numid = 5; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 1; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 0; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 0; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 1; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 0; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 2; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2180 { on (release) { var numid = 3; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 0; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 1; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 0; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 2; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 1; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 0; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2181 { on (release) { var numid = 4; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 1; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 0; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 1; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 0; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 2; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 0; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2190 { on (release) { gotoAndStop(1); } } movieClip 2196 { frame 10 { stop(); } } button 2197 { on (release) { var numid = 0; var chosenper = _parent.chosentopics[numid]; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; effectivelevel = _root.tuneDateTopicEffect[_root.varChosenGirl][chosenper]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateTalkRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk) { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP -= damage; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateTalkRefuse[_root.varChosenGirl]; _parent.play(); } else { damage = (_root.tuneDateTalkTopicDamage[effectivelevel] + _root.tuneDateTalkTopicDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateTalkTopicCap[girllevel - 1]) { damage = _root.tuneDateTalkTopicCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateTalkSuccess[_root.varChosenGirl]; _parent.play(); ++_root.varDateTalksGiven; } } gotoAndStop(1); } } button 2198 { on (release) { var numid = 1; var chosenper = _parent.chosentopics[numid]; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; effectivelevel = _root.tuneDateTopicEffect[_root.varChosenGirl][chosenper]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateTalkRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk) { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP -= damage; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateTalkRefuse[_root.varChosenGirl]; _parent.play(); } else { damage = (_root.tuneDateTalkTopicDamage[effectivelevel] + _root.tuneDateTalkTopicDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateTalkTopicCap[girllevel - 1]) { damage = _root.tuneDateTalkTopicCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateTalkSuccess[_root.varChosenGirl]; _parent.play(); ++_root.varDateTalksGiven; } } gotoAndStop(1); } } button 2199 { on (release) { var numid = 2; var chosenper = _parent.chosentopics[numid]; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; effectivelevel = _root.tuneDateTopicEffect[_root.varChosenGirl][chosenper]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateTalkRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk) { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP -= damage; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateTalkRefuse[_root.varChosenGirl]; _parent.play(); } else { damage = (_root.tuneDateTalkTopicDamage[effectivelevel] + _root.tuneDateTalkTopicDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateTalkTopicCap[girllevel - 1]) { damage = _root.tuneDateTalkTopicCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateTalkSuccess[_root.varChosenGirl]; _parent.play(); ++_root.varDateTalksGiven; } } gotoAndStop(1); } } movieClip 2209 { } button 2212 { on (release) { gotoAndStop(1); } } button 2214 { on (release) { var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var damage = 0; damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP -= damage; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateQuestionRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } } button 2219 { on (release) { var numid = 1; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (numid == _parent.correctAnswer) { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('green'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateQuestionResults[_root.varChosenGirl][0]; _parent.play(); } else { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP -= damage; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateQuestionResults[_root.varChosenGirl][1]; _parent.play(); } } } button 2220 { on (release) { var numid = 2; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (numid == _parent.correctAnswer) { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('green'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateQuestionResults[_root.varChosenGirl][0]; _parent.play(); } else { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP -= damage; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateQuestionResults[_root.varChosenGirl][1]; _parent.play(); } } } button 2221 { on (release) { var numid = 3; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (numid == _parent.correctAnswer) { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('green'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateQuestionResults[_root.varChosenGirl][0]; _parent.play(); } else { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP -= damage; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateQuestionResults[_root.varChosenGirl][1]; _parent.play(); } } } button 2225 { on (release) { var numid = 0; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (numid == _parent.correctAnswer) { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDateGirlHP -= damage; _parent.dateDia.gotoAndPlay('green'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateQuestionResults[_root.varChosenGirl][0]; _parent.play(); } else { damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP -= damage; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateQuestionResults[_root.varChosenGirl][1]; _parent.play(); } } } movieClip 2229 { } movieClip 2236 { frame 5 { stop(); } } button 2237 { on (rollOver, dragOver) { _parent.hudHelp.gotoAndStop('hum'); } on (rollOut, dragOut) { _parent.hudHelp.gotoAndStop(1); } on (release) { _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('normal'); _root.diaDialog = _root.diaGroupDateMoveResponseHum[_root.varChosenGirl]; _parent.play(); --_root.varDateHumMoves; gotoAndStop(1); } } button 2240 { on (rollOver, dragOver) { _parent.hudHelp.gotoAndStop('usehelp'); } on (rollOut, dragOut) { _parent.hudHelp.gotoAndStop(1); } } movieClip 2248 { frame 5 { stop(); } } button 2249 { on (rollOver, dragOver) { _parent.hudHelp.gotoAndStop('con'); } on (rollOut, dragOut) { _parent.hudHelp.gotoAndStop(1); } on (release) { _parent.currentQuestion = 1; _parent.chosenAnswers = new Array(); _parent.correctAnswer = 0; var answerarray = new Array(); var i = 0; while (i < _root.diaAllieDateAnswers[0].length) { answerarray[i] = i; ++i; } var roll = 0; while (roll < _root.diaAllieDateAnswers[0].length) { diceroll = _root.funcRandom(0, answerarray.length - 1); _parent.chosenAnswers[roll] = answerarray[diceroll]; answerarray.splice(diceroll, 1); if (_parent.chosenAnswers[roll] == 0) { _parent.correctAnswer = roll; } ++roll; } if (_root.varChosenGirl == 0) { _root.diaDialog = _root.diaTrishDateQuestion[_parent.chosenQuestions[_parent.currentQuestion]]; } else { if (_root.varChosenGirl == 1) { _root.diaDialog = _root.diaDonnaDateQuestion[_parent.chosenQuestions[_parent.currentQuestion]]; } else { if (_root.varChosenGirl == 2) { _root.diaDialog = _root.diaBreeDateQuestion[_parent.chosenQuestions[_parent.currentQuestion]]; } else { if (_root.varChosenGirl == 3) { _root.diaDialog = _root.diaAllieDateQuestion[_parent.chosenQuestions[_parent.currentQuestion]]; } else { if (_root.varChosenGirl == 4) { _root.diaDialog = _root.diaNeneDateQuestion[_parent.chosenQuestions[_parent.currentQuestion]]; } else { if (_root.varChosenGirl == 5) { _root.diaDialog = _root.diaHunniDateQuestion[_parent.chosenQuestions[_parent.currentQuestion]]; } } } } } } if (_parent.diligenceCheck[0] != undefined) { var dilIndex = 0; while (dilIndex < 2) { var diceroll = _root.funcRandom(0, _parent.chosenAnswers.length - 1); if (_parent.chosenAnswers[diceroll] != 0 && diceroll != _parent.diligenceCheck[dilIndex - 1]) { _parent.diligenceCheck[dilIndex] = diceroll; ++dilIndex; } } } _parent.dateDia.gotoAndPlay('blue'); --_root.varDateConMoves; _parent.btnCon._visible = false; _parent.hudHelp.gotoAndStop(1); gotoAndStop(1); } } movieClip 2256 { frame 5 { stop(); } } button 2257 { on (rollOver, dragOver) { _parent.hudHelp.gotoAndStop('dil'); } on (rollOut, dragOut) { _parent.hudHelp.gotoAndStop(1); } on (release) { var dilIndex = 0; while (dilIndex < 2) { var diceroll = _root.funcRandom(0, _parent.chosenAnswers.length - 1); if (_parent.chosenAnswers[diceroll] != 0 && diceroll != _parent.diligenceCheck[dilIndex - 1]) { _parent.diligenceCheck[dilIndex] = diceroll; ++dilIndex; } } --_root.varDateDilMoves; _parent.btnDil._visible = false; _parent.hudHelp.gotoAndStop(1); gotoAndStop(1); } } movieClip 2264 { frame 5 { stop(); } } button 2266 { on (rollOver, dragOver) { _parent.hudHelp.gotoAndStop('cre'); } on (rollOut, dragOut) { _parent.hudHelp.gotoAndStop(1); } on (release) { _parent.hudHelp.gotoAndStop(1); gotoAndStop('cre2'); } } button 2268 { on (release) { var numid = 2; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 0; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 1; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 2; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 0; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 1; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 0; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateCreMovesMulti; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2269 { on (release) { var numid = 1; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 0; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 2; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 1; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 1; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 0; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 0; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateCreMovesMulti; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2270 { on (release) { var numid = 0; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 2; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 0; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 0; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 0; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 1; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 1; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateCreMovesMulti; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2271 { on (release) { var numid = 5; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 1; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 0; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 0; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 1; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 0; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 2; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateCreMovesMulti; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2272 { on (release) { var numid = 3; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 0; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 1; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 0; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 2; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 1; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 0; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateCreMovesMulti; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } button 2273 { on (release) { var numid = 4; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; if (_root.statsInventoryGifts[numid] >= 1) { if (_root.varChosenGirl == 0) { effectivelevel = 1; _root.diaDialog = _root.diaTrishGive[1]; } else { if (_root.varChosenGirl == 1) { effectivelevel = 0; _root.diaDialog = _root.diaDonnaGive[1]; } else { if (_root.varChosenGirl == 2) { effectivelevel = 1; _root.diaDialog = _root.diaBreeGive[1]; } else { if (_root.varChosenGirl == 3) { effectivelevel = 0; _root.diaDialog = _root.diaAllieGive[1]; } else { if (_root.varChosenGirl == 4) { effectivelevel = 2; _root.diaDialog = _root.diaNeneGive[1]; } else { if (_root.varChosenGirl == 5) { effectivelevel = 0; _root.diaDialog = _root.diaHunniGive[1]; } } } } } } --_root.statsInventoryGifts[numid]; if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk && _root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { _root.varDatePicoHP = 0; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); } else { if (_root.varDateGiftsGiven >= _root.tuneDateMaxGifts) { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDatePicoHP -= damage * 2; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('red'); _parent.girlchara.sprite.gotoAndStop('datebad'); _root.diaDialog = _root.diaGroupDateGiftRefuse[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } else { damage = (_root.tuneDateItemDamage[effectivelevel] + _root.tuneDateItemDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateItemCap[girllevel - 1]) { damage = _root.tuneDateItemCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateCreMovesMulti; --_root.varDateCreMoves; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _parent.play(); ++_root.varDateGiftsGiven; gotoAndStop(1); } } } } } movieClip 2286 { frame 5 { stop(); } } button 2288 { on (rollOver, dragOver) { _parent.hudHelp.gotoAndStop('sen'); } on (rollOut, dragOut) { _parent.hudHelp.gotoAndStop(1); } on (release) { var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var damage = 0; damage = (_root.tuneDateQuestionDamage + _root.tuneDateQuestionDamage * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateQuestionCap[girllevel - 1]) { damage = _root.tuneDateQuestionCap[girllevel - 1]; } _root.varDatePicoHP += damage; if (_root.varDatePicoHP >= _root.varDatePicoHPMax) { _root.varDatePicoHP = _root.varDatePicoHPMax; } --_root.varDateSenMoves; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateMoveResponseSen[_root.varChosenGirl]; _parent.play(); gotoAndStop(1); } } movieClip 2295 { frame 5 { stop(); } } button 2297 { on (rollOver, dragOver) { _parent.hudHelp.gotoAndStop('aud'); } on (rollOut, dragOut) { _parent.hudHelp.gotoAndStop(1); } on (release) { _parent.hudHelp.gotoAndStop(1); gotoAndStop('aud2'); } } button 2299 { on (release) { var numid = 0; var chosenper = _parent.chosentopics[numid]; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; effectivelevel = _root.tuneDateTopicEffect[_root.varChosenGirl][chosenper]; damage = (_root.tuneDateTalkTopicDamage[effectivelevel] + _root.tuneDateTalkTopicDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateTalkTopicCap[girllevel - 1]) { damage = _root.tuneDateTalkTopicCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateAudMovesMulti; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateMoveResponseAud[_root.varChosenGirl]; _parent.play(); --_root.varDateAudMoves; ++_root.varDateTalksGiven; gotoAndStop(1); } } button 2300 { on (release) { var numid = 1; var chosenper = _parent.chosentopics[numid]; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; effectivelevel = _root.tuneDateTopicEffect[_root.varChosenGirl][chosenper]; damage = (_root.tuneDateTalkTopicDamage[effectivelevel] + _root.tuneDateTalkTopicDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateTalkTopicCap[girllevel - 1]) { damage = _root.tuneDateTalkTopicCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateAudMovesMulti; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateMoveResponseAud[_root.varChosenGirl]; _parent.play(); --_root.varDateAudMoves; ++_root.varDateTalksGiven; gotoAndStop(1); } } button 2301 { on (release) { var numid = 2; var chosenper = _parent.chosentopics[numid]; var girllevel = _root.statsGirlRLevel[_root.varChosenGirl] - 2; var charmmin = _root.tuneDateCharmLevelMin[girllevel - 1]; var charm = _root.statsCharm; var effectivelevel = 0; var damage = 0; effectivelevel = _root.tuneDateTopicEffect[_root.varChosenGirl][chosenper]; damage = (_root.tuneDateTalkTopicDamage[effectivelevel] + _root.tuneDateTalkTopicDamage[effectivelevel] * (charm / charmmin)) * girllevel; if (damage >= _root.tuneDateTalkTopicCap[girllevel - 1]) { damage = _root.tuneDateTalkTopicCap[girllevel - 1]; } _root.varDateGirlHP -= damage * _root.tuneDateAudMovesMulti; _parent.dateDia.gotoAndPlay('talk'); _parent.girlchara.sprite.gotoAndStop('dategood'); _root.diaDialog = _root.diaGroupDateMoveResponseAud[_root.varChosenGirl]; _parent.play(); --_root.varDateAudMoves; ++_root.varDateTalksGiven; gotoAndStop(1); } } button 2307 { on (release) { if (_root.varChosenGirl == 0) { _parent._parent.cutsceneTrish.gotoAndStop('dateleave'); } else { if (_root.varChosenGirl == 1) { _parent._parent.cutsceneDonna.gotoAndStop('dateleave'); } else { if (_root.varChosenGirl == 2) { _parent._parent.cutsceneBree.gotoAndStop('dateleave'); } else { if (_root.varChosenGirl == 3) { _parent._parent.cutsceneAllie.gotoAndStop('dateleave'); } else { if (_root.varChosenGirl == 4) { _parent._parent.cutsceneNene.gotoAndStop('dateleave'); } else { if (_root.varChosenGirl == 5) { _parent._parent.cutsceneHunni.gotoAndStop('dateleave'); } } } } } } _root.musicCurrentTrack = 1; stopAllSounds(); _parent.gotoAndStop('done'); gotoAndStop(1); } } movieClip 2309 { frame 1 { stop(); } frame 2 { stop(); disGift0 = _root.statsInventoryGifts[0]; disGift1 = _root.statsInventoryGifts[1]; disGift2 = _root.statsInventoryGifts[2]; disGift3 = _root.statsInventoryGifts[3]; disGift4 = _root.statsInventoryGifts[4]; disGift5 = _root.statsInventoryGifts[5]; } frame 3 { topic0 = _root.dateTalkTopics[_parent.chosentopics[0]][_parent.chosentopicnum[0]]; topic1 = _root.dateTalkTopics[_parent.chosentopics[1]][_parent.chosentopicnum[1]]; topic2 = _root.dateTalkTopics[_parent.chosentopics[2]][_parent.chosentopicnum[2]]; icon0.gotoAndStop(_parent.chosentopics[0] + 1); icon1.gotoAndStop(_parent.chosentopics[1] + 1); icon2.gotoAndStop(_parent.chosentopics[2] + 1); } frame 5 { if (_root.varChosenGirl == 0) { answer0 = _root.diaTrishDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[0]]; answer1 = _root.diaTrishDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[1]]; answer2 = _root.diaTrishDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[2]]; answer3 = _root.diaTrishDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[3]]; } else { if (_root.varChosenGirl == 1) { answer0 = _root.diaDonnaDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[0]]; answer1 = _root.diaDonnaDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[1]]; answer2 = _root.diaDonnaDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[2]]; answer3 = _root.diaDonnaDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[3]]; } else { if (_root.varChosenGirl == 2) { answer0 = _root.diaBreeDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[0]]; answer1 = _root.diaBreeDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[1]]; answer2 = _root.diaBreeDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[2]]; answer3 = _root.diaBreeDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[3]]; } else { if (_root.varChosenGirl == 3) { answer0 = _root.diaAllieDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[0]]; answer1 = _root.diaAllieDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[1]]; answer2 = _root.diaAllieDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[2]]; answer3 = _root.diaAllieDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[3]]; } else { if (_root.varChosenGirl == 4) { answer0 = _root.diaNeneDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[0]]; answer1 = _root.diaNeneDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[1]]; answer2 = _root.diaNeneDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[2]]; answer3 = _root.diaNeneDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[3]]; } else { if (_root.varChosenGirl == 5) { answer0 = _root.diaHunniDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[0]]; answer1 = _root.diaHunniDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[1]]; answer2 = _root.diaHunniDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[2]]; answer3 = _root.diaHunniDateAnswers[_parent.chosenQuestions[_parent.currentQuestion]][_parent.chosenAnswers[3]]; } } } } } } dil0._visible = false; dil1._visible = false; dil2._visible = false; dil3._visible = false; if (_parent.diligenceCheck[0] != undefined) { this['dil' + _parent.diligenceCheck[0]]._visible = true; this['dil' + _parent.diligenceCheck[1]]._visible = true; } } frame 10 { stop(); disGift0 = _root.statsInventoryGifts[0]; disGift1 = _root.statsInventoryGifts[1]; disGift2 = _root.statsInventoryGifts[2]; disGift3 = _root.statsInventoryGifts[3]; disGift4 = _root.statsInventoryGifts[4]; disGift5 = _root.statsInventoryGifts[5]; } frame 13 { topic0 = _root.dateBoldTopics[_parent.chosentopics[0]]; topic1 = _root.dateBoldTopics[_parent.chosentopics[1]]; topic2 = _root.dateBoldTopics[_parent.chosentopics[2]]; icon0.gotoAndStop(_parent.chosentopics[0] + 1); icon1.gotoAndStop(_parent.chosentopics[1] + 1); icon2.gotoAndStop(_parent.chosentopics[2] + 1); } } movieClip 2311 { frame 1 { stop(); } frame 85 { stop(); if (_root.varChosenGirl == 0) { _parent._parent.cutsceneTrish.gotoAndStop('datefail'); } else { if (_root.varChosenGirl == 1) { _parent._parent.cutsceneDonna.gotoAndStop('datefail'); } else { if (_root.varChosenGirl == 2) { _parent._parent.cutsceneBree.gotoAndStop('datefail'); } else { if (_root.varChosenGirl == 3) { _parent._parent.cutsceneAllie.gotoAndStop('datefail'); } else { if (_root.varChosenGirl == 4) { _parent._parent.cutsceneNene.gotoAndStop('datefail'); } else { if (_root.varChosenGirl == 5) { _parent._parent.cutsceneHunni.gotoAndStop('datefail'); } } } } } } _root.musicCurrentTrack = 1; stopAllSounds(); _parent.gotoAndStop('done'); } } movieClip 2317 { frame 5 { stop(); } } button 2319 { on (release) { if (dateMenu._currentframe != 8) { dateMenu.gotoAndStop('dil'); } else { dateMenu.gotoAndStop(1); } } } movieClip 2323 { frame 5 { stop(); } } button 2325 { on (release) { if (dateMenu._currentframe != 6) { dateMenu.gotoAndStop('hum'); } else { dateMenu.gotoAndStop(1); } } } movieClip 2329 { frame 5 { stop(); } } button 2331 { on (release) { if (dateMenu._currentframe != 7) { dateMenu.gotoAndStop('con'); } else { dateMenu.gotoAndStop(1); } } } movieClip 2336 { frame 5 { stop(); } } button 2337 { on (release) { if (dateMenu._currentframe != 4) { dateMenu.gotoAndStop('refuse'); } else { dateMenu.gotoAndStop(1); } } } movieClip 2342 { frame 5 { stop(); } } button 2343 { on (release) { if (dateMenu._currentframe != 5) { dateMenu.gotoAndStop('answer'); } else { dateMenu.gotoAndStop(1); } } } movieClip 2345 { frame 10 { stop(); } } movieClip 2347 { } button 2351 { on (release) { play(); } } movieClip 2352 { frame 109 { stop(); _parent.gotoAndStop('datefinish'); } } button 2353 { on (release) { if (_root.varChosenGirl == 0) { if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == undefined) { _parent.cutsceneTrish.gotoAndStop('level3'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == undefined) { _parent.cutsceneTrish.gotoAndStop('level4'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == undefined) { _parent.cutsceneTrish.gotoAndStop('level5'); } else { _parent.cutsceneTrish.gotoAndStop('datewin'); } } } } else { if (_root.varChosenGirl == 1) { if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == undefined) { _parent.cutsceneDonna.gotoAndStop('level3'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == undefined) { _parent.cutsceneDonna.gotoAndStop('level4'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == undefined) { _parent.cutsceneDonna.gotoAndStop('level5'); } else { _parent.cutsceneDonna.gotoAndStop('datewin'); } } } } else { if (_root.varChosenGirl == 2) { if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == undefined) { _parent.cutsceneBree.gotoAndStop('level3'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == undefined) { _parent.cutsceneBree.gotoAndStop('level4'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == undefined) { _parent.cutsceneBree.gotoAndStop('level5'); } else { _parent.cutsceneBree.gotoAndStop('datewin'); } } } } else { if (_root.varChosenGirl == 3) { if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == undefined) { _parent.cutsceneAllie.gotoAndStop('level3'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == undefined) { _parent.cutsceneAllie.gotoAndStop('level4'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == undefined) { _parent.cutsceneAllie.gotoAndStop('level5'); } else { _parent.cutsceneAllie.gotoAndStop('datewin'); } } } } else { if (_root.varChosenGirl == 4) { if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == undefined) { _parent.cutsceneNene.gotoAndStop('level3'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == undefined) { _parent.cutsceneNene.gotoAndStop('level4'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == undefined) { _parent.cutsceneNene.gotoAndStop('level5'); } else { _parent.cutsceneNene.gotoAndStop('datewin'); } } } } else { if (_root.varChosenGirl == 5) { if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == undefined) { _parent.cutsceneHunni.gotoAndStop('level3'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == undefined) { _parent.cutsceneHunni.gotoAndStop('level4'); } else { if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == undefined) { _parent.cutsceneHunni.gotoAndStop('level5'); } else { _parent.cutsceneHunni.gotoAndStop('datewin'); } } } } } } } } } nextFrame(); } } movieClip 2354 { frame 1 { var girls = new Array('Trish', 'Donna', 'Bree', 'Allie', 'Nene', 'Hun-Ni'); disGirl = girls[_root.varChosenGirl]; _root.diaName = girls[_root.varChosenGirl]; disLvl = 'Lv. ' + _root.statsGirlRLevel[_root.varChosenGirl]; _root.diaDialog = _root.diaGroupDateIntro[_root.varChosenGirl]; _root.varDateGirlHPMax = (_root.statsGirlRLevel[_root.varChosenGirl] - 2) * 100; _root.varDateGirlHP = _root.varDateGirlHPMax; _root.varDateGirlLerp = _root.varDateGirlHPMax; _root.varDatePicoHPMax = _root.statsCharm + 50; _root.varDatePicoHP = _root.varDatePicoHPMax; _root.varDatePicoLerp = _root.varDatePicoHPMax; _root.varDateGiftsGiven = 0; _root.varDateTalksGiven = 0; _root.varDateKissing = false; stop(); var hum = _root.tuneDateHumMoves.length - 1; while (hum >= 0) { if (_root.statsHum >= _root.tuneDateHumMoves[hum]) { _root.varDateHumMoves = hum + 1; break; } else { if (_root.statsHum < _root.tuneDateHumMoves[0]) { _root.varDateHumMoves = 0; break; } } --hum; } var con = _root.tuneDateConMoves.length - 1; while (con >= 0) { if (_root.statsCon >= _root.tuneDateConMoves[con]) { _root.varDateConMoves = con + 1; break; } else { if (_root.statsCon < _root.tuneDateConMoves[0]) { _root.varDateConMoves = 0; break; } } --con; } var dil = _root.tuneDateDilMoves.length - 1; while (dil >= 0) { if (_root.statsDil >= _root.tuneDateDilMoves[dil]) { _root.varDateDilMoves = dil + 1; break; } else { if (_root.statsDil < _root.tuneDateDilMoves[0]) { _root.varDateDilMoves = 0; break; } } --dil; } var cre = _root.tuneDateCreMoves.length - 1; while (cre >= 0) { if (_root.statsCre >= _root.tuneDateCreMoves[cre]) { _root.varDateCreMoves = cre + 1; break; } else { if (_root.statsCre < _root.tuneDateCreMoves[0]) { _root.varDateCreMoves = 0; break; } } --cre; } var sen = _root.tuneDateSenMoves.length - 1; while (sen >= 0) { if (_root.statsSen >= _root.tuneDateSenMoves[sen]) { _root.varDateSenMoves = sen + 1; break; } else { if (_root.statsSen < _root.tuneDateSenMoves[0]) { _root.varDateSenMoves = 0; break; } } --sen; } var aud = _root.tuneDateAudMoves.length - 1; while (aud >= 0) { if (_root.statsAud >= _root.tuneDateAudMoves[aud]) { _root.varDateAudMoves = aud + 1; break; } else { if (_root.statsAud < _root.tuneDateAudMoves[0]) { _root.varDateAudMoves = 0; break; } } --aud; } if (_root.varDateSenMoves <= 0) { btnSen._visible = false; } else { btnSen._visible = true; } if (_root.varDateCreMoves <= 0) { btnCre._visible = false; } else { btnCre._visible = true; } if (_root.varDateAudMoves <= 0) { btnAud._visible = false; } else { btnAud._visible = true; } } instance girlchara of movieClip 2097 { onClipEvent (load) { var velocityx = 0; var friction = _root.frictionGirl; } onClipEvent (enterFrame) { var screenwidth = 850; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } frame 2 { stop(); dateDia.gotoAndPlay('talk'); girlchara.sprite.gotoAndStop('normal'); _root.varDateGirlLerp = _root.varDateGirlHP; _root.varDatePicoLerp = _root.varDatePicoHP; if (_root.varDateSenMoves <= 0) { btnSen._visible = false; } else { btnSen._visible = true; } if (_root.varDateCreMoves <= 0) { btnCre._visible = false; } else { btnCre._visible = true; } if (_root.varDateAudMoves <= 0) { btnAud._visible = false; } else { btnAud._visible = true; } var topics = new Array(0, 1, 2, 3, 4, 5); chosentopics = new Array(); chosentopicnum = new Array(); var i = 0; while (i < 3) { var diceroll = _root.funcRandom(0, topics.length - 1); chosentopics.push(topics[diceroll]); topics.splice(diceroll, 1); chosentopicnum.push(_root.funcRandom(0, 2)); ++i; } } instance hudHelp of movieClip 506 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { this._x = _level0._xmouse; this._y = _level0._ymouse; } } instance of movieClip 437 { onClipEvent (load) { if (_root.varDateGirlLerp != _root.varDateGirlHP) { _parent.girlhud.fx.gotoAndPlay(2); _parent.girlchara.fx.gotoAndPlay(2); } if (_root.varDatePicoLerp != _root.varDatePicoHP) { _parent.picohud.fx.gotoAndPlay(2); } var lerpFriction = 5; } onClipEvent (enterFrame) { _root.varDateGirlLerp += (_root.varDateGirlHP - _root.varDateGirlLerp) / lerpFriction; _root.varDatePicoLerp += (_root.varDatePicoHP - _root.varDatePicoLerp) / lerpFriction; } } frame 49 { if (_root.varDatePicoHP <= 0) { stop(); fxFail.gotoAndPlay(2); } else { if (_root.varDateGirlHP <= 0) { gotoAndStop('kiss'); } else { if (_root.varDateTalksGiven >= _root.tuneDateMaxTalk) { gotoAndStop('TurnPlayer'); } } } } frame 50 { stop(); dateDia.gotoAndPlay('blue'); girlchara.sprite.gotoAndStop('normal'); _root.varDateGirlLerp = _root.varDateGirlHP; _root.varDatePicoLerp = _root.varDatePicoHP; if (_root.varDateHumMoves <= 0) { btnHum._visible = false; } else { btnHum._visible = true; } if (_root.varDateConMoves <= 0) { btnCon._visible = false; } else { btnCon._visible = true; } if (_root.varDateDilMoves <= 0) { btnDil._visible = false; } else { btnDil._visible = true; } currentQuestion = 0; diligenceCheck = new Array(); var questionarray = new Array(); var i = 0; while (i < _root.diaAllieDateQuestion.length) { questionarray[i] = i; ++i; } chosenQuestions = new Array(); var diceroll = _root.funcRandom(0, questionarray.length - 1); chosenQuestions[0] = questionarray[diceroll]; questionarray.splice(diceroll, 1); diceroll = _root.funcRandom(0, questionarray.length - 1); chosenQuestions[1] = questionarray[diceroll]; chosenAnswers = new Array(); correctAnswer = 0; var answerarray = new Array(); var i = 0; while (i < _root.diaAllieDateAnswers[0].length) { answerarray[i] = i; ++i; } var roll = 0; while (roll < _root.diaAllieDateAnswers[0].length) { diceroll = _root.funcRandom(0, answerarray.length - 1); chosenAnswers[roll] = answerarray[diceroll]; answerarray.splice(diceroll, 1); if (chosenAnswers[roll] == 0) { correctAnswer = roll; } ++roll; } if (_root.varChosenGirl == 0) { _root.diaDialog = _root.diaTrishDateQuestion[chosenQuestions[currentQuestion]]; } else { if (_root.varChosenGirl == 1) { _root.diaDialog = _root.diaDonnaDateQuestion[chosenQuestions[currentQuestion]]; } else { if (_root.varChosenGirl == 2) { _root.diaDialog = _root.diaBreeDateQuestion[chosenQuestions[currentQuestion]]; } else { if (_root.varChosenGirl == 3) { _root.diaDialog = _root.diaAllieDateQuestion[chosenQuestions[currentQuestion]]; } else { if (_root.varChosenGirl == 4) { _root.diaDialog = _root.diaNeneDateQuestion[chosenQuestions[currentQuestion]]; } else { if (_root.varChosenGirl == 5) { _root.diaDialog = _root.diaHunniDateQuestion[chosenQuestions[currentQuestion]]; } } } } } } } instance hudHelp of movieClip 506 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { this._x = _level0._xmouse; this._y = _level0._ymouse; } } instance of movieClip 437 { onClipEvent (load) { if (_root.varDateGirlLerp != _root.varDateGirlHP) { _parent.girlhud.fx.gotoAndPlay(2); _parent.girlchara.fx.gotoAndPlay(2); } if (_root.varDatePicoLerp != _root.varDatePicoHP) { _parent.picohud.fx.gotoAndPlay(2); } var lerpFriction = 5; } onClipEvent (enterFrame) { _root.varDateGirlLerp += (_root.varDateGirlHP - _root.varDateGirlLerp) / lerpFriction; _root.varDatePicoLerp += (_root.varDatePicoHP - _root.varDatePicoLerp) / lerpFriction; } } frame 105 { if (_root.varDatePicoHP <= 0) { stop(); fxFail.gotoAndPlay(2); } else { if (_root.varDateGirlHP <= 0) { gotoAndStop('kiss'); } else { gotoAndStop('TurnPlayer'); } } } frame 106 { stop(); dateDia.gotoAndPlay('pink'); girlchara.sprite.gotoAndStop('datekiss'); _root.varDateGirlLerp = 0; _root.diaDialog = _root.diaGroupDateKiss[_root.varChosenGirl]; } frame 107 { _root.varDateKissing = true; stopAllSounds(); if (_root.musicIsOn) { _root.musicWorldReset = true; _root.musicCurrentTrack = 96; _root.musicVictory.start(0.5, 0); } } instance girlchara of movieClip 2097 { onClipEvent (enterFrame) { this.sprite.gotoandStop('datekiss'); } } frame 195 { stop(); } } movieClip 2358 { } movieClip 2360 { } movieClip 2361 { frame 74 { stop(); _parent.sysDate.nextFrame(); } } movieClip 2362 { frame 1 { stop(); _root.musicCurrentTrack = 1; _root.guiMusicTrack._visible = true; if (_root.musicIsOn && _root.musicWorldReset) { stopAllSounds(); _root.musicWorld.start(0, 100); _root.musicWorldReset = false; } } instance of movieClip 610 { onClipEvent (load) { var velocityx = 0; var velocityy = 0; var friction = _root.frictionWorld; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance of movieClip 437 { onClipEvent (load) { _root.funcDisMoneyUpdate(); } } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop(_parent._currentframe - 1); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance nguMenu of movieClip 982 { onClipEvent (load) { if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } instance of movieClip 1129 { onClipEvent (load) { if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } instance of movieClip 1282 { onClipEvent (load) { if (_root.statsTime == 1) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } instance of movieClip 1391 { onClipEvent (load) { if (_root.statsTime == 1) { gotoAndStop('open'); } else { gotoAndStop('closed'); } } } instance of movieClip 1481 { onClipEvent (load) { if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } instance of movieClip 1686 { onClipEvent (load) { if (_root.statsTime == 3) { gotoAndStop('night'); } else { if (_root.statsTime == 2) { gotoAndStop('noon'); } else { if (_root.statsTime == 1) { gotoAndStop('morning'); } } } } } instance of movieClip 1755 { onClipEvent (load) { if (_root.statsTime == 3) { gotoAndStop('closed'); } else { gotoAndStop('open'); } } } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-art'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance cutsceneAllie of movieClip 1920 { onClipEvent (load) { _root.varChosenGirl = 3; if (_root.statsGirlRLevel[_root.varChosenGirl] == 1 && _root.statsGirlTaskActive[_root.varChosenGirl][0] == true) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'spacepart1') { this.gotoAndStop('done1'); _root.funcCompleteTask('a1', 'a1done'); _root.statsGirlTaskActive[_root.varChosenGirl][0] = false; _root.statsGirlTexts.unshift('a1unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); break; } ++i; } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == true) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'spacepart2') { this.gotoAndStop('done2'); _root.funcCompleteTask('a2', 'a2done'); _root.statsGirlTaskActive[_root.varChosenGirl][1] = false; _root.statsGirlTexts.unshift('a2unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); break; } ++i; } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == true) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'spacepart3') { this.gotoAndStop('done3'); _root.funcCompleteTask('a3', 'a3done'); _root.statsGirlTaskActive[_root.varChosenGirl][2] = false; _root.statsGirlTexts.unshift('a3unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); break; } ++i; } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == true) { if (_root.statsBrains >= 300) { this.gotoAndStop('done4'); _root.funcCompleteTask('a4', 'a4done'); _root.statsGirlTaskActive[_root.varChosenGirl][3] = false; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-park'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance cutsceneBree of movieClip 1953 { onClipEvent (load) { _root.varChosenGirl = 2; if (_root.statsGirlRLevel[_root.varChosenGirl] == 1 && _root.statsGirlTaskActive[_root.varChosenGirl][0] == true) { if (_root.statsHum >= 30) { this.gotoAndStop('done1'); _root.funcCompleteTask('b1', 'b1done'); _root.statsGirlTaskActive[_root.varChosenGirl][0] = false; _root.statsGirlTexts.unshift('b1unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == true) { if (_root.statsFlashMadeHum >= 3) { this.gotoAndStop('done2'); _root.funcCompleteTask('b2', 'b2done'); _root.statsGirlTaskActive[_root.varChosenGirl][1] = false; _root.statsGirlTexts.unshift('b2unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == true) { if (_root.statsBalls >= 300) { this.gotoAndStop('done3'); _root.funcCompleteTask('b3', 'b3done'); _root.statsGirlTaskActive[_root.varChosenGirl][2] = false; _root.statsGirlTexts.unshift('b3unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == true) { if (_root.taskBreeFoundVillage) { this.gotoAndStop('done4'); _root.funcCompleteTask('b4', 'b4done'); _root.statsGirlTaskActive[_root.varChosenGirl][3] = false; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-bbs'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance cutsceneTrish of movieClip 1993 { onClipEvent (load) { _root.varChosenGirl = 0; if (_root.statsGirlRLevel[_root.varChosenGirl] == 1 && _root.statsGirlTaskActive[_root.varChosenGirl][0] == true) { if (_root.statsArtMade >= 3) { this.gotoAndStop('done1'); _root.funcCompleteTask('t1', 't1done'); _root.statsGirlTaskActive[_root.varChosenGirl][0] = false; _root.statsGirlTexts.unshift('t1unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == true) { if (_root.statsBBSRank >= 4) { this.gotoAndStop('done2'); _root.funcCompleteTask('t2', 't2done'); _root.statsGirlTaskActive[_root.varChosenGirl][1] = false; _root.statsGirlTexts.unshift('t2unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == true) { if (_root.statsMoney >= 550) { _root.statsMoney -= 550; this.gotoAndStop('done3'); _root.funcCompleteTask('t3', 't3done'); _root.statsGirlTaskActive[_root.varChosenGirl][2] = false; _root.statsGirlTexts.unshift('t3unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == true) { if (_root.statsPortalRank >= 9) { this.gotoAndStop('done4'); _root.funcCompleteTask('t4', 't4done'); _root.statsGirlTaskActive[_root.varChosenGirl][3] = false; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-gym'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance cutsceneDonna of movieClip 2023 { onClipEvent (load) { _root.varChosenGirl = 1; if (_root.statsGirlRLevel[_root.varChosenGirl] == 1 && _root.statsGirlTaskActive[_root.varChosenGirl][0] == true) { if (_root.statsPortalRank >= 2) { this.gotoAndStop('done1'); _root.funcCompleteTask('d1', 'd1done'); _root.statsGirlTaskActive[_root.varChosenGirl][0] = false; _root.statsGirlTexts.unshift('d1unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == true) { if (_root.statsGrade >= 9) { this.gotoAndStop('done2'); _root.funcCompleteTask('d2', 'd2done'); _root.statsGirlTaskActive[_root.varChosenGirl][1] = false; _root.statsGirlTexts.unshift('d2unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == true) { if (_root.statsArtMasterpieces >= 1) { this.gotoAndStop('done3'); _root.funcCompleteTask('d3', 'd3done'); _root.statsGirlTaskActive[_root.varChosenGirl][2] = false; _root.statsGirlTexts.unshift('d3unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == true) { if (_root.statsCharm >= 300) { this.gotoAndStop('done4'); _root.funcCompleteTask('d4', 'd4done'); _root.statsGirlTaskActive[_root.varChosenGirl][3] = false; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-bar'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('girl-library'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; velocityy = (_level0._ymouse / screenheight) * -100; _x = _x + (velocityx - _x) / friction; _y = _y + (velocityy - _y) / friction; } } instance cutsceneHunni of movieClip 2081 { onClipEvent (load) { _root.varChosenGirl = 5; if (_root.statsGirlRLevel[_root.varChosenGirl] == 1 && _root.statsGirlTaskActive[_root.varChosenGirl][0] == true) { if (_root.statsGrade >= 4) { this.gotoAndStop('done1'); _root.funcCompleteTask('h1', 'h1done'); _root.statsGirlTaskActive[_root.varChosenGirl][0] = false; _root.statsGirlTexts.unshift('h1unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 3 && _root.statsGirlTaskActive[_root.varChosenGirl][1] == true) { if (_root.statsFlashMadeDil >= 3) { this.gotoAndStop('done2'); _root.funcCompleteTask('h2', 'h2done'); _root.statsGirlTaskActive[_root.varChosenGirl][1] = false; _root.statsGirlTexts.unshift('h2unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 4 && _root.statsGirlTaskActive[_root.varChosenGirl][2] == true) { var i = 0; while (i <= _root.statsInventoryKey.length) { if (_root.statsInventoryKey[i] == 'moonspeak') { this.gotoAndStop('done3'); _root.funcCompleteTask('h3', 'h3done'); _root.statsGirlTaskActive[_root.varChosenGirl][2] = false; _root.statsGirlTexts.unshift('h3unread'); _root.statsAlertText = true; _root.guiMain.guiCellAlert.gotoAndStop(2); ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); break; } ++i; } } if (_root.statsGirlRLevel[_root.varChosenGirl] == 5 && _root.statsGirlTaskActive[_root.varChosenGirl][3] == true) { if (_root.statsBBSRank >= 9) { this.gotoAndStop('done4'); _root.funcCompleteTask('h4', 'h4done'); _root.statsGirlTaskActive[_root.varChosenGirl][3] = false; ++_root.statsGirlRLevel[_root.varChosenGirl]; _root.funcDisRelationUpdate(); } } } } instance worldbg of movieClip 641 { onClipEvent (load) { this.gotoAndStop('date1'); var velocityx = 0; var velocityy = 0; var friction = _root.frictionLocation; } onClipEvent (enterFrame) { var screenwidth = 850; var screenheight = 550; velocityx = (_level0._xmouse / screenwidth) * -100; _x = _x + (velocityx - _x) / friction; } } } movieClip 2376 { } movieClip 2384 { frame 1 { stop(); } } movieClip 2385 { frame 1 { stop(); } instance anim of movieClip 2384 { onClipEvent (load) { gotoAndStop(_root.statsTime); } } } movieClip 2386 { frame 1 { stop(); } } button 2388 { on (release) { if (_root.statsAlertTask || _root.statsAlertText) { _root.guiMain.guiCellAlert.gotoAndStop(2); } gotoAndStop(1); } } button 2389 { on (release) { if (_root.statsAlertTask || _root.statsAlertText) { _root.guiMain.guiCellAlert.gotoAndStop(2); } gotoAndStop(1); } } movieClip 2392 { } movieClip 2396 { } movieClip 2400 { } movieClip 2403 { } movieClip 2404 { instance of movieClip 2403 { onClipEvent (load) { gotoAndPlay(2); } } instance of movieClip 2403 { onClipEvent (load) { gotoAndPlay(40); } } instance of movieClip 2403 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } instance of movieClip 287 { onClipEvent (load) { gotoAndPlay(int(Math.random() * 45 + 1)); } } } button 2407 { on (release) { cellphotos.gotoAndStop(2); } } button 2408 { on (release) { _root.statsAlertText = false; gotoAndStop('texts'); } } button 2409 { on (release) { _root.statsAlertTask = false; gotoAndStop('tasks'); } } button 2410 { on (release) { gotoAndStop('items'); } } movieClip 2423 { } movieClip 2424 { instance of movieClip 437 { onClipEvent (load) { initialWidth = this._width; this._width = initialWidth / (_root.statsMax / _root.statsBalls); } } } movieClip 2426 { instance of movieClip 437 { onClipEvent (load) { initialWidth = this._width; this._width = initialWidth / (_root.statsMax / _root.statsBrains); } } } movieClip 2428 { instance of movieClip 437 { onClipEvent (load) { initialWidth = this._width; this._width = initialWidth / (_root.statsMax / _root.statsCharm); } } } movieClip 2445 { instance of movieClip 437 { onClipEvent (load) { initialWidth = this._width; this._width = initialWidth / (_root.statsFlashMax / _root.statsFlash); } } } movieClip 2451 { } movieClip 2465 { frame 1 { var creper = _root.statsCre / _root.statsPerMax; var conper = _root.statsCon / _root.statsPerMax; var dilper = _root.statsDil / _root.statsPerMax; var senper = _root.statsSen / _root.statsPerMax; var humper = _root.statsHum / _root.statsPerMax; var audper = _root.statsAud / _root.statsPerMax; if (creper >= 0.87) { var crex = uc5._x; var crey = uc5._y; } else { if (creper >= 0.75) { var crex = uc4._x; var crey = uc4._y; } else { if (creper >= 0.5) { var crex = uc3._x; var crey = uc3._y; } else { if (creper >= 0.25) { var crex = uc2._x; var crey = uc2._y; } else { var crex = uc1._x; var crey = uc1._y; } } } } if (conper >= 0.87) { var conx = ur5._x; var cony = ur5._y; } else { if (conper >= 0.75) { var conx = ur4._x; var cony = ur4._y; } else { if (conper >= 0.5) { var conx = ur3._x; var cony = ur3._y; } else { if (conper >= 25) { var conx = ur2._x; var cony = ur2._y; } else { var conx = ur1._x; var cony = ur1._y; } } } } if (dilper >= 0.87) { var dilx = dl5._x; var dily = dl5._y; } else { if (dilper >= 0.75) { var dilx = dl4._x; var dily = dl4._y; } else { if (dilper >= 0.5) { var dilx = dl3._x; var dily = dl3._y; } else { if (dilper >= 0.25) { var dilx = dl2._x; var dily = dl2._y; } else { var dilx = dl1._x; var dily = dl1._y; } } } } if (senper >= 0.87) { var senx = dc5._x; var seny = dc5._y; } else { if (senper >= 0.75) { var senx = dc4._x; var seny = dc4._y; } else { if (senper >= 0.5) { var senx = dc3._x; var seny = dc3._y; } else { if (senper >= 0.25) { var senx = dc2._x; var seny = dc2._y; } else { var senx = dc1._x; var seny = dc1._y; } } } } if (humper >= 0.87) { var humx = dr5._x; var humy = dr5._y; } else { if (humper >= 0.75) { var humx = dr4._x; var humy = dr4._y; } else { if (humper >= 0.5) { var humx = dr3._x; var humy = dr3._y; } else { if (humper >= 0.25) { var humx = dr2._x; var humy = dr2._y; } else { var humx = dr1._x; var humy = dr1._y; } } } } if (audper >= 0.87) { var audx = ul5._x; var audy = ul5._y; } else { if (audper >= 0.75) { var audx = ul4._x; var audy = ul4._y; } else { if (audper >= 0.5) { var audx = ul3._x; var audy = ul3._y; } else { if (audper >= 0.25) { var audx = ul2._x; var audy = ul2._y; } else { var audx = ul1._x; var audy = ul1._y; } } } } this.lineStyle(2, 0, 0, true, 'none', 'round', 'miter', 1); this.beginFill(16761856, 80); this.moveTo(crex, crey); this.lineTo(conx, cony); this.lineTo(humx, humy); this.lineTo(senx, seny); this.lineTo(dilx, dily); this.lineTo(audx, audy); this.endFill(); } } movieClip 2507 { frame 1 { stop(); } } button 2509 { on (release) { gotoAndStop(1); } } button 2512 { on (release) { var num = 25; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2513 { on (release) { var num = 26; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2514 { on (release) { var num = 27; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2515 { on (release) { var num = 28; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2516 { on (release) { var num = 29; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2517 { on (release) { var num = 20; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2518 { on (release) { var num = 21; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2519 { on (release) { var num = 22; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2520 { on (release) { var num = 23; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2521 { on (release) { var num = 24; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2522 { on (release) { var num = 15; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2523 { on (release) { var num = 16; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2524 { on (release) { var num = 17; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2525 { on (release) { var num = 18; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2526 { on (release) { var num = 19; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2527 { on (release) { var num = 10; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2528 { on (release) { var num = 11; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2529 { on (release) { var num = 12; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2530 { on (release) { var num = 13; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2531 { on (release) { var num = 14; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2532 { on (release) { var num = 5; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2533 { on (release) { var num = 6; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2534 { on (release) { var num = 7; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2535 { on (release) { var num = 8; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2536 { on (release) { var num = 9; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2537 { on (release) { var num = 0; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2538 { on (release) { var num = 1; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2539 { on (release) { var num = 2; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2540 { on (release) { var num = 3; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } button 2541 { on (release) { var num = 4; if (num < _root.statsGirlPhotos.length) { _root.varChosenPhoto = num; gotoAndStop('photoview'); } } } movieClip 2562 { frame 1 { stop(); } } button 2563 { on (release) { if (_root.varChosenPhoto > 0) { --_root.varChosenPhoto; photo.gotoAndStop(_root.statsGirlPhotos[_root.varChosenPhoto]); } else { gotoAndStop('photomenu'); } } } button 2564 { on (release) { if (_root.varChosenPhoto < _root.statsGirlPhotos.length - 1) { ++_root.varChosenPhoto; photo.gotoAndStop(_root.statsGirlPhotos[_root.varChosenPhoto]); } else { gotoAndStop('photomenu'); } } } button 2567 { on (release) { gotoAndStop('photomenu'); } } movieClip 2568 { frame 1 { stop(); } frame 2 { _root.statsGirlPhotos.sort(); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] != undefined) { this['thumb' + i].gotoAndStop(_root.statsGirlPhotos[i]); } else { break; } ++i; } } instance photo of movieClip 2562 { onClipEvent (load) { this.gotoAndStop(_root.statsGirlPhotos[_root.varChosenPhoto]); } } } movieClip 2594 { frame 1 { stop(); } } button 2606 { on (release) { if (_root.statsInventoryKey.length > 4 * keypage) { ++keypage; disPage = keypage; var i = 0; while (i <= 3) { if (_root.statsInventoryKey[i + 4 * (keypage - 1)] == undefined) { this['keyslot' + i].gotoAndStop(1); } else { this['keyslot' + i].gotoAndStop(_root.statsInventoryKey[i + 4 * (keypage - 1)]); } ++i; } } } } button 2610 { on (release) { if (keypage > 1) { --keypage; disPage = keypage; var i = 0; while (i <= 3) { if (_root.statsInventoryKey[i + 4 * (keypage - 1)] == undefined) { this['keyslot' + i].gotoAndStop(1); } else { this['keyslot' + i].gotoAndStop(_root.statsInventoryKey[i + 4 * (keypage - 1)]); } ++i; } } } } movieClip 2701 { } movieClip 2731 { frame 1 { stop(); } } button 2732 { on (release) { if (_root.statsGirlTasks.length > 3 * taskpage) { ++taskpage; disPage = taskpage; var i = 0; while (i <= 2) { if (_root.statsGirlTasks[i + 3 * (taskpage - 1)] == undefined) { this['taskslot' + i].gotoAndStop(1); } else { this['taskslot' + i].gotoAndStop(_root.statsGirlTasks[i + 3 * (taskpage - 1)]); } ++i; } } } } button 2733 { on (release) { if (taskpage > 1) { --taskpage; disPage = taskpage; var i = 0; while (i <= 2) { if (_root.statsGirlTasks[i + 3 * (taskpage - 1)] == undefined) { this['taskslot' + i].gotoAndStop(1); } else { this['taskslot' + i].gotoAndStop(_root.statsGirlTasks[i + 3 * (taskpage - 1)]); } ++i; } } } } button 2747 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'a1unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('a1read'); _root.statsGirlPhotos.push('a1'); break; } ++i; } _root.varChosenText = 'a1'; _parent.gotoAndStop('textread'); } } movieClip 2750 { } button 2751 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'a2unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('a2read'); _root.statsGirlPhotos.push('a2'); break; } ++i; } _root.varChosenText = 'a2'; _parent.gotoAndStop('textread'); } } button 2753 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'a3unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('a3read'); _root.statsGirlPhotos.push('a3'); break; } ++i; } _root.varChosenText = 'a3'; _parent.gotoAndStop('textread'); } } button 2758 { on (release) { _root.varChosenText = 'a1'; _parent.gotoAndStop('textread'); } } movieClip 2761 { } button 2763 { on (release) { _root.varChosenText = 'a2'; _parent.gotoAndStop('textread'); } } button 2766 { on (release) { _root.varChosenText = 'a3'; _parent.gotoAndStop('textread'); } } button 2768 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'b1unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('b1read'); _root.statsGirlPhotos.push('b1'); break; } ++i; } _root.varChosenText = 'b1'; _parent.gotoAndStop('textread'); } } button 2770 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'b2unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('b2read'); _root.statsGirlPhotos.push('b2'); break; } ++i; } _root.varChosenText = 'b2'; _parent.gotoAndStop('textread'); } } button 2772 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'b3unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('b3read'); _root.statsGirlPhotos.push('b3'); break; } ++i; } _root.varChosenText = 'b3'; _parent.gotoAndStop('textread'); } } button 2774 { on (release) { _root.varChosenText = 'b1'; _parent.gotoAndStop('textread'); } } button 2777 { on (release) { _root.varChosenText = 'b2'; _parent.gotoAndStop('textread'); } } button 2779 { on (release) { _root.varChosenText = 'b3'; _parent.gotoAndStop('textread'); } } button 2781 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 't1unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('t1read'); _root.statsGirlPhotos.push('t1'); break; } ++i; } _root.varChosenText = 't1'; _parent.gotoAndStop('textread'); } } button 2783 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 't2unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('t2read'); _root.statsGirlPhotos.push('t2'); break; } ++i; } _root.varChosenText = 't2'; _parent.gotoAndStop('textread'); } } button 2785 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 't3unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('t3read'); _root.statsGirlPhotos.push('t3'); break; } ++i; } _root.varChosenText = 't3'; _parent.gotoAndStop('textread'); } } button 2787 { on (release) { _root.varChosenText = 't1'; _parent.gotoAndStop('textread'); } } button 2790 { on (release) { _root.varChosenText = 't2'; _parent.gotoAndStop('textread'); } } button 2793 { on (release) { _root.varChosenText = 't3'; _parent.gotoAndStop('textread'); } } button 2795 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'd1unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('d1read'); _root.statsGirlPhotos.push('d1'); break; } ++i; } _root.varChosenText = 'd1'; _parent.gotoAndStop('textread'); } } button 2797 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'd2unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('d2read'); _root.statsGirlPhotos.push('d2'); break; } ++i; } _root.varChosenText = 'd2'; _parent.gotoAndStop('textread'); } } button 2799 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'd3unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('d3read'); _root.statsGirlPhotos.push('d3'); break; } ++i; } _root.varChosenText = 'd3'; _parent.gotoAndStop('textread'); } } button 2801 { on (release) { _root.varChosenText = 'd1'; _parent.gotoAndStop('textread'); } } button 2804 { on (release) { _root.varChosenText = 'd2'; _parent.gotoAndStop('textread'); } } button 2807 { on (release) { _root.varChosenText = 'd3'; _parent.gotoAndStop('textread'); } } button 2809 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'n1unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('n1read'); _root.statsGirlPhotos.push('n1'); break; } ++i; } _root.varChosenText = 'n1'; _parent.gotoAndStop('textread'); } } button 2811 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'n2unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('n2read'); _root.statsGirlPhotos.push('n2'); break; } ++i; } _root.varChosenText = 'n2'; _parent.gotoAndStop('textread'); } } button 2813 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'n3unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('n3read'); _root.statsGirlPhotos.push('n3'); break; } ++i; } _root.varChosenText = 'n3'; _parent.gotoAndStop('textread'); } } button 2815 { on (release) { _root.varChosenText = 'n1'; _parent.gotoAndStop('textread'); } } button 2818 { on (release) { _root.varChosenText = 'n2'; _parent.gotoAndStop('textread'); } } button 2821 { on (release) { _root.varChosenText = 'n3'; _parent.gotoAndStop('textread'); } } button 2823 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'h1unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('h1read'); _root.statsGirlPhotos.push('h1'); break; } ++i; } _root.varChosenText = 'h1'; _parent.gotoAndStop('textread'); } } button 2825 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'h2unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('h2read'); _root.statsGirlPhotos.push('h2'); break; } ++i; } _root.varChosenText = 'h2'; _parent.gotoAndStop('textread'); } } button 2827 { on (release) { var i = 0; while (i < _root.statsGirlTexts.length) { if (_root.statsGirlTexts[i] == 'h3unread') { _root.statsGirlTexts.splice(i, 1); _root.statsGirlTexts.push('h3read'); _root.statsGirlPhotos.push('h3'); break; } ++i; } _root.varChosenText = 'h3'; _parent.gotoAndStop('textread'); } } button 2829 { on (release) { _root.varChosenText = 'h1'; _parent.gotoAndStop('textread'); } } button 2832 { on (release) { _root.varChosenText = 'h2'; _parent.gotoAndStop('textread'); } } button 2835 { on (release) { _root.varChosenText = 'h3'; _parent.gotoAndStop('textread'); } } movieClip 2837 { frame 1 { stop(); } } button 2839 { on (release) { if (_root.statsGirlTexts.length > 5 * textpage) { ++textpage; disPage = textpage; var i = 0; while (i <= 4) { if (_root.statsGirlTexts[i + 5 * (textpage - 1)] == undefined) { this['textslot' + i].gotoAndStop(1); } else { this['textslot' + i].gotoAndStop(_root.statsGirlTexts[i + 5 * (textpage - 1)]); } ++i; } } } } button 2840 { on (release) { if (textpage > 1) { --textpage; disPage = textpage; var i = 0; while (i <= 4) { if (_root.statsGirlTexts[i + 5 * (textpage - 1)] == undefined) { this['textslot' + i].gotoAndStop(1); } else { this['textslot' + i].gotoAndStop(_root.statsGirlTexts[i + 5 * (textpage - 1)]); } ++i; } } } } movieClip 2852 { frame 1 { stop(); } } movieClip 2861 { } button 2863 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'a1') { _root.varChosenPhoto = i; break; } ++i; } } } button 2864 { on (release) { _parent.gotoAndStop('texts'); } } button 2868 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'a2') { _root.varChosenPhoto = i; break; } ++i; } } } button 2871 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'a3') { _root.varChosenPhoto = i; break; } ++i; } } } button 2875 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'b1') { _root.varChosenPhoto = i; break; } ++i; } } } button 2879 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'b2') { _root.varChosenPhoto = i; break; } ++i; } } } button 2882 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'b3') { _root.varChosenPhoto = i; break; } ++i; } } } button 2886 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 't1') { _root.varChosenPhoto = i; break; } ++i; } } } button 2890 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 't2') { _root.varChosenPhoto = i; break; } ++i; } } } button 2893 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 't3') { _root.varChosenPhoto = i; break; } ++i; } } } button 2897 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'd1') { _root.varChosenPhoto = i; break; } ++i; } } } button 2901 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'd2') { _root.varChosenPhoto = i; break; } ++i; } } } button 2904 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'd3') { _root.varChosenPhoto = i; break; } ++i; } } } button 2908 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'n1') { _root.varChosenPhoto = i; break; } ++i; } } } button 2912 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'n2') { _root.varChosenPhoto = i; break; } ++i; } } } button 2915 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'n3') { _root.varChosenPhoto = i; break; } ++i; } } } button 2919 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'h1') { _root.varChosenPhoto = i; break; } ++i; } } } button 2923 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'h2') { _root.varChosenPhoto = i; break; } ++i; } } } button 2926 { on (release) { _parent.cellphotos.gotoAndStop('photoview'); var i = 0; while (i < _root.statsGirlPhotos.length) { if (_root.statsGirlPhotos[i] == 'h3') { _root.varChosenPhoto = i; break; } ++i; } } } movieClip 2927 { instance of movieClip 2852 { onClipEvent (load) { this.gotoAndStop('allie'); } } instance of movieClip 2852 { onClipEvent (load) { this.gotoAndStop('bree'); } } instance of movieClip 2852 { onClipEvent (load) { this.gotoAndStop('trish'); } } instance of movieClip 2852 { onClipEvent (load) { this.gotoAndStop('donna'); } } instance of movieClip 2852 { onClipEvent (load) { this.gotoAndStop('nene'); } } instance of movieClip 2852 { onClipEvent (load) { this.gotoAndStop('hunni'); } } } movieClip 2933 { frame 1 { disCellDate = _root.statsWeekday + ' :: DAY ' + _root.statsDay; disGrade = _root.listGrades[_root.statsGrade]; stop(); } instance of movieClip 1833 { onClipEvent (load) { this.gotoAndPlay(2); } onClipEvent (enterFrame) { if (_root.statsAlertText) { this._visible = true; } else { this._visible = false; } if (this._currentframe >= 2) { this.play(); } } } instance of movieClip 1833 { onClipEvent (load) { this.gotoAndPlay(2); } onClipEvent (enterFrame) { if (_root.statsAlertTask) { this._visible = true; } else { this._visible = false; } if (this._currentframe >= 2) { this.play(); } } } frame 2 { keypage = 1; disPage = keypage; var i = 0; while (i <= 3) { if (_root.statsInventoryKey[i + 4 * (keypage - 1)] == undefined) { this['keyslot' + i].gotoAndStop(1); } else { this['keyslot' + i].gotoAndStop(_root.statsInventoryKey[i + 4 * (keypage - 1)]); } ++i; } disGift0 = _root.statsInventoryGifts[0]; disGift1 = _root.statsInventoryGifts[1]; disGift2 = _root.statsInventoryGifts[2]; disGift3 = _root.statsInventoryGifts[3]; disGift4 = _root.statsInventoryGifts[4]; disGift5 = _root.statsInventoryGifts[5]; } frame 3 { taskpage = 1; disPage = taskpage; var i = 0; while (i <= 2) { if (_root.statsGirlTasks[i + 3 * (taskpage - 1)] == undefined) { this['taskslot' + i].gotoAndStop(1); } else { this['taskslot' + i].gotoAndStop(_root.statsGirlTasks[i + 3 * (taskpage - 1)]); } ++i; } } frame 4 { textpage = 1; disPage = textpage; var i = 0; while (i <= 4) { if (_root.statsGirlTexts[i + 5 * (textpage - 1)] == undefined) { this['textslot' + i].gotoAndStop(1); } else { this['textslot' + i].gotoAndStop(_root.statsGirlTexts[i + 5 * (textpage - 1)]); } ++i; } } instance of movieClip 2927 { onClipEvent (load) { this.gotoAndStop(_root.varChosenText); } } } movieClip 2934 { frame 1 { stop(); } frame 7 { stop(); _root.guiMain.guiCellAlert.gotoAndStop(1); } } instance of movieClip 437 { }




http://swfchan.com/40/195500/info.shtml
Created: 3/8 -2019 08:50:29 Last modified: 3/8 -2019 08:50:29 Server time: 19/04 -2024 03:51:27