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

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

2deep4ia.swf

This is the info page for
Flash #105815

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


ActionScript [AS1/AS2]
Combined Code
movieClip 7 loading_button { #initclip Object.registerClass('loading_button', loading_button); #endinitclip } movieClip 8 loading_boss { #initclip Object.registerClass('loading_boss', loading_boss); #endinitclip } movieClip 9 loading_bar { #initclip Object.registerClass('loading_bar', loading_bar); #endinitclip } movieClip 12 { } movieClip 13 { } movieClip 15 { } movieClip 17 { frame 1 { stop(); } } movieClip 20 { } movieClip 21 { } movieClip 24 { } movieClip 27 { frame 1 { stop(); } } movieClip 28 Preloader { frame 1 { function enterFrameHandler() { var v2 = 0; v2 = _root.getBytesLoaded() / _root.getBytesTotal(); if (loadingBar) { loadingBar.gotoAndStop(int(v2 * (loadingBar._totalframes - 1)) + 1); } if (v2 >= 1) { onEnterFrame = null; gotoAndStop('loaded'); } } stop(); var autoPlay; var className; onEnterFrame = enterFrameHandler; } frame 10 { function _onPlayClick() { _root.nextFrame(); _root.play(); _parent._onLoaded(); } if (playButton) { playButton.onRelease = _onPlayClick; playButton.stop(); } if (autoPlay) { _onPlayClick(null); } } } movieClip 30 Newgrounds API Classes { #initclip Object.registerClass('Newgrounds API Classes', com.newgrounds.shims.APIShim); #endinitclip } movieClip 70 { } movieClip 73 { } movieClip 78 { } movieClip 82 { } movieClip 83 { } movieClip 84 { } movieClip 85 FlashAd { #initclip Object.registerClass('FlashAd', com.newgrounds.components.FlashAdBase); #endinitclip frame 1 { stop(); } frame 30 { function onPlayClick() { removeAd(); _visible = false; } if (this.playButton) { this.playButton.onRelease = onPlayClick; } } } movieClip 86 APIConnector { frame 1 { function _onLoaded() { gotoAndStop('invisible'); if (_redirect) { com.newgrounds.API.loadOfficialVersion(); return undefined; } } function _apiConnect() { var v2 = com.newgrounds.API; if (v2 && !v2.connected) { if (!apiId) { com.newgrounds.Logger.logError('No API ID entered in the API Connector component.', 'You can create an API ID for this submission at http://newgrounds.com/account/flashapi', 'Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector).'); return undefined; } switch (debugMode) { case 'Off': default: v2.debugMode = v2.RELEASE_MODE; goto 1299; case 'Simulate Logged-in User': //Invalid switch } v2.debugMode = v2.DEBUG_MODE_LOGGED_IN; goto 1299; case 'Off': v2.debugMode = v2.DEBUG_MODE_LOGGED_OUT; goto 1299; case 'Simulate Logged-in User': v2.debugMode = v2.DEBUG_MODE_NEW_VERSION; goto 1299; case 'Simulate Logged-out User': v2.debugMode = v2.DEBUG_MODE_HOST_BLOCKED; label 1299: v2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected); v2.connect(_root, apiId, encryptionKey, movieVersion); } } function _onConnected(event) { if (redirectOnNewVersion && event.__get__success() && (event.__get__data()).newVersion) { _redirect = true; } if (redirectOnHostBlocked && !event.__get__success() && event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED) { _redirect = true; } if (_redirect) { gotoAndStop('adPreloader'); forceAlwaysOnTop(); } } function forceAlwaysOnTop() { var v2 = getNextHighestDepth(); swapDepths(v2); if (Stage) { _x = (Stage.width - _width) / 2; _y = (Stage.height - _height) / 2; _visible = true; } if (_root && _root instanceof MovieClip) { (MovieClip(_root)).stop(); } } stop(); if (_root && _root instanceof MovieClip) { (MovieClip(_root)).stop(); } var apiId; var encryptionKey; var movieVersion; var debugMode; var connectorType; var redirectOnHostBlocked; var redirectOnNewVersion; var adType; var className; var _redirect; _x = int(_x); _y = int(_y); if (!debugMode) { debugMode = 'Simulate Logged-in User'; } if (!connectorType) { connectorType = 'Flash Ad + Preloader'; } if (!adType) { adType = 'Video'; } if (ad) { ad.adType = adType; } switch (connectorType) { case 'Flash Ad + Preloader': gotoAndStop('adPreloader'); break; case 'Flash Ad Only': gotoAndStop('ad'); break; case 'Invisible': gotoAndStop('invisible'); } _apiConnect(); } instance ad of movieClip 85 FlashAd { onClipEvent (construct) { apiId = ''; showBorder = true; adType = 'Video'; } } instance loader of movieClip 28 Preloader { onClipEvent (construct) { autoPlay = false; mainClass = ''; } } } movieClip 87 Init { #initclip Object.registerClass('Init', Init); #endinitclip } frame 1 { stop(); } instance of movieClip 86 APIConnector { onClipEvent (construct) { apiId = '23287:DqZYJJHr'; encryptionKey = 'joVHrWf8Ts4McQ4UyHJ5kSGtCIZSnPMN'; debugMode = 'Off'; movieVersion = ''; connectorType = 'Flash Ad Only'; redirectOnNewVersion = true; redirectOnHostBlocked = true; adType = 'Video'; } } movieClip 38 __Packages.com.newgrounds.APIConnection { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIConnection) { var v1 = function () { this.reset(); }; com.newgrounds.APIConnection = v1; var v2 = v1.prototype; v2.__get__hostURL = function () { return this._hostURL; }; v2.__set__hostURL = function (value) { this._hostURL = value; this.hostDomain = null; if (this._hostURL) { var v2 = this._hostURL.split('/'); if (v2[0] != 'file:' && this._hostURL != 'localhost') { this.hostDomain = v2[2]; } } if (!this.hostDomain) { this.hostDomain = 'localhost'; } return this.__get__hostURL(); }; v2.__get__sandboxType = function () { return System.security.sandboxType; }; v2.__get__isNetworkHost = function () { switch (this.__get__sandboxType()) { return true; case 'localWithFile': case 'localWithNetwork': case 'localTrusted': case 'application': return false; case 'remote': } return true; }; v2.__get__hasUserSession = function () { return this.sessionId != null && this.sessionId != '' && this.publisherId != 0; }; v2.__get__connected = function () { return this.connectionState == com.newgrounds.APIConnection.CONNECTED; }; v2.reset = function () { this.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED; this.encryptionKey = null; this.sessionId = null; this.userEmail = null; this.username = null; this.userId = 0; this.userpageFormat = 0; }; v2.assertInitialized = function () { if (!this.initialized) { com.newgrounds.Logger.logError('You must initialized the API using API.connect() before using this command.'); return false; } return true; }; v2.assertConnected = function () { if (!this.connectionState == com.newgrounds.APIConnection.CONNECTED) { com.newgrounds.Logger.logError('You must establish a connection using API.connect() before using this command.'); return false; } return true; }; v2.sendSimpleCommand = function (command, completeHandler, parameters, secureParameters) { if (parameters == undefined) { parameters = null; } if (secureParameters == undefined) { secureParameters = null; } var v2 = new com.newgrounds.APICommand(command); v2.__set__parameters(parameters); v2.__set__secureParameters(secureParameters); if (completeHandler != null) { v2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, completeHandler); } v2.send(this); }; v2.sendCommand = function (command) { command.send(this); }; v2.loadInBrowser = function (command, newWindow, parameters) { if (newWindow == undefined) { newWindow = true; } if (parameters == undefined) { parameters = null; } var v2 = new com.newgrounds.APICommand(command); v2.__set__parameters(parameters); v2.loadInBrowser(this, newWindow); }; v1.NOT_CONNECTED = 'notConnected'; v1.CONNECTING = 'connecting'; v1.CONNECTED = 'connected'; v2.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED; v2.apiURL = 'http://www.ngads.com/gateway_v2.php'; v2.addProperty('connected', v2.__get__connected, function () {}); v2.addProperty('hasUserSession', v2.__get__hasUserSession, function () {}); v2.addProperty('hostURL', v2.__get__hostURL, v2.__set__hostURL); v2.addProperty('isNetworkHost', v2.__get__isNetworkHost, function () {}); v2.addProperty('sandboxType', v2.__get__sandboxType, function () {}); ASSetPropFlags(com.newgrounds.APIConnection.prototype, null, 1); } #endinitclip } movieClip 32 __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 31 __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 33 __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 36 __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 42 __Packages.com.newgrounds.APICommand { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APICommand) { var v1 = function (command) { super(); this._command = command; this._parameters = new Object(); this._secureParameters = new Object(); this._hasTimeout = true; }; com.newgrounds.APICommand = v1; com.newgrounds.APICommand extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v1.stopPendingCommands = function () { for (var v2 in com.newgrounds.APICommand._pendingCommands) { var v1 = com.newgrounds.APICommand._pendingCommands[v2]; v1.close(); } com.newgrounds.APICommand._pendingCommands = []; }; v1.onThrottleTimer = function (event) { if (getTimer() - com.newgrounds.APICommand._throttleTimestamp >= com.newgrounds.APICommand.THROTTLE_INTERVAL) { com.newgrounds.APICommand._throttleCount = 0; com.newgrounds.APICommand._throttleCount = 0; for (;;) { if (!(com.newgrounds.APICommand._commandQueue.length && com.newgrounds.APICommand._throttleCount < com.newgrounds.APICommand.THROTTLE_THRESHOLD)) break; var v1 = com.newgrounds.APICommand._commandQueue.shift(); v1.command.send(v1.connection); ++com.newgrounds.APICommand._throttleCount; } } }; v1.encryptHex = function (hexValue) { var v4 = hexValue.length % 6; var v3 = ''; var v1 = 0; while (v1 < hexValue.length) { v3 += com.newgrounds.APICommand._encryptor.encodeUint(int('0x' + hexValue.substr(v1, 6)), 4); v1 += 6; } return v4.toString() + v3; }; v2.__get__command = function () { return this._command; }; v2.__set__command = function (value) { this._command = value; return this.__get__command(); }; v2.__get__hasTimeout = function () { return this._hasTimeout; }; v2.__set__hasTimeout = function (val) { this._hasTimeout = val; return this.__get__hasTimeout(); }; v2.__get__parameters = function () { return this._parameters; }; v2.__set__parameters = function (object) { this._parameters = new Object(); if (object) { for (var v3 in object) { this._parameters[v3] = object[v3]; } } return this.__get__parameters(); }; v2.__get__preventCache = function () { return this._preventCache; }; v2.__set__preventCache = function (value) { this._preventCache = value; return this.__get__preventCache(); }; v2.__get__secureParameters = function () { return this._secureParameters; }; v2.__set__secureParameters = function (object) { this._secureParameters = new Object(); if (object) { for (var v3 in object) { this._secureParameters[v3] = object[v3]; } } return this.__get__secureParameters(); }; v2.__get__hasSecureParameters = function () { for (var v2 in this._secureParameters) { return true; } return false; }; v2.addFile = function (filename, data, dataField, contentType) { if (contentType == undefined) { contentType = 'application/octet-stream'; } if (!this._files) { this._files = new Object(); } var v3 = {'filename': filename, 'data': data, 'dataField': dataField, 'contentType': contentType}; this._files[filename] = v3; }; v2.removeFile = function (filename) { if (this._files) { delete this._files[filename]; } }; v2.clearFiles = function () { this._files = null; }; v2.close = function () { if (this._loader) { clearInterval(this._timeoutTimer); var v2 = 0; while (v2 < com.newgrounds.APICommand._pendingCommands.length) { if (com.newgrounds.APICommand._pendingCommands[v2] == this) { com.newgrounds.APICommand._pendingCommands.splice(v2, 1); break; } ++v2; } this._loader = null; } }; v2.loadInBrowser = function (connection, newWindow) { this._parameters.command_id = this._command; this._parameters.tracker_id = connection.apiId ? connection.apiId : 1; if (connection.debug) { this._parameters.debug = 1; } var v3 = connection.apiURL + '?host=' + escape(connection.hostDomain); for (var v4 in this._parameters) { v3 += '&' + escape(v4) + '=' + escape(this._parameters[v4]); } var v6; if (newWindow) { v6 = '_blank'; } else { v6 = '_top'; } _root.getURL(v3, v6); }; v2.send = function (connection) { if (com.newgrounds.APICommand._throttleCount >= com.newgrounds.APICommand.THROTTLE_THRESHOLD) { com.newgrounds.APICommand._commandQueue.push({'connection': connection, 'command': this}); } else { this.sendInternal(connection); } }; v2.sendInternal = function (connection) { var v4; v4 = new LoadVars(); v4.command_id = this._command; v4.tracker_id = connection.apiId; if (connection.debug) { v4.debug = 1; } if (this._preventCache) { v4.seed = Math.random(); } var v2; var v3; var v7; for (v2 in this._parameters) { v3 = this._parameters[v2]; if (v3 != null) { if (typeof v3 == 'boolean') { v4[v2] = int(v3); } else { v4[v2] = v3; } } } if (this.__get__hasSecureParameters()) { var v6 = new Object(); for (v2 in this._secureParameters) { v3 = this._secureParameters[v2]; if (v3 != null) { if (typeof v3 == 'boolean') { v6[v2] = int(v3); } else { v6[v2] = v3; } } } var v8 = ''; v7 = 0; while (v7 < 16) { v8 += com.newgrounds.APICommand.ENCRYPTOR_RADIX.charAt(int(Math.random() * com.newgrounds.APICommand.ENCRYPTOR_RADIX.length)); ++v7; } v4.command_id = 'securePacket'; v6.command_id = this._command; v6.as_version = 3; v6.session_id = connection.sessionId; v6.user_email = connection.userEmail; v6.publisher_id = connection.publisherId; v6.seed = v8; var v13 = com.newgrounds.crypto.MD5.hash(v8); var v11 = com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(v6), connection.encryptionKey); v4.secure = com.newgrounds.APICommand.encryptHex(v13 + v11); } com.newgrounds.Logger.logInternal('Sending packet:', v4); var v12; v12 = 'application/x-www-form-urlencoded'; for (v2 in v4) { if (typeof v4[v2] == 'object') { v4[v2] = com.newgrounds.encoders.json.JSON.encode(v4[v2]); } } if (this._files) { for (var v10 in this._files) { var v5 = this._files[v10]; if (typeof v5.data == 'string') { v4[v10] = v5.data; } else { v4[v10] = com.newgrounds.encoders.json.JSON.encode(v5.data); } } } com.newgrounds.APICommand._pendingCommands.push(this); ++com.newgrounds.APICommand._throttleCount; com.newgrounds.APICommand._throttleTimestamp = getTimer(); this.startLoader(connection.apiURL, v4, v12); }; v2.startLoader = function (url, data, contentType) { this._loader = LoadVars(data); this._loader.onData = this.as2CompleteHandler; this._loader.contentType = contentType; this._loader.sendAndLoad(url, this._loader, 'POST'); if (this._hasTimeout) { setInterval(this, this.onTimeout, com.newgrounds.APICommand.TIMEOUT_INTERVAL); } }; v2.as2CompleteHandler = function (data) { var v3; var v2 = 0; while (v2 < com.newgrounds.APICommand._pendingCommands.length) { if (com.newgrounds.APICommand._pendingCommands[v2]._loader == this) { v3 = com.newgrounds.APICommand._pendingCommands[v2]; break; } ++v2; } v3.onComplete(data); }; v2.onTimeout = function (event) { this.close(); com.newgrounds.Logger.logError('Command timed out.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_TIMED_OUT)); }; v2.onError = function (error) { com.newgrounds.Logger.logError('Error when sending command:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_UNKNOWN)); this.close(); }; v2.onComplete = function (data) { try { if (!data || data == '') { throw new Error(); } com.newgrounds.Logger.logInternal('Received packet:', data); var v2 = com.newgrounds.encoders.json.JSON.decode(data); if (!v2) { throw new Error(); } if (com.newgrounds.APICommand.bridge) { com.newgrounds.APICommand.bridge.sendEvent(v2.command_id, v2); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, v2, (v2 && v2.success) ? com.newgrounds.APIEvent.ERROR_NONE : com.newgrounds.APIEvent.ERROR_COMMAND_FAILED)); } catch (e) { com.newgrounds.Logger.logError('Invalid response returned from server: ' + data); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_BAD_RESPONSE)); } this.close(); }; v1.TIMEOUT_INTERVAL = 10000; v1.THROTTLE_INTERVAL = 10050; v1.THROTTLE_TICK_INTERVAL = 1000; v1.THROTTLE_THRESHOLD = 24; v1._throttleCount = 0; v1._commandQueue = []; v1._throttleTimer = setInterval(com.newgrounds.APICommand.onThrottleTimer, com.newgrounds.APICommand.THROTTLE_TICK_INTERVAL); v1.ENCRYPTOR_RADIX = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X'; v1._encryptor = new com.newgrounds.encoders.BaseN(com.newgrounds.APICommand.ENCRYPTOR_RADIX); v1._pendingCommands = []; v1.CRLF = '\r\n'; v2.addProperty('command', v2.__get__command, v2.__set__command); v2.addProperty('hasSecureParameters', v2.__get__hasSecureParameters, function () {}); v2.addProperty('hasTimeout', v2.__get__hasTimeout, v2.__set__hasTimeout); v2.addProperty('parameters', v2.__get__parameters, v2.__set__parameters); v2.addProperty('preventCache', v2.__get__preventCache, v2.__set__preventCache); v2.addProperty('secureParameters', v2.__get__secureParameters, v2.__set__secureParameters); ASSetPropFlags(com.newgrounds.APICommand.prototype, null, 1); } #endinitclip } movieClip 37 __Packages.com.newgrounds.Bridge { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Bridge) { var v1 = function (id) { this._widgetId = id; this._inConnection = new LocalConnection(); this._outConnection = new LocalConnection(); this._inConnection.receiveEvent = this.receiveEvent; try { this._inConnection.connect('rec_' + this._widgetId); } com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {'target': this, 'func': this.onLogMessage}); }; com.newgrounds.Bridge = v1; var v2 = v1.prototype; v2.onLogMessage = function (event) { try { this._outConnection.send(this._widgetId, 'sendEvent', 'trace', String(event.__get__data())); } }; v2.sendEvent = function (command, parameters) { if (this._outConnection) { parameters = {'data': parameters}; this._outConnection.send(this._widgetId, 'sendEvent', command, parameters); } }; v2.receiveEvent = function (event, parameters) {}; v2.onStatus = function (event) {}; ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1); } #endinitclip } movieClip 34 __Packages.com.newgrounds.APIEvent { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEvent) { var v1 = function (type, data, error) { super(type); if (data == undefined) { data = null; } if (error == undefined) { error = null; } if (!error || error == '' || error == com.newgrounds.APIEvent.ERROR_NONE) { this._error = com.newgrounds.APIEvent.ERROR_NONE; this._success = true; } else { this._error = error; this._success = false; } if (data) { this._data = data; } else { this._data = {}; } }; com.newgrounds.APIEvent = v1; com.newgrounds.APIEvent extends com.newgrounds.Event; var v2 = v1.prototype; v2.clone = function () { return new com.newgrounds.APIEvent(this.__get__type(), this._data, this._error); }; v2.__get__success = function () { return this._success; }; v2.__get__data = function () { return this._data; }; v2.__get__error = function () { return this._error; }; v1.COMMAND_COMPLETE = 'commandComplete'; v1.MEDAL_UNLOCK_CONFIRMED = 'medalUnlockConfirmed'; v1.ICON_LOADED = 'iconLoaded'; v1.API_CONNECTED = 'movieConnected'; v1.LOG = 'log'; v1.MEDAL_UNLOCKED = 'medalUnlocked'; v1.SCORES_LOADED = 'scoresLoaded'; v1.SCORE_POSTED = 'scorePosted'; v1.QUERY_COMPLETE = 'queryComplete'; v1.FILE_LOADED = 'fileLoaded'; v1.FILE_SAVED = 'fileSaved'; v1.FILE_REQUESTED = 'fileRequested'; v1.VOTE_COMPLETE = 'voteComplete'; v1.ERROR_NONE = 'noError'; v1.ERROR_UNKNOWN = 'unknownError'; v1.ERROR_COMMAND_FAILED = 'commandFailed'; v1.ERROR_NOT_CONNECTED = 'notConnected'; v1.ERROR_INVALID_ARGUMENT = 'invalidArgument'; v1.ERROR_TIMED_OUT = 'timedOut'; v1.ERROR_BAD_FILE = 'badFile'; v1.ERROR_BAD_RESPONSE = 'badResponse'; v1.ERROR_SENDING_COMMAND = 'errorSendingCommand'; v1.ERROR_HOST_BLOCKED = 'hostBlocked'; v1.ERROR_ALREADY_VOTED = 'alreadyVoted'; v1.ERROR_NOT_LOGGED_IN = 'notLoggedIn'; v1.ERROR_WRONG_ENCRYPTION_KEY = 'wrongEncryptionKey'; v2.addProperty('data', v2.__get__data, function () {}); v2.addProperty('error', v2.__get__error, function () {}); v2.addProperty('success', v2.__get__success, function () {}); ASSetPropFlags(com.newgrounds.APIEvent.prototype, null, 1); } #endinitclip } movieClip 53 __Packages.com.newgrounds.API { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.API) { var v1 = function () {}; com.newgrounds.API = v1; var v2 = v1.prototype; v1.__get__connected = function () { return com.newgrounds.API._connection.__get__connected(); }; v1.__get__isNetworkHost = function () { return com.newgrounds.API._connection.__get__isNetworkHost(); }; v1.__get__apiId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.apiId; }; v1.__get__debugMode = function () { return com.newgrounds.API._debugMode; }; v1.__set__debugMode = function (val) { com.newgrounds.API._debugMode = val; return com.newgrounds.API.__get__debugMode(); }; v1.__get__publisherId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.publisherId; }; v1.__get__sessionId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.sessionId; }; v1.__get__hostDomain = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.hostDomain; }; v1.__get__hostURL = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.__get__hostURL(); }; v1.__get__isNewgrounds = function () { return com.newgrounds.API._connection.publisherId == 1; }; v1.__get__hasUserSession = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.__get__hasUserSession(); }; v1.__get__username = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.username; }; v1.__get__userId = function () { com.newgrounds.API._connection.assertInitialized(); return com.newgrounds.API._connection.userId; }; v1.assertConnected = function (eventType) { if (eventType == undefined) { eventType = null; } if (com.newgrounds.API._connection.assertConnected()) { return true; } else { if (eventType) { com.newgrounds.API.dispatchEvent(eventType, null, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED); } return false; } }; v1.__get__adsApproved = function () { return com.newgrounds.API._adsApproved; }; v1.__get__adFeedURL = function () { return com.newgrounds.API._adFeedURL; }; v1.__get__medals = function () { return com.newgrounds.API._medalsArray; }; v1.__get__scoreBoards = function () { return com.newgrounds.API._scoreBoardsArray; }; v1.__get__saveGroups = function () { return com.newgrounds.API._saveGroupsArray; }; v1.connect = function (_root, apiId, encryptionKey, movieVersion) { if (encryptionKey == undefined) { encryptionKey = null; } if (movieVersion == undefined) { movieVersion = ''; } com.newgrounds.APIEventDispatcher.__set__globalDispatcher(com.newgrounds.API._dispatcher); System.security.loadPolicyFile('http://apifiles.ngfiles.com/crossdomain.xml'); if (com.newgrounds.API._connection.initialized) { com.newgrounds.Logger.logError('Connection already in progress. Please call API.disconnect() before attempting another connection.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED); return undefined; } apiId = com.newgrounds.API.trimWhitespace(apiId); if (encryptionKey) { encryptionKey = com.newgrounds.API.trimWhitespace(encryptionKey); } if (!apiId || apiId == '') { com.newgrounds.Logger.logError('No apiId given. Please use the API ID from your API settings page.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } com.newgrounds.Logger.logMessage('====== Newgrounds API v' + com.newgrounds.API.VERSION + ' ======'); com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTING; _root = _root; com.newgrounds.API._movieVersion = movieVersion; com.newgrounds.API._connection.apiId = apiId; var v4; v4 = apiId.indexOf(':'); if (v4 != -1) { com.newgrounds.API._connection.trackerId = int(apiId.substring(0, v4)); } else { com.newgrounds.API._connection.trackerId = int(apiId); } if (!com.newgrounds.API._connection.trackerId) { com.newgrounds.Logger.logError('Invalid API ID: ' + apiId); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } com.newgrounds.API._connection.encryptionKey = encryptionKey; com.newgrounds.API._connection.initialized = true; com.newgrounds.API._connection.__set__hostURL(_root._url); com.newgrounds.API.doConnect(_root); }; v1.doConnect = function (flashVars) { if (com.newgrounds.API.__get__isNetworkHost() && com.newgrounds.API._debugMode != com.newgrounds.API.RELEASE_MODE) { com.newgrounds.Logger.logMessage('Live file detected, turning off debug mode.'); com.newgrounds.API._debugMode = com.newgrounds.API.RELEASE_MODE; } if (flashVars && flashVars.NewgroundsAPI_SandboxID) { com.newgrounds.API._bridge = new com.newgrounds.Bridge(flashVars.NewgroundsAPI_SandboxID); com.newgrounds.APICommand.bridge = com.newgrounds.API._bridge; } if (com.newgrounds.API._debugMode == com.newgrounds.API.RELEASE_MODE) { if (flashVars) { if (flashVars.NewgroundsAPI_UserName) { com.newgrounds.API._connection.username = flashVars.NewgroundsAPI_UserName; } if (flashVars.NewgroundsAPI_UserID) { com.newgrounds.API._connection.userId = flashVars.NewgroundsAPI_UserID; } if (flashVars.NewgroundsAPI_PublisherID) { com.newgrounds.API._connection.publisherId = flashVars.NewgroundsAPI_PublisherID; } if (flashVars.NewgroundsAPI_UserpageFormat) { com.newgrounds.API._connection.userpageFormat = flashVars.NewgroundsAPI_UserpageFormat; } if (flashVars.NewgroundsAPI_SessionID) { com.newgrounds.API._connection.sessionId = flashVars.NewgroundsAPI_SessionID; } if (flashVars.NewgroundsAPI_SaveGroupID) { com.newgrounds.API._requestedSaveGroupId = flashVars.NewgroundsAPI_SaveGroupID; } if (flashVars.NewgroundsAPI_SaveFileID) { com.newgrounds.API._requestedSaveFileId = flashVars.NewgroundsAPI_SaveFileID; } } } else { com.newgrounds.API._connection.debug = true; if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN || com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_OUT) { com.newgrounds.API._connection.publisherId = 1; } if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN) { com.newgrounds.API._connection.sessionId = 'D3bu64p1U53R'; com.newgrounds.API._connection.userId = 10; com.newgrounds.API._connection.username = 'API-Debugger'; } } com.newgrounds.API._connection.sendSimpleCommand('connectMovie', com.newgrounds.API.onConnect, {'host': com.newgrounds.API._connection.hostDomain, 'movie_version': com.newgrounds.API._movieVersion, 'publisher_id': com.newgrounds.API._connection.publisherId}); }; v1.onConnect = function (event) { var v1 = event.__get__data(); if (!event.__get__success()) { com.newgrounds.Logger.logError('Unable to connect to the API.'); com.newgrounds.API._connection.reset(); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, event.__get__data(), event.__get__error()); return undefined; } if (com.newgrounds.API.__get__debugMode() != com.newgrounds.API.RELEASE_MODE) { com.newgrounds.API._adFeedURL = com.newgrounds.API.TEST_AD_FEED_URL; } else { if (v1.ad_url) { com.newgrounds.API._adFeedURL = unescape(v1.ad_url); } } switch (v1.ad_status) { case -1: com.newgrounds.Logger.logWarning('Your movie is not approved to run Flash Ads.'); break; case 0: com.newgrounds.Logger.logWarning('Your movie is still awaiting approval to run Flash Ads.'); break; case 1: com.newgrounds.Logger.logMessage('Your movie is approved to run Flash Ads!'); } com.newgrounds.API._adsApproved = v1.ad_status == 1; if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_HOST_BLOCKED || v1.deny_host) { com.newgrounds.Logger.logWarning(com.newgrounds.API._connection.hostDomain + ' does not have permission to host this movie!', 'Update your API configuration to allow this host.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'officialURL': unescape(v1.movie_url)}, com.newgrounds.APIEvent.ERROR_HOST_BLOCKED); com.newgrounds.API._connection.reset(); return undefined; } com.newgrounds.API._movieName = v1.movieName ? v1.movieName : ''; com.newgrounds.Logger.logMessage('Connecting to the Newgrounds API Gateway...', '----- ' + v1.movie_name + ' -----'); if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_NEW_VERSION) { v1.movie_version = 'Debug Mode'; } if (v1.movie_version) { com.newgrounds.Logger.logMessage('A new version of this movie is available.', 'Current version:\t' + com.newgrounds.API._movieVersion, 'Newest version:\t' + v1.movie_version, 'Use API.loadOfficialVersion() to link to the latest version.'); com.newgrounds.API._newVersion = true; } else { com.newgrounds.API._newVersion = false; } if (v1.request_portal_url) { com.newgrounds.API._connection.sendSimpleCommand('setPortalID', null, {'portal_url': com.newgrounds.API._connection.__get__hostURL()}); } com.newgrounds.API._connection.sendSimpleCommand('preloadSettings', com.newgrounds.API.onMetadataLoaded, {'publisher_id': com.newgrounds.API._connection.publisherId, 'user_id': com.newgrounds.API._connection.userId}); }; v1.onMetadataLoaded = function (event) { var v11 = event.__get__data(); var v1; var v7; if (!event.__get__success()) { com.newgrounds.Logger.logWarning('Unable to load movie metadata.'); com.newgrounds.API.disconnect(); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, null, event.__get__error()); return undefined; } var v10 = 0; if (v11.medals) { v10 = v11.medals.length; var v18; if (com.newgrounds.API.__get__hasUserSession()) { v18 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); } else { v18 = com.newgrounds.API.loadLocal('medals_unlocked'); } v1 = 0; while (v1 < v10) { var v4 = v11.medals[v1]; var v15 = v4.medal_unlocked; var v17 = v18 && v18[v4.medal_id]; var v14 = com.newgrounds.API.__get__hasUserSession() ? v15 : v17; if (com.newgrounds.API.__get__debugMode() != com.newgrounds.API.RELEASE_MODE) { v14 = false; } var v5 = new com.newgrounds.Medal(com.newgrounds.API._connection, v4.medal_id, v4.medal_name, v4.medal_description, Boolean(int(v4.secret)), v14, v4.medal_value, v4.medal_difficulty, v4.medal_icon); v5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked, false, 0, true); v5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed, false, 0, true); com.newgrounds.API._medals[v5.__get__name()] = v5; com.newgrounds.API._medalsArray.push(v5); com.newgrounds.Logger.logMessage(v5); if (com.newgrounds.API.__get__hasUserSession() && v17 && !v15) { com.newgrounds.Logger.logMessage('Server missed the "' + v5.__get__name() + '" unlock. Resending...'); v5.unlock(); } ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' medal' + ((v10 != 1) ? 's' : '') + ' initialized.'); v10 = 0; if (v11.score_boards) { v10 = v11.score_boards.length; v1 = 0; while (v1 < v10) { var v16 = v11.score_boards[v1]; var v9 = new com.newgrounds.ScoreBoard(com.newgrounds.API._connection, v16.name, v16.id); com.newgrounds.API._scoreBoards[v9.__get__name()] = v9; com.newgrounds.API._scoreBoardsArray.push(v9); com.newgrounds.Logger.logMessage(v9); ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' scoreboard' + ((v10 != 1) ? 's' : '') + ' initialized.'); v10 = 0; if (v11.save_groups) { v10 = v11.save_groups.length; v1 = 0; while (v1 < v10) { var v2 = v11.save_groups[v1]; var v13 = []; if (v2.keys) { v7 = 0; while (v7 < v2.keys.length) { var v6 = v2.keys[v7]; v13.push(new com.newgrounds.SaveKey(v6.name, v6.id, v6.type)); ++v7; } } var v12 = []; if (v2.ratings) { v1 = 0; while (v1 < v2.ratings.length) { var v3 = v2.ratings[v1]; v12.push(new com.newgrounds.SaveRating(v3.name, v3.id, v3.float, v3.min, v3.max)); ++v1; } } var v8 = new com.newgrounds.SaveGroup(com.newgrounds.API._connection, v2.group_name, v2.group_id, v2.group_type, v13, v12); com.newgrounds.API._saveGroups[v8.__get__name()] = v8; com.newgrounds.API._saveGroupsArray.push(v8); com.newgrounds.Logger.logMessage(v8); ++v1; } } com.newgrounds.Logger.logMessage(v10 + ' save group' + ((v10 != 1) ? 's' : '') + ' initialized.'); if (v11.save_file_path) { com.newgrounds.API._saveFilePath = v11.save_file_path + '/'; com.newgrounds.SaveFile._saveFilePath = com.newgrounds.API._saveFilePath; com.newgrounds.Logger.logInternal('Save file path: ' + com.newgrounds.API._saveFilePath); } if (v11.image_file_path) { com.newgrounds.API._imageFilePath = v11.image_file_path + '/'; com.newgrounds.SaveFile._imageFilePath = com.newgrounds.API._imageFilePath; com.newgrounds.Logger.logInternal('Image file path: ' + com.newgrounds.API._imageFilePath); } com.newgrounds.Logger.logMessage('Connection complete!'); com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTED; com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'movieName': com.newgrounds.API._movieName, 'newVersion': com.newgrounds.API._newVersion}); if (com.newgrounds.API._requestedSaveFileId && com.newgrounds.API._requestedSaveGroupId) { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_LOADED, com.newgrounds.API.onRequestedFileLoaded); com.newgrounds.API.loadSaveFile(com.newgrounds.API._requestedSaveFileId, false); } }; v1.disconnect = function () { if (!com.newgrounds.API._connection.__get__connected()) { com.newgrounds.Logger.logWarning('The Newgrounds API is already disconnected.'); return undefined; } com.newgrounds.API._connection.reset(); for (var v2 in com.newgrounds.API._medals) { var v1 = com.newgrounds.API._medals[v2]; v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked); v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed); } com.newgrounds.API._newVersion = false; com.newgrounds.API._medals = new Object(); com.newgrounds.API._medalsArray = []; com.newgrounds.API._scoreBoards = new Object(); com.newgrounds.API._scoreBoardsArray = []; com.newgrounds.API._saveGroups = new Object(); com.newgrounds.API._saveGroupsArray = []; com.newgrounds.API._sharedObjects = new Object(); com.newgrounds.API._imageFilePath = null; com.newgrounds.API._saveFilePath = null; com.newgrounds.Logger.logMessage('Disconnected from the Newgrounds API.'); }; v1.loadNewgrounds = function () { com.newgrounds.API._connection.loadInBrowser('loadNewgrounds'); }; v1.loadOfficialVersion = function () { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadOfficialVersion', false); } }; v1.loadMySite = function () { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadMySite'); } }; v1.loadCustomLink = function (linkName) { if (com.newgrounds.API._connection.assertInitialized()) { com.newgrounds.API._connection.loadInBrowser('loadCustomLink', true, {'link': linkName}); } }; v1.getMedal = function (medalName) { return com.newgrounds.API._medals[medalName]; }; v1.unlockMedal = function (medalName) { if (!com.newgrounds.API.assertConnected()) { return undefined; } var v1 = com.newgrounds.API._medals[medalName]; if (!v1) { com.newgrounds.Logger.logError('No medal named "' + medalName + '" w.'); return undefined; } v1.unlock(); }; v1.onMedalUnlocked = function (event) { if (event.__get__success()) { var v2 = com.newgrounds.Medal(event.__get__data()); var v1; if (com.newgrounds.API.__get__hasUserSession()) { v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); if (!v1) { v1 = new Object(); } v1[v2.__get__id()] = true; com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1); } else { v1 = com.newgrounds.API.loadLocal('medals_unlocked'); if (!v1) { v1 = new Object(); } v1[(com.newgrounds.Medal(event.__get__data())).__get__id()] = true; com.newgrounds.API.saveLocal('medals_unlocked', v1); com.newgrounds.Logger.logMessage('User instanceof not logged in. Medal "' + v2.__get__name() + '" unlocked locally.'); } } }; v1.onMedalUnlockConfirmed = function (event) { if (com.newgrounds.API.__get__hasUserSession()) { var v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username()); if (!v1) { v1 = new Object(); } else { delete v1[(com.newgrounds.Medal(event.__get__data())).__get__id()]; } com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1); } }; v1.clearLocalMedals = function () { for (var v2 in com.newgrounds.API._medals) { var v1 = com.newgrounds.API._medals[v2]; v1.setUnlocked(false); } if (!com.newgrounds.API.__get__hasUserSession()) { com.newgrounds.API.saveLocal('medals_unlocked', new Object()); } }; v1.getScoreBoard = function (scoreBoardName) { if (!com.newgrounds.API.assertConnected()) { return null; } return com.newgrounds.API._scoreBoards[scoreBoardName]; }; v1.loadScores = function (scoreBoardName, period, firstResult, numResults, tag) { if (period == undefined) { period = 'All-Time'; } if (firstResult == undefined) { firstResult = 1; } if (numResults == undefined) { numResults = 10; } if (tag == undefined) { tag = null; } if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API._scoreBoards[scoreBoardName]; if (!v1) { com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return null; } v1.__set__period(period); v1.__set__firstResult(firstResult); v1.__set__numResults(numResults); v1.__set__tag(tag); v1.loadScores(); return v1; }; v1.postScore = function (scoreBoardName, numericScore, tag) { if (tag == undefined) { tag = null; } if (!com.newgrounds.API.assertConnected()) { return undefined; } if (!com.newgrounds.API.__get__hasUserSession()) { com.newgrounds.Logger.logError('The user must be logged-in to post a score.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN); return undefined; } var v1 = com.newgrounds.API._scoreBoards[scoreBoardName]; if (!v1) { com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.'); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return undefined; } v1.postScore(numericScore, tag); }; v1.getSaveGroup = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } return com.newgrounds.API._saveGroups[groupName]; }; v1.getSaveGroupById = function (id) { for (var v3 in com.newgrounds.API._saveGroups) { var v1 = com.newgrounds.API._saveGroups[v3]; if (v1.__get__id() == id) { return v1; } } return null; }; v1.createSaveFile = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API.getSaveGroup(groupName); if (!v1) { com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.'); return null; } return new com.newgrounds.SaveFile(v1); }; v1.loadSaveFile = function (saveId, loadContents) { if (loadContents == undefined) { loadContents = true; } com.newgrounds.API._connection.sendSimpleCommand('loadSaveFile', com.newgrounds.API.onFileLoaded, {'save_id': saveId, 'get_contents': loadContents}); }; v1.onFileLoaded = function (event) { var v2; if (event.__get__success()) { v2 = com.newgrounds.SaveFile.fromObject(com.newgrounds.API.getSaveGroupById((event.__get__data()).group_id), (event.__get__data()).file); if ((event.__get__data()).get_contents) { v2.load(); } else { com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, v2); } } else { com.newgrounds.Logger.logError('Unable to load file:', event.__get__error()); com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, null, event.__get__error()); } }; v1.createSaveQuery = function (groupName) { if (!com.newgrounds.API.assertConnected()) { return null; } var v1 = com.newgrounds.API.getSaveGroup(groupName); if (!v1) { com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.'); return null; } var v2 = new com.newgrounds.SaveQuery(v1); return v2; }; v1.createSaveQueryByDate = function (groupName, sortDescending) { if (sortDescending == undefined) { sortDescending = true; } var v1 = com.newgrounds.API.createSaveQuery(groupName); if (!v1) { return null; } v1.sortOn(com.newgrounds.SaveQuery.CREATED_ON, sortDescending); return v1; }; v1.createSaveQueryByName = function (groupName, filename, exactMatch, sortDescending) { if (exactMatch == undefined) { exactMatch = false; } if (sortDescending == undefined) { sortDescending = false; } var v1 = com.newgrounds.API.createSaveQuery(groupName); if (!exactMatch) { v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_CONTAINS, filename); return v1; } v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_EQUAL, filename); return v1; }; v1.createSaveQueryByRating = function (groupName, ratingName, sortDescending) { if (sortDescending == undefined) { sortDescending = true; } var v1 = com.newgrounds.API.createSaveQuery(groupName); v1.sortOn(ratingName, sortDescending); return v1; }; v1.onRequestedFileLoaded = function (event) { com.newgrounds.API.removeEventListener(com.newgrounds.APIEvent.FILE_LOADED, com.newgrounds.API.onRequestedFileLoaded); if (event.__get__success()) { var v1 = event.__get__data(); if (v1) { com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_REQUESTED, v1); } } }; v1.addEventListener = function (eventType, listener, priority, useWeakReference) { if (priority == undefined) { priority = 0; } if (useWeakReference == undefined) { useWeakReference = true; } com.newgrounds.API._dispatcher.addEventListener(eventType, listener, false, priority, useWeakReference); }; v1.removeEventListener = function (eventType, listener) { com.newgrounds.API._dispatcher.removeEventListener(eventType, listener); }; v1.dispatchEvent = function (event, data, error) { if (data == undefined) { data = null; } if (error == undefined) { error = null; } com.newgrounds.API._dispatcher.dispatchEvent(new com.newgrounds.APIEvent(event, data, error)); }; v1.saveLocal = function (saveId, saveData) { try { var v3; var v2 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey); if (!com.newgrounds.API._sharedObjects[saveId]) { com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v2); } v3 = com.newgrounds.API._sharedObjects[saveId]; v3.data.data = com.newgrounds.API.encodeData(saveData); } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Unable to save local data.', error); return false; return true; } throw v0; } return true; }; v1.loadLocal = function (saveId) { try { var v1; var v3 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey); if (!com.newgrounds.API._sharedObjects[saveId]) { com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v3); } v1 = com.newgrounds.API._sharedObjects[saveId]; if (v1 && v1.data && v1.data.data) { return com.newgrounds.API.decodeData(v1.data.data); } return null; } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Unable to load local data.', error); return null; } throw v0; } return null; }; v1.logCustomEvent = function (eventName) { if (com.newgrounds.API.assertConnected()) { com.newgrounds.Logger.logMessage('Logged event: ' + eventName); com.newgrounds.API._connection.sendSimpleCommand('logCustomEvent', null, {'event': eventName}); } }; v1.encodeData = function (data) { if (!com.newgrounds.API._connection.assertInitialized()) { return null; } return com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(data), com.newgrounds.API._connection.encryptionKey); }; v1.decodeData = function (data) { if (!com.newgrounds.API._connection.assertInitialized()) { return null; } try { return com.newgrounds.encoders.json.JSON.decode(com.newgrounds.crypto.RC4.decrypt(data, com.newgrounds.API._connection.encryptionKey)); } catch (v0) { if (Error(v0) != null) { var error = Error(v0); return null; } throw v0; } return null; }; v1.stopPendingCommands = function () { com.newgrounds.APICommand.stopPendingCommands(); com.newgrounds.Logger.logMessage('Pending commands stopped.'); }; v1.trimWhitespace = function (string) { if (!string) { return null; } var v3 = 0; while (string.charAt(v3) == ' ') { ++v3; } var v1 = string.length - 1; for (;;) { if (!(string.charAt(v1) == ' ' && v1 >= 0)) break; --v1; } return string.slice(v3, v1 + 1); }; v1.VERSION = '3.1.0 AS2'; v1.RELEASE_MODE = 'releaseMode'; v1.DEBUG_MODE_LOGGED_IN = 'debugModeLoggedIn'; v1.DEBUG_MODE_LOGGED_OUT = 'debugModeLoggedOut'; v1.DEBUG_MODE_NEW_VERSION = 'debugModeNewVersion'; v1.DEBUG_MODE_HOST_BLOCKED = 'debugModeHostBlocked'; v1.TEST_AD_FEED_URL = 'http://www.ngads.com/adtest.php'; v1._dispatcher = new com.newgrounds.APIEventDispatcher(); v1._connection = new com.newgrounds.APIConnection(); v1._debugMode = com.newgrounds.API.DEBUG_MODE_LOGGED_IN; v1._adsApproved = false; v1._medals = new Object(); v1._medalsArray = []; v1._scoreBoards = new Object(); v1._scoreBoardsArray = []; v1._saveGroups = new Object(); v1._saveGroupsArray = []; v1._sharedObjects = new Object(); v1.addProperty('adFeedURL', v1.__get__adFeedURL, function () {}); v1.addProperty('adsApproved', v1.__get__adsApproved, function () {}); v1.addProperty('apiId', v1.__get__apiId, function () {}); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('debugMode', v1.__get__debugMode, v1.__set__debugMode); v1.addProperty('hasUserSession', v1.__get__hasUserSession, function () {}); v1.addProperty('hostDomain', v1.__get__hostDomain, function () {}); v1.addProperty('hostURL', v1.__get__hostURL, function () {}); v1.addProperty('isNetworkHost', v1.__get__isNetworkHost, function () {}); v1.addProperty('isNewgrounds', v1.__get__isNewgrounds, function () {}); v1.addProperty('medals', v1.__get__medals, function () {}); v1.addProperty('publisherId', v1.__get__publisherId, function () {}); v1.addProperty('saveGroups', v1.__get__saveGroups, function () {}); v1.addProperty('scoreBoards', v1.__get__scoreBoards, function () {}); v1.addProperty('sessionId', v1.__get__sessionId, function () {}); v1.addProperty('userId', v1.__get__userId, function () {}); v1.addProperty('username', v1.__get__username, function () {}); ASSetPropFlags(com.newgrounds.API.prototype, null, 1); } #endinitclip } movieClip 50 __Packages.com.newgrounds.encoders.ImageScanner { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.ImageScanner) { var v1 = function (hashLength, charsPerPixel) { if (hashLength) { this._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH.substr(0, hashLength); } this._baseN = new com.newgrounds.encoders.BaseN(this._hash); if (charsPerPixel) { this._charsPerPixel = charsPerPixel; } this.__set__encodeAlpha(false); }; com.newgrounds.encoders.ImageScanner = v1; var v2 = v1.prototype; v2.__get__encodeAlpha = function () { return this._encodeAlpha; }; v2.__set__encodeAlpha = function (v) { this._encodeAlpha = v; this._maxPerChannel = int(Math.pow(this._hash.length, this._charsPerPixel / (this._encodeAlpha ? 4 : 3))); if (this._maxPerChannel > 256) { this._maxPerChannel = 256; } return this.__get__encodeAlpha(); }; v2.encode = function (source, callbackFunction, callbackObject) { var v4 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'x': 0, 'y': 0, 'output': null}; var v2 = source.width.toString(); var v3 = source.height.toString(); while (v2.length < 3) { v2 = '0' + v2; } while (v3.length < 3) { v3 = '0' + v3; } v4.output = v2 + v3; var v6 = setInterval(this, 'doEncode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v4); v4.interval = v6; }; v2.decode = function (source, callbackFunction, callbackObject) { var v2 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'i': 6, 'x': 0, 'y': 0, 'output': null}; var v5 = int(source.substr(0, 3)); var v6 = int(source.substr(3, 3)); v2.output = new flash.display.BitmapData(v5, v6, this._encodeAlpha); var v4 = setInterval(this, 'doDecode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v2); v2.interval = v4; }; v2.doEncode = function (state) { var v3 = getTimer(); for (;;) { if (!(state.y < state.source.height && getTimer() - v3 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break; state.output += this.encodePixel(state.source.getPixel32(state.x, state.y)); ++state.x; if (state.x == state.source.width) { state.x = 0; ++state.y; } } if (state.y == state.source.height) { clearInterval(state.interval); state.callbackFunction.call(state.callbackObject, state.output); } }; v2.doDecode = function (state) { var v4 = getTimer(); for (;;) { if (!(state.y < state.output.height && getTimer() - v4 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break; var v3 = this.decodePixel(state.source.substr(state.i, this._charsPerPixel)); state.output.setPixel32(state.x, state.y, v3); state.i += this._charsPerPixel; ++state.x; if (state.x == state.output.width) { state.x = 0; ++state.y; } } if (state.y == state.output.height) { clearInterval(state.interval); state.callbackFunction.call(state.callbackObject, state.output); } }; v2.encodePixel = function (pixel) { var v3 = pixel >> 24 & 255; var v4 = pixel >> 16 & 255; var v5 = pixel >> 8 & 255; var v2 = pixel & 255; v3 = int((v3 / 256) * this._maxPerChannel); v4 = int((v4 / 256) * this._maxPerChannel); v5 = int((v5 / 256) * this._maxPerChannel); v2 = int((v2 / 256) * this._maxPerChannel); var v7 = v4 * this._maxPerChannel * this._maxPerChannel + v5 * this._maxPerChannel + v2; if (this._encodeAlpha) { v7 += v3 * this._maxPerChannel * this._maxPerChannel * this._maxPerChannel; } return this._baseN.encodeUint(v7, this._charsPerPixel); }; v2.decodePixel = function (encodedPixel) { var v3 = 255; var v5; var v6; var v4; var v7 = 0; var v2 = this._baseN.decodeUint(encodedPixel); v4 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); v6 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); v5 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); if (this._encodeAlpha) { v3 = v2 % this._maxPerChannel; v2 /= int(this._maxPerChannel); } return v3 << 24 | v5 << 16 | v6 << 8 | v4; }; v1.DEFAULT_HASH = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&'; v2._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH; v2._charsPerPixel = 2; v1.WORK_INTERVAL = 33.33333333333334; v2.addProperty('encodeAlpha', v2.__get__encodeAlpha, v2.__set__encodeAlpha); ASSetPropFlags(com.newgrounds.encoders.ImageScanner.prototype, null, 1); } #endinitclip } movieClip 51 __Packages.com.newgrounds.SaveFile { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveFile) { var v1 = function (group) { super(); this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.SaveFile.DEFAULT_ICON, null); this._group = group; this._keys = {}; this._ratings = {}; }; com.newgrounds.SaveFile = v1; com.newgrounds.SaveFile extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v1.__get__currentFile = function () { return com.newgrounds.SaveFile._currentFile; }; v1.fromObject = function (group, fileData) { var v4 = new com.newgrounds.SaveFile(group); v4._name = fileData.filename; v4._description = fileData.description; v4._id = fileData.save_id; v4._authorId = fileData.user_id; v4._authorName = fileData.user_name; v4._createdDate = fileData.created; v4._modifiedDate = fileData.last_update; v4._views = fileData.views; if (fileData.thumb && fileData.thumb != '') { v4._iconLoader.__set__url(com.newgrounds.SaveFile._imageFilePath + fileData.thumb); } v4._dataURL = com.newgrounds.SaveFile._saveFilePath + fileData.file; v4._fileSize = fileData.file_size; v4._approved = fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED; v4._readOnly = false; v4._public = fileData.status != com.newgrounds.SaveFile.STATUS_PRIVATE && fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED; for (var v8 in fileData.keys) { var v6 = fileData.keys[v8]; var v2 = group.getKeyById(v6.id); if (v2) { v4._keys[v2.__get__name()] = v2.validateValue(v6.value); } } for (var v9 in fileData.ratings) { var v5 = fileData.ratings[v9]; var v3 = group.getRatingById(v5.id); if (v3) { v4._ratings[v3.__get__name()] = v3.validateValue(v5.score); } } return v4; }; v2.__get__group = function () { return this._group; }; v2.__get__name = function () { return this._name; }; v2.__set__name = function (val) { this._name = val; return this.__get__name(); }; v2.__get__description = function () { return this._description; }; v2.__set__description = function (val) { this._description = val; return this.__get__description(); }; v2.__get__id = function () { return this._id; }; v2.__get__data = function () { return this._data; }; v2.__set__data = function (val) { this._data = val; return this.__get__data(); }; v2.__get__bytesLoaded = function () { if (this._data) { return this.__get__bytesTotal(); } else { if (!this._dataLoader) { return 0; } else { return this._dataLoader.getBytesLoaded(); } } }; v2.__get__bytesTotal = function () { return this._fileSize; }; v2.__get__readOnly = function () { return this._readOnly; }; v2.__get__draft = function () { return this._draft; }; v2.__set__draft = function (v) { this._draft = v; return this.__get__draft(); }; v2.__get__authorId = function () { return this._authorId; }; v2.__get__authorName = function () { return this._authorName; }; v2.__get__keys = function () { return this._keys; }; v2.__get__ratings = function () { return this._ratings; }; v2.__get__views = function () { return this._views; }; v2.__get__createdDate = function () { return this._createdDate; }; v2.__get__updatedDate = function () { return this._modifiedDate; }; v2.toString = function () { return 'Save File: ' + this._name; }; v2.__get__icon = function () { return this._iconLoader.__get__bitmapData(); }; v2.__set__icon = function (v) { this.createIcon(v); return this.__get__icon(); }; v2.__get__iconLoaded = function () { return this._iconLoader.__get__loaded(); }; v2.createIcon = function (source) { var v9 = new flash.display.BitmapData(com.newgrounds.SaveFile.ICON_WIDTH, com.newgrounds.SaveFile.ICON_HEIGHT, false, 0); var v6; var v5; var v10 = 0; var v8 = 0; if (source instanceof flash.display.BitmapData) { v6 = source.width; v5 = source.height; } else { if (source instanceof MovieClip) { v6 = source._width; v5 = source._height; var v7 = (MovieClip(source)).getBounds(source); v10 = v7.xMin; v8 = v7.yMin; } } var v3 = new flash.geom.Matrix(); var v4; v4 = Math.min(com.newgrounds.SaveFile.ICON_WIDTH / v6, com.newgrounds.SaveFile.ICON_HEIGHT / v5); v3.translate(-v10, -v8); v3.scale(v4, v4); v3.translate((com.newgrounds.SaveFile.ICON_WIDTH - v6 * v4) / 2, (com.newgrounds.SaveFile.ICON_HEIGHT - v5 * v4) / 2); v9.draw(source, v3); this._iconLoader.__set__bitmapData(v9); }; v2.attachIcon = function (parent) { if (this._iconLoader) { return this._iconLoader.attachBitmap(parent); } com.newgrounds.Logger.logError('No icon available for this sumbission.'); return null; }; v2.save = function () { if (!(this._group.__get__connection()).__get__hasUserSession()) { com.newgrounds.Logger.logError('The user must be logged-in to save a file.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN)); return undefined; } ++com.newgrounds.BitmapLoader._cacheSeed; com.newgrounds.SaveFile._currentFile = this; if (this.__get__iconLoaded()) { com.newgrounds.SaveFile.ICON_IMAGE_SCANNER.encode(this.__get__icon(), this.onIconEncoded, this); } else { this.encodeData(true); } }; v2.onIconEncoded = function (encodedIcon) { this._encodedIcon = encodedIcon; this.encodeData(true); }; v2.doSave = function () { var v4 = new com.newgrounds.APICommand('saveFile'); (v4.__get__secureParameters()).group = this._group.id; (v4.__get__secureParameters()).user_name = (this._group.__get__connection()).username; (v4.__get__secureParameters()).filename = this._name; (v4.__get__secureParameters()).description = this._description; if (this._draft) { (v4.__get__secureParameters()).draft = true; } if (this._id && !this._readOnly) { (v4.__get__secureParameters()).overwrite = 1; (v4.__get__secureParameters()).save_id = this._id; } var v8 = []; for (var v9 in this._keys) { var v2 = this._group.getKey(v9); if (v2) { v8.push({'id': v2.__get__id(), 'value': v2.validateValue(this._keys[v9])}); } else { com.newgrounds.Logger.logError('No key named "' + v9 + '" in save group "' + this._group.__get__name() + '".'); } } (v4.__get__secureParameters()).keys = v8; var v7 = []; for (var v10 in this._ratings) { var v3 = this._group.getRating(v10); if (v3) { v7.push({'id': v3.__get__id(), 'value': v3.validateValue(this._ratings[v10])}); } else { com.newgrounds.Logger.logError('No rating named "' + v10 + '" in save group "' + this._group.__get__name() + '".'); } } (v4.__get__secureParameters()).ratings = v7; if (typeof this._encodedData == 'string') { v4.addFile('file', this._encodedData, 'file'); } else { v4.addFile('file', com.newgrounds.encoders.json.JSON.encode(this._encodedData), 'file'); } if (this.__get__iconLoaded()) { v4.addFile('thumbnail', this._encodedIcon, 'thumbnail'); } v4.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {'target': this, 'func': this.onSaveComplete}); (this._group.__get__connection()).sendCommand(v4); }; v2.encodeData = function (encode) { this._encoderQueue = []; this._encoding = encode; if (encode) { this._encodedData = this._data; this.preEncodeObject(this, '_encodedData'); } else { this.preEncodeObject(this, '_data'); } this.encodeObject(); }; v2.preEncodeObject = function (parent, property) { var v3 = parent[property]; var v5; try { if (this._encoding) { v5 = v3 instanceof flash.display.BitmapData; } else { v5 = v3.type == '__bitmap'; } } var v2 = v3; var v8; if (v5) { this._encoderQueue.push({'parent': parent, 'property': property}); } else { if (typeof v3 == 'object' && !v8) { if (this._encoding) { if (v3 instanceof Array) { v2 = []; } else { v2 = {}; } for (var v4 in v3) { v2[v4] = v3[v4]; } parent[property] = v2; } for (v4 in v2) { this.preEncodeObject(v2, v4); } } } }; v2.encodeObject = function () { if (!this._encoderQueue.length) { if (this._encoding) { this.doSave(); } else { this._dataLoaded = true; this.checkLoadComplete(); } return undefined; } var v6 = this._encoderQueue.pop(); var v4 = v6.parent; var v3 = v6.property; var v2 = v4[v3]; var v5; if (this._encoding) { v5 = {'type': '__bitmap', 'width': v2.width, 'height': v2.height, 'transparent': v2.transparent}; v4[v3] = v5; this._encodingParent = v5; this._encodingProperty = 'data'; com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent); com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.encode(flash.display.BitmapData(v2), this.encodeBitmapComplete, this); } else { this._encodingParent = v4; this._encodingProperty = v3; com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent); com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.decode(String(v2.data), this.encodeBitmapComplete, this); } }; v2.encodeBitmapComplete = function (data) { this._encodingParent[this._encodingProperty] = data; this.encodeObject(); }; v2.load = function () { com.newgrounds.SaveFile._currentFile = this; this._dataLoaded = false; this._data = null; if (!this.__get__iconLoaded()) { this._iconLoader.addEventListener(com.newgrounds.APIEvent.ICON_LOADED, {'target': this, 'func': this.onIconLoaded}); this._iconLoader.load(); } this._dataLoader = new LoadVars(); var file = this; this._dataLoader.onData = function (data) { file.onDataLoaded(data); }; this._dataLoader.load(this._dataURL); }; v2.onIconLoaded = function (event) { if (!event.__get__success() && this._iconLoader.__get__url()) { com.newgrounds.Logger.logWarning('Unable to load the icon for this save file.'); } this._iconLoader.removeEventListener(com.newgrounds.APIEvent.ICON_LOADED, this.onIconLoaded); this.checkLoadComplete(); }; v2.checkLoadComplete = function () { if (this._dataLoaded && this.__get__iconLoaded()) { com.newgrounds.Logger.logMessage('Data loaded.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this)); } }; v2.onDataLoaded = function (data) { try { if (data) { if (data.charAt(0) == '{') { this._data = com.newgrounds.encoders.json.JSON.decode(String(data)); } else { this._data = String(data); } this.encodeData(false); } } catch (v0) { if (Error(v0) != null) { var error = Error(v0); com.newgrounds.Logger.logError('Error while loading data:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE)); } else { throw v0; } } }; v2.onDataError = function (error) { com.newgrounds.Logger.logError('Unable to load data:', error); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE)); }; v2.onSaveComplete = function (event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage('File "' + this._name + '" saved!'); if (event.__get__data()) { this._id = (event.__get__data()).save_id; this._dataURL = unescape((event.__get__data()).file_url); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this)); } else { com.newgrounds.Logger.logError('Error saving file "' + this._name + '":', event.__get__error()); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this, event.__get__error())); } }; v2.sendVote = function (ratingName, vote) { var v2 = this._group.getRating(ratingName); if (!v2) { com.newgrounds.Logger.logError('No save rating named "' + ratingName + '" exists for this save group.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return undefined; } vote = v2.validateValue(vote); if (isNaN(vote)) { com.newgrounds.Logger.logError('Invalid vote (' + vote + '). ' + ratingName + ' allows a range of ' + v2.__get__minimum() + '-' + v2.__get__maximum() + '.'); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return undefined; } com.newgrounds.Logger.logMessage('Voting ' + vote + ' for ' + ratingName + ' on ' + this._name + '...'); (this._group.__get__connection()).sendSimpleCommand('rateSaveFile', {'target': this, 'func': this.onVoteComplete}, null, {'group': this._group.__get__id(), 'save_id': this._id, 'rating_id': v2.__get__id(), 'vote': vote}); }; v2.onVoteComplete = function (event) { var v2 = event.__get__error(); if ((event.__get__data()).already_voted) { com.newgrounds.Logger.logError('Vote failed. You\'ve already voted on this rating today.'); v2 = com.newgrounds.APIEvent.ERROR_ALREADY_VOTED; } if (v2 == com.newgrounds.APIEvent.ERROR_NONE) { var v3 = this._group.getRatingById((event.__get__data()).rating_id); if (v3) { this._ratings[v3.__get__name()] = v3.validateValue((event.__get__data()).score); } com.newgrounds.Logger.logMessage('Vote complete!'); } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, this, v2)); }; v2.clone = function () { var v3 = new com.newgrounds.SaveFile(this._group); v3._data = this._data; v3._description = this._description; v3._draft = this._draft; v3._fileSize = this._fileSize; v3._iconLoader.__set__bitmapData(this._iconLoader.bitmapData); var v2; for (v2 in this._keys) { v3._keys[v2] = this._keys[v2]; } for (v2 in this._ratings) { v3._ratings[v2] = this._ratings[v2]; } v3._name = this._name; return v3; }; v1.ICON_WIDTH = 90; v1.ICON_HEIGHT = 90; v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultSaveIcon'); v1.STATUS_PRIVATE = 0; v1.STATUS_SHARED = 1; v1.STATUS_UNAPPROVED = 2; v1.STATUS_APPROVED = 3; v1._imageFilePath = ''; v1._saveFilePath = ''; v1.ICON_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(); v1.DATA_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(64, 6); v2.addProperty('authorId', v2.__get__authorId, function () {}); v2.addProperty('authorName', v2.__get__authorName, function () {}); v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {}); v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {}); v2.addProperty('createdDate', v2.__get__createdDate, function () {}); v1.addProperty('currentFile', v1.__get__currentFile, function () {}); v2.addProperty('data', v2.__get__data, v2.__set__data); v2.addProperty('description', v2.__get__description, v2.__set__description); v2.addProperty('draft', v2.__get__draft, v2.__set__draft); v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('iconLoaded', v2.__get__iconLoaded, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('keys', v2.__get__keys, function () {}); v2.addProperty('name', v2.__get__name, v2.__set__name); v2.addProperty('ratings', v2.__get__ratings, function () {}); v2.addProperty('readOnly', v2.__get__readOnly, function () {}); v2.addProperty('updatedDate', v2.__get__updatedDate, function () {}); v2.addProperty('views', v2.__get__views, function () {}); ASSetPropFlags(com.newgrounds.SaveFile.prototype, null, 1); } #endinitclip } movieClip 49 __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 47 __Packages.com.newgrounds.SaveKey { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveKey) { var v1 = function (name, id, type) { this._name = name; this._id = id; this._type = type; }; com.newgrounds.SaveKey = v1; var v2 = v1.prototype; v2.__get__name = function () { return this._name; }; v2.__get__id = function () { return this._id; }; v2.__get__type = function () { return this._type; }; v2.validateValue = function (value) { switch (this._type) { return null; case com.newgrounds.SaveKey.TYPE_INTEGER: value = Number(value); if (!isNaN(value)) { var v3 = int(value); if (v3 != value) { com.newgrounds.Logger.logWarning('Float value ' + value + ' given for integer key "' + this._name + '". Clamping to ' + v3 + '.'); } return v3; } return null; case com.newgrounds.SaveKey.TYPE_FLOAT: value = Number(value); if (!isNaN(value)) { return isNaN(Number(value)); } return null; case com.newgrounds.SaveKey.TYPE_BOOLEAN: return Boolean(value); return null; case com.newgrounds.SaveKey.TYPE_STRING: return value ? value.toString() : ''; return null; } return null; }; v2.toString = function () { return this._name; }; v1.TYPE_FLOAT = 1; v1.TYPE_INTEGER = 2; v1.TYPE_STRING = 3; v1.TYPE_BOOLEAN = 4; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.SaveKey.prototype, null, 1); } #endinitclip } movieClip 48 __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 43 __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 52 __Packages.com.newgrounds.SaveQuery { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveQuery) { var v1 = function (group) { super(); this._group = group; this._connection = group.connection; this.reset(); }; com.newgrounds.SaveQuery = v1; com.newgrounds.SaveQuery extends com.newgrounds.APIEventDispatcher; var v2 = v1.prototype; v2.__get__group = function () { return this._group; }; v2.__get__resultsPerPage = function () { return this._resultsPerPage; }; v2.__set__resultsPerPage = function (val) { this._resultsPerPage = Math.min(Math.max(val, 1), 100); return this.__get__resultsPerPage(); }; v2.__get__page = function () { return this._page; }; v2.__set__page = function (val) { this._page = Math.max(val, 1); return this.__get__page(); }; v2.prevPage = function () { this.__set__page(this.__get__page() - 1); }; v2.nextPage = function () { this.__set__page(this.__get__page() + 1); }; v2.__get__isRandomized = function () { return this._isRandomized; }; v2.__set__isRandomized = function (val) { this._isRandomized = val; return this.__get__isRandomized(); }; v2.__get__files = function () { return this._files; }; v2.reset = function () { this._page = 1; this._resultsPerPage = 10; this._isRandomized = false; this._lookupKeys = []; this._lookupRatings = []; this._fileConditions = []; this._keyConditions = []; this._ratingConditions = []; this._sortFields = []; this._files = []; this.includeAllFields(); }; v2.clone = function () { var v2 = new com.newgrounds.SaveQuery(this._group); v2._page = this._page; v2._resultsPerPage = this._resultsPerPage; v2._isRandomized = this._isRandomized; v2._lookupKeys = this._lookupKeys.concat(); v2._lookupRatings = this._lookupRatings.concat(); v2._fileConditions = this._fileConditions.concat(); v2._keyConditions = this._keyConditions.concat(); v2._ratingConditions = this._ratingConditions.concat(); return v2; }; v2.includeAllFields = function () { for (var v5 in this._group.__get__keys()) { var v2 = (this._group.__get__keys())[v5]; this._lookupKeys.push(v2.__get__id()); } for (var v4 in this._group.__get__ratings()) { var v3 = (this._group.__get__ratings())[v4]; this._lookupRatings.push(v3.__get__id()); } }; v2.addCondition = function (field, operator, value) { var v2; v2 = 0; while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) { if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) { break; } ++v2; } if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) { v2 = -1; } if (v2 >= 0) { this._fileConditions.push({'field': v2, 'operator': operator, 'value': value}); } else { var v3 = this._group.getKey(field); if (v3) { value = v3.validateValue(value); this._keyConditions.push({'key_id': v3.__get__id(), 'operator': operator, 'value': value}); return undefined; } var v4 = field.split('.'); var v6 = this._group.getRating(v4[0]); if (v6) { value = v6.validateValue(value); this._ratingConditions.push({'rating_id': v6.__get__id(), 'operator': operator, 'value': value, 'column': v4[1] ? v4[1] : 'score'}); return undefined; } com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".'); } }; v2.sortOn = function (field, sortDescending) { if (sortDescending == undefined) { sortDescending = false; } var v2; v2 = 0; while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) { if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) { break; } ++v2; } if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) { v2 = -1; } if (v2 >= 0) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_FILES, 'field': v2, 'desc': sortDescending}); } else { var v5 = this._group.getKey(field); if (v5) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_KEYS, 'field': v5.__get__id(), 'desc': sortDescending}); return undefined; } var v3 = field.split('.'); var v6 = this._group.getRating(v3[0]); if (v6) { this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_RATINGS, 'field': v6.__get__id(), 'desc': sortDescending, 'extra': v3[1] ? v3[1] : 'score'}); return undefined; } com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".'); } }; v2.execute = function () { var v5 = {}; v5.page = this._page; v5.num_results = this._resultsPerPage; if (this._isRandomized) { v5.randomize = 1; } if (this._lookupKeys && this._lookupKeys.length) { v5.lookup_keys = this._lookupKeys; } if (this._lookupRatings && this._lookupRatings.length) { v5.lookup_ratings = this._lookupRatings; } if (this._fileConditions && this._fileConditions.length) { v5.file_conditions = this._fileConditions; } if (this._keyConditions && this._keyConditions.length) { v5.key_conditions = this._keyConditions; } if (this._ratingConditions && this._ratingConditions.length) { v5.rating_conditions = this._ratingConditions; } if (this._sortFields && this._sortFields.length) { v5.sort_conditions = this._sortFields; } this._connection.sendSimpleCommand('lookupSaveFiles', {'target': this, 'func': this.onQueryComplete}, {'publisher_id': this._connection.publisherId, 'group_id': this._group.__get__id(), 'query': v5}); }; v2.onQueryComplete = function (event) { if (event.__get__success()) { var v4 = event.__get__data(); this._files = []; if (v4.files) { var v2 = 0; while (v2 < v4.files.length) { var v3 = com.newgrounds.SaveFile.fromObject(this._group, v4.files[v2]); if (v3) { this._files.push(v3); } ++v2; } } this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this)); } else { com.newgrounds.Logger.logError('Query failed: ' + event.__get__error()); this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this, event.__get__error())); } }; v1.FILE_ID = 'fileId'; v1.AUTHOR_ID = 'authorId'; v1.AUTHOR_NAME = 'authorName'; v1.FILE_NAME = 'fileName'; v1.CREATED_ON = 'createdOn'; v1.UPDATED_ON = 'updatedOn'; v1.FILE_VIEWS = 'fileViews'; v1.FILE_STATUS = 'fileStatus'; v1.FILE_FIELDS = [com.newgrounds.SaveQuery.FILE_ID, com.newgrounds.SaveQuery.AUTHOR_ID, com.newgrounds.SaveQuery.AUTHOR_NAME, com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.CREATED_ON, com.newgrounds.SaveQuery.UPDATED_ON, com.newgrounds.SaveQuery.FILE_VIEWS, com.newgrounds.SaveQuery.FILE_STATUS]; v1.OPERATOR_EQUAL = '='; v1.OPERATOR_LESS_THAN = '<'; v1.OPERATOR_GREATER_THAN = '>'; v1.OPERATOR_NOT_EQUAL = '!='; v1.OPERATOR_LESS_OR_EQUAL = '<='; v1.OPERATOR_GREATER_OR_EQUAL = '>='; v1.OPERATOR_CONTAINS = '*'; v1.OPERATOR_NOT_CONTAINS = '!*'; v1.OPERATOR_NOT_BEGINS_WITH = '!*='; v1.OPERATOR_NOT_ENDS_WITH = '!=*'; v1.OPERATOR_BEGINS_WITH = '*='; v1.OPERATOR_ENDS_WITH = '=*'; v1.TABLE_FILES = 1; v1.TABLE_KEYS = 2; v1.TABLE_RATINGS = 3; v2._page = 1; v2._resultsPerPage = 10; v2._isRandomized = false; v2.addProperty('files', v2.__get__files, function () {}); v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('isRandomized', v2.__get__isRandomized, v2.__set__isRandomized); v2.addProperty('page', v2.__get__page, v2.__set__page); v2.addProperty('resultsPerPage', v2.__get__resultsPerPage, v2.__set__resultsPerPage); ASSetPropFlags(com.newgrounds.SaveQuery.prototype, null, 1); } #endinitclip } movieClip 44 __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 46 __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 35 __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 1192 __Packages.loading_boss { #initclip if (!_global.loading_boss) { var v1 = function () { super(); }; _global.loading_boss = v1; _global.loading_boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; this.button = _root.attachMovie('loading_button', 'loading_button', _root.getNextHighestDepth()); this.button._x = 136; this.button._y = 420; this.button.gotoAndStop(1); this.objs.push(this.button); this.button_pressed = false; this.bar1 = _root.attachMovie('loading_bar', 'bar' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.bar1.boss = this; this.bar1.my_color = 16534016; this.bar1.x1 = 0; this.bar1.y1 = 0; this.bar1.x2 = 412; this.bar1.y2 = 108; this.objs.push(this.bar1); this.bar2 = _root.attachMovie('loading_bar', 'bar' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.bar2.boss = this; this.bar2.my_color = 16711780; this.bar2.x1 = 412; this.bar2.y1 = 0; this.bar2.x2 = 512; this.bar2.y2 = 402; this.objs.push(this.bar2); this.bar3 = _root.attachMovie('loading_bar', 'bar' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.bar3.boss = this; this.bar3.my_color = 65342; this.bar3.x1 = 100; this.bar3.y1 = 402; this.bar3.x2 = 512; this.bar3.y2 = 512; this.objs.push(this.bar3); this.bar4 = _root.attachMovie('loading_bar', 'bar' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.bar4.boss = this; this.bar4.my_color = 23551; this.bar4.x1 = 0; this.bar4.y1 = 108; this.bar4.x2 = 100; this.bar4.y2 = 512; this.objs.push(this.bar4); }; v2.onEnterFrame = function () { var v6 = _root.getBytesLoaded() / 1024; var v5 = _root.getBytesTotal() / 1024; var v3 = Math.round((v6 / v5) * 100); this.bar1.x2 = 412 * (v3 / 100); this.bar2.y2 = 402 * (v3 / 100); this.bar3.x1 = 100 / (v3 / 100); this.bar4.y1 = 108 / (v3 / 100); this.button.swapDepths(_root.getNextHighestDepth()); var v4 = false; if (_root.getBytesLoaded() == _root.getBytesTotal()) { v4 = true; } if (v4) { if (this.button.hitTest(_root._xmouse, _root._ymouse, true)) { this.button.gotoAndStop(3); } else { this.button.gotoAndStop(2); } } if (this.button_pressed) { if (_root._currentframe == 3) { _root.gotoAndStop(3); this.startGame(); } } }; v2.onMouseDown = function () { if (_root.getBytesLoaded() == _root.getBytesTotal()) { if (this.button.hitTest(_root._xmouse, _root._ymouse, true) and !this.button_pressed) { this.button_pressed = true; _root.play(); } } }; v2.startGame = function () { var v4 = _root.attachMovie('Gameboss', 'Gameboss', _root.getNextHighestDepth()); for (var v3 in this.objs) { this.objs[v3].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.loading_boss.prototype, null, 1); } #endinitclip } movieClip 1193 __Packages.loading_bar { #initclip if (!_global.loading_bar) { var v1 = function () { super(); }; _global.loading_bar = v1; _global.loading_bar extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () {}; v2.onEnterFrame = function () { this.box.removeMovieClip(); this.box = this.createEmptyMovieClip('box' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.box.beginFill(this.my_color); this.box.moveTo(this.x1, this.y1); this.box.lineTo(this.x2, this.y1); this.box.lineTo(this.x2, this.y2); this.box.lineTo(this.x1, this.y2); this.box.lineTo(this.x1, this.y1); this.box.endFill(); this.boss.boxes.push(this.box); this.boss.objs.push(this.box); }; ASSetPropFlags(_global.loading_bar.prototype, null, 1); } #endinitclip } movieClip 54 __Packages.com.newgrounds.components.FlashAdBase { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.components) { _global.com.newgrounds.components = new Object(); } if (!_global.com.newgrounds.components.FlashAdBase) { var v1 = function () { super(); try { System.security.allowDomain('server.cpmstar.com'); System.security.allowInsecureDomain('server.cpmstar.com'); } this._x = int(this._x); this._y = int(this._y); this.stop(); if (this.__get___newgroundsButton()) { (this.__get___newgroundsButton()).onRelease = this.onNGClick; } this.onUnload = this.removeAd; var v4 = this; this._adListener = {'onLoadError': function (target, error, httpStatus) { target._parent.onAdError(target, error, httpStatus); }}; if (this.__get__fullScreen()) { this.drawFullScreenRect(); } if (com.newgrounds.API.__get__adFeedURL()) { this.loadAdFeed(); } else { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, {'target': this, 'func': this.loadAdFeed}); } }; com.newgrounds.components.FlashAdBase = v1; com.newgrounds.components.FlashAdBase extends MovieClip; var v2 = v1.prototype; v2.__get___adContainer = function () { return this.adContainer; }; v2.__get___newgroundsButton = function () { return this.newgroundsButton; }; v2.__get__fullScreen = function () { return this._fullScreen; }; v2.__set__fullScreen = function (v) { this._fullScreen = v; if (v) { this.drawFullScreenRect(); } else { this.clear(); } return this.__get__fullScreen(); }; v2.__get__showBorder = function () { return this._showBorder; }; v2.__set__showBorder = function (value) { this._showBorder = value; if (this._showBorder) { if (this._ad) { var v2 = this._ad.getProgress(this.__get___adContainer()); if (v2.bytesLoaded >= v2.bytesTotal) { if (this.showPlayButton) { this.gotoAndStop('loadedPlay'); } else { this.gotoAndStop('loaded'); } } else { this.gotoAndStop('loading'); } } else { this.gotoAndStop('idle'); } } else { this.gotoAndStop('noBorder'); } return this.__get__showBorder(); }; v2.loadAdFeed = function (event) { if (event == undefined) { event = null; } this._adFeedLoader = new LoadVars(); var target = this; this._adFeedLoader.onData = function (data) { target.onAdFeedLoaded(data); }; this._adFeedLoader.load(com.newgrounds.API.__get__adFeedURL(), this._adFeedLoader); }; v2.onAdFeedLoaded = function (data) { if (data && data != '') { this.loadAd(data); } else { this.onAdError(); } }; v2.loadAd = function (adURL) { if (this.showPlayButton) { this.gotoAndStop('loadedPlay'); } if (this.adType != this.VIDEO_ADS) { if (adURL.indexOf('?') >= 0) { adURL += '&'; } else { adURL += '?'; } adURL += 'blockoverlays=1'; } this._ad = new MovieClipLoader(); this._ad.addListener(this._adListener); (this.__get___adContainer())._lockroot = true; this._ad.loadClip(adURL, this.__get___adContainer()); }; v2.removeAd = function () { this._adFeedLoader.onData = null; this._adFeedLoader = null; this._ad.removeListener(this._adListener); if (this.__get___adContainer()) { this._ad.unloadClip(this.__get___adContainer()); } this._ad = null; }; v2.onAdError = function (target, error, httpStatus) { com.newgrounds.Logger.logError('Unable to load ad.'); this.removeAd(); }; v2.onNGClick = function () { com.newgrounds.API.loadNewgrounds(); }; v2.drawFullScreenRect = function () { this._x = (Stage.width - this._width) / 2; this._y = (Stage.height - this._height) / 2; this.beginFill(0); this.moveTo(-Stage.width, -Stage.height); this.lineTo(Stage.width, -Stage.height); this.lineTo(Stage.width, Stage.height); this.lineTo(-Stage.width, Stage.height); this.lineTo(-Stage.width, -Stage.height); this.endFill(); }; v2._showBorder = true; v2.adType = com.newgrounds.components.FlashAdBase.prototype.VIDEO_ADS; v2.VIDEO_ADS = 'Video'; v2.SIMPLE_ADS = 'Simple'; v2.addProperty('_adContainer', v2.__get___adContainer, function () {}); v2.addProperty('_newgroundsButton', v2.__get___newgroundsButton, function () {}); v2.addProperty('fullScreen', v2.__get__fullScreen, v2.__set__fullScreen); v2.addProperty('showBorder', v2.__get__showBorder, v2.__set__showBorder); ASSetPropFlags(com.newgrounds.components.FlashAdBase.prototype, null, 1); } #endinitclip } movieClip 1194 __Packages.Init { #initclip if (!_global.Init) { var v1 = function () { super(); }; _global.Init = v1; _global.Init extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { var v2 = _root.attachMovie('loading_boss', 'loading_boss', _root.getNextHighestDepth()); }; ASSetPropFlags(_global.Init.prototype, null, 1); } #endinitclip } movieClip 1195 __Packages.loading_button { #initclip if (!_global.loading_button) { var v1 = function () { super(); }; _global.loading_button = v1; _global.loading_button extends MovieClip; var v2 = v1.prototype; v2.onRollOver = function () {}; ASSetPropFlags(_global.loading_button.prototype, null, 1); } #endinitclip } movieClip 1196 __Packages.Gameboss { #initclip if (!_global.Gameboss) { var v1 = function () { super(); }; _global.Gameboss = v1; _global.Gameboss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.no_save = false; if (this.no_save) { this.levels_unlocked = 4; this.game_finished = true; } else { var v2 = SharedObject.getLocal('auntiepixelante/dys4ia'); if (v2.data.levels_unlocked != null) { this.levels_unlocked = v2.data.levels_unlocked; trace('loaded saved data!'); } else { this.levels_unlocked = 1; trace('no saved data!'); } if (v2.data.game_finished == null) { this.game_finished = false; } else { this.game_finished = v2.data.game_finished; } this.unlocked_level = 0; if (this.levels_unlocked == 1) { this.unlocked_level = 1; } if (this.levels_unlocked == 2) { this.unlocked_level = 2; } if (this.levels_unlocked == 3) { this.unlocked_level = 3; } if (this.levels_unlocked == 4 and !this.game_finished) { this.unlocked_level = 4; } this.medal = false; } this.test_scene = 0; this.scene = 0; this.levels = [[null], [1, 2, 3, 4, 5, 6, 7], [8, 9, 10, 11, 12, 13, 14, 15, 16], [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], [29, 37, 30, 31, 33, 32, 34, 35, 36, 38, 39, 40, 41, 42]]; this.last_level = 0; this.scene = -1; if (this.test_scene > 0) { this.makeScene(this.test_scene); } else { this.buildNewgrounds(); } this.wall_chart = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; this.sfx_static = new Sound(); this.sfx_static.attachSound('kck.wav'); this.music_lvl1 = new Sound(); this.music_lvl1.attachSound('lvl1.wav'); this.music_lvl2 = new Sound(); this.music_lvl2.attachSound('lvl2.wav'); this.music_lvl3 = new Sound(); this.music_lvl3.attachSound('lvl3.wav'); this.music_lvl4 = new Sound(); this.music_lvl4.attachSound('lvl4.wav'); this.medal = false; }; v2.onEnterFrame = function () {}; v2.buildNewgrounds = function () { var v3 = _root.attachMovie('newgrounds_boss', 'newgrounds_boss', _root.getNextHighestDepth()); v3.boss = this; }; v2.buildLogo = function () { this.newScene(true, false, false); }; v2.buildTitle = function () { this.newScene(false, true, false); }; v2.buildMenu = function () { this.newScene(false, false, true); }; v2.playLevel = function (num) { this.last_level = num; this.scene_selection = this.levels[num]; this.scene_counter = 0; this.newScene(); switch (num) { case 1: this.music_lvl1.start(0, 10000); break; case 2: this.music_lvl2.start(0, 10000); break; case 3: this.music_lvl3.start(0, 10000); break; case 4: this.music_lvl4.start(0, 10000); } }; v2.newScene = function (logo, title, menu) { if (logo) { this.scene = -2; } else { if (title) { this.scene = -1; } else { if (this.scene_counter == this.scene_selection.length or menu) { this.musicStop(); if (!this.no_save) { this.saveGame(); } this.scene = 0; } else { this.scene = this.scene_selection[this.scene_counter]; ++this.scene_counter; } } } this.sfx_static.start(); var v3 = _root.attachMovie('Statique', 'Statique', _root.getNextHighestDepth()); v3.boss = this; v3.timer = 5; }; v2.musicStop = function () { this.music_lvl1.stop(); this.music_lvl2.stop(); this.music_lvl3.stop(); this.music_lvl4.stop(); }; v2.makeScene = function (number) { switch (number) { case -2: var v3 = _root.attachMovie('logo_boss', 'logo_boss', _root.getNextHighestDepth()); break; case -1: var v3 = _root.attachMovie('titleboss', 'titleboss', _root.getNextHighestDepth()); break; case 0: var v3 = _root.attachMovie('menuboss', 'menuboss', _root.getNextHighestDepth()); break; case 1: var v3 = _root.attachMovie('scene1boss', 'scene1boss', _root.getNextHighestDepth()); break; case 2: var v3 = _root.attachMovie('scene2boss', 'scene2boss', _root.getNextHighestDepth()); break; case 3: var v3 = _root.attachMovie('scene3boss', 'scene3boss', _root.getNextHighestDepth()); break; case 4: var v3 = _root.attachMovie('scene4boss', 'scene4boss', _root.getNextHighestDepth()); break; case 5: var v3 = _root.attachMovie('scene5boss', 'scene5boss', _root.getNextHighestDepth()); break; case 6: var v3 = _root.attachMovie('scene6boss', 'scene6boss', _root.getNextHighestDepth()); break; case 7: var v3 = _root.attachMovie('scene7boss', 'scene7boss', _root.getNextHighestDepth()); break; case 8: var v3 = _root.attachMovie('scene8boss', 'scene8boss', _root.getNextHighestDepth()); break; case 9: var v3 = _root.attachMovie('scene9boss', 'scene9boss', _root.getNextHighestDepth()); break; case 10: var v3 = _root.attachMovie('scene10boss', 'scene10boss', _root.getNextHighestDepth()); break; case 11: var v3 = _root.attachMovie('scene11boss', 'scene11boss', _root.getNextHighestDepth()); break; case 12: var v3 = _root.attachMovie('scene12boss', 'scene12boss', _root.getNextHighestDepth()); break; case 13: var v3 = _root.attachMovie('scene13boss', 'scene13boss', _root.getNextHighestDepth()); break; case 14: var v3 = _root.attachMovie('scene14boss', 'scene14boss', _root.getNextHighestDepth()); break; case 15: var v3 = _root.attachMovie('scene15boss', 'scene15boss', _root.getNextHighestDepth()); break; case 16: var v3 = _root.attachMovie('scene16boss', 'scene16boss', _root.getNextHighestDepth()); break; case 17: var v3 = _root.attachMovie('scene17boss', 'scene17boss', _root.getNextHighestDepth()); break; case 18: var v3 = _root.attachMovie('scene18boss', 'scene18boss', _root.getNextHighestDepth()); break; case 19: var v3 = _root.attachMovie('scene19boss', 'scene19boss', _root.getNextHighestDepth()); break; case 20: var v3 = _root.attachMovie('scene20boss', 'scene20boss', _root.getNextHighestDepth()); break; case 21: var v3 = _root.attachMovie('scene21boss', 'scene21boss', _root.getNextHighestDepth()); break; case 22: var v3 = _root.attachMovie('scene22boss', 'scene22boss', _root.getNextHighestDepth()); break; case 23: var v3 = _root.attachMovie('scene23boss', 'scene23boss', _root.getNextHighestDepth()); break; case 24: var v3 = _root.attachMovie('scene24boss', 'scene24boss', _root.getNextHighestDepth()); break; case 25: var v3 = _root.attachMovie('scene25boss', 'scene25boss', _root.getNextHighestDepth()); break; case 26: var v3 = _root.attachMovie('scene26boss', 'scene26boss', _root.getNextHighestDepth()); break; case 27: var v3 = _root.attachMovie('scene27boss', 'scene27boss', _root.getNextHighestDepth()); break; case 28: var v3 = _root.attachMovie('scene28boss', 'scene28boss', _root.getNextHighestDepth()); break; case 29: var v3 = _root.attachMovie('scene29boss', 'scene29boss', _root.getNextHighestDepth()); break; case 30: var v3 = _root.attachMovie('scene30boss', 'scene30boss', _root.getNextHighestDepth()); break; case 31: var v3 = _root.attachMovie('scene31boss', 'scene31boss', _root.getNextHighestDepth()); break; case 32: var v3 = _root.attachMovie('scene32boss', 'scene32boss', _root.getNextHighestDepth()); break; case 33: var v3 = _root.attachMovie('scene33boss', 'scene33boss', _root.getNextHighestDepth()); break; case 34: var v3 = _root.attachMovie('scene34boss', 'scene34boss', _root.getNextHighestDepth()); break; case 35: var v3 = _root.attachMovie('scene35boss', 'scene35boss', _root.getNextHighestDepth()); break; case 36: var v3 = _root.attachMovie('scene36boss', 'scene36boss', _root.getNextHighestDepth()); break; case 37: var v3 = _root.attachMovie('scene37boss', 'scene37boss', _root.getNextHighestDepth()); break; case 38: var v3 = _root.attachMovie('scene38boss', 'scene38boss', _root.getNextHighestDepth()); break; case 39: var v3 = _root.attachMovie('scene39boss', 'scene39boss', _root.getNextHighestDepth()); break; case 40: var v3 = _root.attachMovie('scene40boss', 'scene40boss', _root.getNextHighestDepth()); break; case 41: var v3 = _root.attachMovie('scene41boss', 'scene41boss', _root.getNextHighestDepth()); break; case 42: var v3 = _root.attachMovie('scene42boss', 'scene42boss', _root.getNextHighestDepth()); } storedv3.boss = this; if (number == 0) { if (this.medal) { storedv3.medal = true; this.medal = false; } else { storedv3.medal = false; } } }; v2.saveGame = function () { var v3 = this.levels_unlocked; if (this.last_level == 1 and this.levels_unlocked < 2) { this.levels_unlocked = 2; this.unlocked_level = 2; } if (this.last_level == 2 and this.levels_unlocked < 3) { this.levels_unlocked = 3; this.unlocked_level = 3; } if (this.last_level == 3 and this.levels_unlocked < 4) { this.levels_unlocked = 4; this.unlocked_level = 4; } if (this.last_level == 4 and !this.game_finished) { this.unlocked_level = 0; this.game_finished = true; var v2 = SharedObject.getLocal('auntiepixelante/dys4ia'); v2.data.game_finished = true; v2.flush(); trace('game saved!'); this.medal = true; com.newgrounds.API.unlockMedal('it gets better'); } if (this.levels_unlocked > v3) { v2 = SharedObject.getLocal('auntiepixelante/dys4ia'); v2.data.levels_unlocked = this.levels_unlocked; v2.flush(); trace('game saved!'); } }; ASSetPropFlags(_global.Gameboss.prototype, null, 1); } #endinitclip } movieClip 1197 __Packages.logo_boss { #initclip if (!_global.logo_boss) { var v1 = function () { super(); }; _global.logo_boss = v1; _global.logo_boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v5 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v5.beginFill(16777215); v5.moveTo(0, 0); v5.lineTo(512, 0); v5.lineTo(512, 512); v5.lineTo(0, 512); v5.lineTo(0, 0); v5.endFill(); this.objs.push(v5); this.boxes = []; var v3 = 0; while (v3 < 6) { var v4 = _root.attachMovie('StatiqueBox', 'StatiqueBox' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.boxes.push(v4); ++v3; } var v6 = _root.attachMovie('logo_me', 'logo_me', _root.getNextHighestDepth()); this.objs.push(v6); this.end_timer = 120; this.sfx_phbbt = new Sound(); this.sfx_phbbt.attachSound('phbbbt.wav'); }; v2.onEnterFrame = function () { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } }; v2.endScene = function () { this.boss.buildTitle(); for (var v2 in this.boxes) { this.boxes[v2].removeMe(); } for (v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.logo_boss.prototype, null, 1); } #endinitclip } movieClip 1198 __Packages.logo_me { #initclip if (!_global.logo_me) { var v1 = function () { super(); }; _global.logo_me = v1; _global.logo_me extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.logo_me.prototype, null, 1); } #endinitclip } movieClip 1199 __Packages.menu_arrows { #initclip if (!_global.menu_arrows) { var v1 = function () { super(); }; _global.menu_arrows = v1; _global.menu_arrows extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 10; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.menu_arrows.prototype, null, 1); } #endinitclip } movieClip 1200 __Packages.menu_button { #initclip if (!_global.menu_button) { var v1 = function () { super(); }; _global.menu_button = v1; _global.menu_button extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.grey) { this.modifier = 8; } else { this.modifier = 0; } this.gotoAndStop(this.num + this.modifier); switch (this.num) { case 1: this.my_key = 38; break; case 2: this.my_key = 37; break; case 3: this.my_key = 39; break; case 4: this.my_key = 40; } this.key_clear = false; this.chosen = false; this.sfx_click = new Sound(); this.sfx_click.attachSound('click.wav'); this.sfx_clear = true; this.flash_timer = 0; this.depressed = false; }; v2.onEnterFrame = function () { if (Key.isDown(this.my_key) and this.key_clear and (this.chosen or !this.boss.locked)) { if (!this.depressed) { if (!this.grey) { if (this.flashing) { this.chosen = true; this.boss.locked = true; } for (var v2 in this.boss.buttons) { this.boss.buttons[v2].flashing = false; } this.flashing = true; this.flash_timer = 0; } } if (this.sfx_clear) { this.sfx_click.start(); this.sfx_clear = false; } this.depressed = true; } else { if (this.chosen) { this.chosen = false; this.boss.destination = this.num; this.boss.end_timer = this.boss.end_speed; } this.sfx_clear = true; } if (!Key.isDown(this.my_key)) { this.key_clear = true; this.depressed = false; } if (this.depressed) { this.gotoAndStop(this.num + 4 + this.modifier); } else { if (this.flashing) { ++this.flash_timer; if (this.flash_timer > 10) { this.flash_timer = 1; } if (this.flash_timer >= 9) { this.gotoAndStop(this.num + this.modifier + 16); } else { this.gotoAndStop(this.num + this.modifier); } } else { this.gotoAndStop(this.num + this.modifier); } } }; ASSetPropFlags(_global.menu_button.prototype, null, 1); } #endinitclip } movieClip 1201 __Packages.menu_tank { #initclip if (!_global.menu_tank) { var v1 = function () { super(); }; _global.menu_tank = v1; _global.menu_tank extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.going_up = true; this.up_timer = 100; this.y_start = this._y; if (!this.medal) { this.gotoAndStop(1); this.displaying = false; } else { this.gotoAndStop(3); this.displaying = true; this._y = 512; } }; v2.onEnterFrame = function () { if (!this.displaying) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { if (this.going_up) { if (this._y > this.y_start - 60) { this._y -= 16; } else { if (this.up_timer > 0) { --this.up_timer; } else { this.going_up = false; } } } else { if (this._y < this.y_start) { this._y += 16; } else { this.displaying = false; } } } if (this._y < this.y_start - 60) { this._y = this.y_start - 60; } if (this._y > this.y_start and !this.going_up) { this._y = this.y_start; } }; v2.onRollOver = function () {}; v2.onMouseDown = function () { if (this.hitTest(_root._xmouse, _root._ymouse, true) and !this.displaying) { this.getURL('http://www.newgrounds.com/collection/artgames', '_blank'); } }; ASSetPropFlags(_global.menu_tank.prototype, null, 1); } #endinitclip } movieClip 1202 __Packages.menuboss { #initclip if (!_global.menuboss) { var v1 = function () { super(); }; _global.menuboss = v1; _global.menuboss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v6 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v6.beginFill(16777215); v6.moveTo(0, 0); v6.lineTo(512, 0); v6.lineTo(512, 512); v6.lineTo(0, 512); v6.lineTo(0, 0); v6.endFill(); this.objs.push(v6); this.boxes = []; var v3 = 0; while (v3 < 6) { var v4 = _root.attachMovie('StatiqueBox', 'StatiqueBox' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4._alpha = 50; this.boxes.push(v4); ++v3; } var v10 = this.boss.levels_unlocked; var v7 = this.boss.unlocked_level; this.buttons = []; var v5 = _root.attachMovie('menu_button', 'menu_button' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v5.boss = this; v5._x = 176; v5._y = 20; v5.num = 1; v5.grey = false; if (v7 == 1) { v5.flashing = true; } else { v5.flashing = false; } this.objs.push(v5); this.buttons.push(v5); v5 = _root.attachMovie('menu_button', 'menu_button' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v5.boss = this; v5._x = 16; v5._y = 176; v5.num = 2; if (v10 < 2) { v5.grey = true; } else { v5.grey = false; } if (v7 == 2) { v5.flashing = true; } else { v5.flashing = false; } this.objs.push(v5); this.buttons.push(v5); v5 = _root.attachMovie('menu_button', 'menu_button' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v5.boss = this; v5._x = 332; v5._y = 176; v5.num = 3; if (v10 < 3) { v5.grey = true; } else { v5.grey = false; } if (v7 == 3) { v5.flashing = true; } else { v5.flashing = false; } this.objs.push(v5); this.buttons.push(v5); v5 = _root.attachMovie('menu_button', 'menu_button' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v5.boss = this; v5._x = 176; v5._y = 336; v5.num = 4; if (v10 < 4) { v5.grey = true; } else { v5.grey = false; } if (v7 == 4) { v5.flashing = true; } else { v5.flashing = false; } this.objs.push(v5); this.buttons.push(v5); var v9 = _root.attachMovie('menu_arrows', 'menu_arrows', _root.getNextHighestDepth()); v9._x = 192; v9._y = 188; this.objs.push(v9); var v8 = _root.attachMovie('menu_tank', 'menu_tank', _root.getNextHighestDepth()); v8._y = 452; v8.medal = this.medal; this.objs.push(v8); this.end_speed = 10; this.end_timer = 0; this.locked = false; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.playLevel(this.destination); for (var v2 in this.boxes) { this.boxes[v2].removeMe(); } for (v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.menuboss.prototype, null, 1); } #endinitclip } movieClip 1203 __Packages.newgrounds_boss { #initclip if (!_global.newgrounds_boss) { var v1 = function () { super(); }; _global.newgrounds_boss = v1; _global.newgrounds_boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16777215); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v4 = _root.attachMovie('newgrounds_logo', 'newgrounds_logo', _root.getNextHighestDepth()); this.objs.push(v4); this.end_timer = 120; this.sfx_static = new Sound(); this.sfx_static.attachSound('kckck.wav'); this.music_intro = new Sound(); this.music_intro.attachSound('intro.wav'); this.music_intro.start(); }; v2.onEnterFrame = function () { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } }; v2.endScene = function () { this.boss.buildLogo(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.newgrounds_boss.prototype, null, 1); } #endinitclip } movieClip 1204 __Packages.newgrounds_logo { #initclip if (!_global.newgrounds_logo) { var v1 = function () { super(); }; _global.newgrounds_logo = v1; _global.newgrounds_logo extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 1; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; ++this.frame; if (this.frame > 4) { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.newgrounds_logo.prototype, null, 1); } #endinitclip } movieClip 1205 __Packages.s1arrow { #initclip if (!_global.s1arrow) { var v1 = function () { super(); }; _global.s1arrow = v1; _global.s1arrow extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { var v3 = _root.attachMovie('Blinker', 'Blinker', _root.getNextHighestDepth()); v3.mom = this; v3.frequency = 20; this.boss.objs.push(v3); }; ASSetPropFlags(_global.s1arrow.prototype, null, 1); } #endinitclip } movieClip 1206 __Packages.s1body { #initclip if (!_global.s1body) { var v1 = function () { super(); }; _global.s1body = v1; _global.s1body extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.bodyparts = []; this.part_chart = [[0, 1, 0], [0, 1, 1], [1, 1, 0], [0, 1, 1]]; var v5 = 0; while (v5 < 3) { var v4 = 0; while (v4 < 4) { if (this.part_chart[v4][v5] == 1) { var v3 = _root.attachMovie('s1bodypart', 's1bodypart' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this.boss; v3.x_offset = v5 * 32; v3.y_offset = v4 * 32; v3._x = this._x + v3.x_offset; v3._y = this._y + v3.y_offset; this.bodyparts.push(v3); this.boss.objs.push(v3); } ++v4; } ++v5; } this.x_speed = 8; this.y_speed = 8; this.sfx_blocked = new Sound(); this.sfx_blocked.attachSound('hnnn.wav'); this.sfx_x = this._x; this.sfx_y = this._y; }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; if (Key.isDown(37)) { this.key_left = true; } if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(39)) { this.key_right = true; } if (Key.isDown(40)) { this.key_down = true; } if (this.key_left and !this.key_right) { this._x -= this.x_speed; this.checkCollision('left'); } if (!this.key_left and this.key_right) { this._x += this.x_speed; this.checkCollision('right'); } if (this.key_up and !this.key_down) { this._y -= this.y_speed; this.checkCollision('up'); } if (!this.key_up and this.key_down) { this._y += this.y_speed; this.checkCollision('down'); } }; v2.checkCollision = function (dir) { if (this._x < 0) { this._x = 0; } if (this._x > 416) { this._x = 416; } if (this._y < 0) { this._y = 0; } if (this._y > 384) { this._y = 384; } this.moveBodyparts(); var v2 = false; for (var v4 in this.bodyparts) { for (var v3 in this.boss.walls) { if (this.bodyparts[v4].collision.hitTest(this.boss.walls[v3])) { v2 = true; } } } if (v2) { switch (dir) { case 'up': this._y += this.y_speed; break; case 'down': this._y -= this.y_speed; break; case 'left': this._x += this.x_speed; break; case 'right': this._x -= this.x_speed; } this.moveBodyparts(); this.playSfx(); } }; v2.moveBodyparts = function () { for (var v2 in this.bodyparts) { this.bodyparts[v2]._x = this._x + this.bodyparts[v2].x_offset; this.bodyparts[v2]._y = this._y + this.bodyparts[v2].y_offset; this.bodyparts[v2].collision._x = this.bodyparts[v2]._x + 1; this.bodyparts[v2].collision._y = this.bodyparts[v2]._y + 1; } }; v2.playSfx = function () { if (this._x == this.sfx_x or this._y == this.sfx_y) { } else { this.sfx_x = this._x; this.sfx_y = this._y; this.sfx_blocked.start(); } }; ASSetPropFlags(_global.s1body.prototype, null, 1); } #endinitclip } movieClip 1207 __Packages.s1bodypart { #initclip if (!_global.s1bodypart) { var v1 = function () { super(); }; _global.s1bodypart = v1; _global.s1bodypart extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.collision = _root.attachMovie('s1collision', 's1collision' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.collision._x = this._x + 1; this.collision._y = this._y + 1; this.collision._visible = false; this.boss.objs.push(this.collision); }; ASSetPropFlags(_global.s1bodypart.prototype, null, 1); } #endinitclip } movieClip 1208 __Packages.s1collision { #initclip if (!_global.s1collision) { var v1 = function () { super(); }; _global.s1collision = v1; _global.s1collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s1collision.prototype, null, 1); } #endinitclip } movieClip 1209 __Packages.s1text { #initclip if (!_global.s1text) { var v1 = function () { super(); }; _global.s1text = v1; _global.s1text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s1text.prototype, null, 1); } #endinitclip } movieClip 1210 __Packages.s1wall { #initclip if (!_global.s1wall) { var v1 = function () { super(); }; _global.s1wall = v1; _global.s1wall extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s1wall.prototype, null, 1); } #endinitclip } movieClip 1211 __Packages.scene1boss { #initclip if (!_global.scene1boss) { var v1 = function () { super(); }; _global.scene1boss = v1; _global.scene1boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v9 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v9.beginFill(16711935); v9.moveTo(0, 0); v9.lineTo(512, 0); v9.lineTo(512, 512); v9.lineTo(0, 512); v9.lineTo(0, 0); v9.endFill(); this.objs.push(v9); var v10 = _root.attachMovie('s1arrow', 's1arrow', _root.getNextHighestDepth()); v10.boss = this; v10._x = 288; this.objs.push(v10); this.walls = []; var v7 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1]]; var v8 = 128; var v6 = 32; var v5 = 0; while (v5 < 16) { var v3 = 0; while (v3 < 3) { if (v7[v3][v5] == 1) { var v4 = _root.attachMovie('s1wall', 's1wall' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4._x = v5 * v6; v4._y = v8 + v3 * v6; this.objs.push(v4); this.walls.push(v4); } ++v3; } ++v5; } this.body = _root.attachMovie('s1body', 's1body', _root.getNextHighestDepth()); this.body._x = 192; this.body._y = 288; this.body.boss = this; this.objs.push(this.body); this.completed = false; this.end_speed = 50; this.end_timer = 0; this.mus_beatbox = new Sound(); this.mus_beatbox.attachSound('beatbox.wav'); this.mus_beatbox.start(); }; v2.onEnterFrame = function () { if (this.body._y <= 128 and !this.completed) { this.completed = true; var v3 = _root.attachMovie('s1text', 's1text', _root.getNextHighestDepth()); v3._y = 416; this.objs.push(v3); } if (this.completed) { if (this.end_timer < this.end_speed) { ++this.end_timer; } else { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene1boss.prototype, null, 1); } #endinitclip } movieClip 1212 __Packages.s2bubble { #initclip if (!_global.s2bubble) { var v1 = function () { super(); }; _global.s2bubble = v1; _global.s2bubble extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); this.going_left = true; this.vanish_speed = 16; this.vanish_timer = 0; var v2 = Math.ceil(Math.random() * 4); if (v2 == 1 and this._y > 96) { this.y_speed = -4; } if (v2 == 2 and this._y < 416) { this.y_speed = 4; } this.sfx_cussin = new Sound(); this.sfx_cussin.attachSound('dnnt.wav'); }; v2.onEnterFrame = function () { if (this.going_left) { this._x -= 16; if (this._x <= -92) { this.going_left = false; this.gotoAndStop(2); this.sfx_cussin.start(); } this._y += this.y_speed; } else { this._x += 8; if (this.vanish_timer < this.vanish_speed) { ++this.vanish_timer; } else { this.removeMovieClip(); } } }; ASSetPropFlags(_global.s2bubble.prototype, null, 1); } #endinitclip } movieClip 1213 __Packages.s2mouth { #initclip if (!_global.s2mouth) { var v1 = function () { super(); }; _global.s2mouth = v1; _global.s2mouth extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._y = Math.ceil(Math.random() * 444); this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 2; this.anim_timer = 0; }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; ++this.frame; if (this.frame > 4) { this.frame = 1; } this.gotoAndStop(this.frame); } var v2 = 8; if (this.faster) { v2 = 16; } if (this.going_up) { this._y -= v2; if (this._y <= 0) { this._y = 0; this.going_up = false; } } else { this._y += v2; if (this._y >= 444) { this._y = 444; this.going_up = true; } } }; ASSetPropFlags(_global.s2mouth.prototype, null, 1); } #endinitclip } movieClip 1214 __Packages.s2shield { #initclip if (!_global.s2shield) { var v1 = function () { super(); }; _global.s2shield = v1; _global.s2shield extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.blink_time = 10; this.blink_timer = 0; this.sfx_deflect = new Sound(); this.sfx_deflect.attachSound('ting.wav'); }; v2.onEnterFrame = function () { this.key_up = false; this.key_down = false; if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(40)) { this.key_down = true; } var v3 = 16; if (this.key_up and !this.key_down) { this._y -= v3; } if (!this.key_up and this.key_down) { this._y += v3; } if (this._y < 0) { this._y = 0; } if (this._y > 396) { this._y = 396; } for (var v2 in this.boss.bubbles) { if (this.hitTest(this.boss.bubbles[v2]) and this.boss.bubbles[v2].going_left) { ++this.score; this.boss.bubbles[v2].removeMovieClip(); this.blink_timer = this.blink_time; this.sfx_deflect.start(); } } if (this.blink_timer > 0) { --this.blink_timer; if (this._visible) { this._visible = false; } else { this._visible = true; } } else { this._visible = true; } }; ASSetPropFlags(_global.s2shield.prototype, null, 1); } #endinitclip } movieClip 1215 __Packages.s2text { #initclip if (!_global.s2text) { var v1 = function () { super(); }; _global.s2text = v1; _global.s2text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s2text.prototype, null, 1); } #endinitclip } movieClip 1216 __Packages.scene2boss { #initclip if (!_global.scene2boss) { var v1 = function () { super(); }; _global.scene2boss = v1; _global.scene2boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; this.bubbles = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(11665152); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.s2text = _root.attachMovie('s2text', 's2text', _root.getNextHighestDepth()); this.s2text.gotoAndStop(1); this.s2text._x = 8; this.s2text._y = 8; this.objs.push(this.s2text); var v4 = _root.attachMovie('s2shield', 's2shield', _root.getNextHighestDepth()); v4.boss = this; v4._x = 36; v4._y = 200; this.objs.push(v4); this.mouth1 = _root.attachMovie('s2mouth', 's2mouth', _root.getNextHighestDepth()); this.mouth1._x = 368; this.mouth1.going_up = true; this.mouth1.faster = false; this.objs.push(this.mouth1); this.mouth2 = _root.attachMovie('s2mouth', 's2mouth', _root.getNextHighestDepth()); this.mouth2._x = 428; this.mouth2.going_up = false; this.mouth2.faster = true; this.objs.push(this.mouth2); this.timer = 0; this.sfx_shoot = new Sound(); this.sfx_shoot.attachSound('phbt.wav'); }; v2.onEnterFrame = function () { ++this.timer; switch (this.timer) { case 30: this.fireBubble(1); break; case 60: this.fireBubble(2); break; case 90: this.fireBubble(1); break; case 120: this.fireBubble(2); break; case 150: this.fireBubble(1); break; case 180: this.s2text.gotoAndStop(2); break; case 210: this.endScene(); } }; v2.fireBubble = function (mouth_number) { var v3 = _root.attachMovie('s2bubble', 's2bubble' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); var v4 = this.mouth1; if (mouth_number == 2) { v4 = this.mouth2; } v3._x = v4._x - 52; v3._y = v4._y + 20; this.objs.push(v3); this.bubbles.push(v3); this.sfx_shoot.start(); }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene2boss.prototype, null, 1); } #endinitclip } movieClip 1217 __Packages.s3body { #initclip if (!_global.s3body) { var v1 = function () { super(); }; _global.s3body = v1; _global.s3body extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.key_clear = false; this.pull_down = false; this.frame = 1; this.gotoAndStop(this.frame); this.sfx_nope = new Sound(); this.sfx_nope.attachSound('ull.wav'); }; v2.onEnterFrame = function () { this.key_down = false; if (Key.isDown(40)) { this.key_down = true; } else { this.key_clear = true; } if (this.key_down and this.key_clear) { this.sfx_nope.start(); this.boss.pressed_key = true; this.pull_down = true; this.key_clear = false; } if (!this.pull_down) { if (this.frame > 1) { --this.frame; } } else { if (this.frame < 4) { ++this.frame; } if (this.frame == 4) { this.pull_down = false; } } this.gotoAndStop(this.frame); }; ASSetPropFlags(_global.s3body.prototype, null, 1); } #endinitclip } movieClip 1218 __Packages.s3text { #initclip if (!_global.s3text) { var v1 = function () { super(); }; _global.s3text = v1; _global.s3text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s3text.prototype, null, 1); } #endinitclip } movieClip 1219 __Packages.scene3boss { #initclip if (!_global.scene3boss) { var v1 = function () { super(); }; _global.scene3boss = v1; _global.scene3boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16748800); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v5 = _root.attachMovie('s3text', 's3text1', _root.getNextHighestDepth()); v5.gotoAndStop(1); v5._x = 92; v5._y = 32; this.objs.push(v5); this.pressed_key = false; this.timer = 0; var v4 = _root.attachMovie('s3body', 's3body', _root.getNextHighestDepth()); v4.boss = this; v4._x = 136; v4._y = 108; this.objs.push(v4); }; v2.onEnterFrame = function () { if (this.pressed_key) { ++this.timer; if (this.timer == 30) { var v3 = _root.attachMovie('s3text', 's3text2', _root.getNextHighestDepth()); v3.gotoAndStop(2); v3._x = 140; v3._y = 448; this.objs.push(v3); } if (this.timer == 100) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene3boss.prototype, null, 1); } #endinitclip } movieClip 1220 __Packages.s4bubble { #initclip if (!_global.s4bubble) { var v1 = function () { super(); }; _global.s4bubble = v1; _global.s4bubble extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s4bubble.prototype, null, 1); } #endinitclip } movieClip 1221 __Packages.s4bystander { #initclip if (!_global.s4bystander) { var v1 = function () { super(); }; _global.s4bystander = v1; _global.s4bystander extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s4bystander.prototype, null, 1); } #endinitclip } movieClip 1222 __Packages.s4house { #initclip if (!_global.s4house) { var v1 = function () { super(); }; _global.s4house = v1; _global.s4house extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s4house.prototype, null, 1); } #endinitclip } movieClip 1223 __Packages.s4maam { #initclip if (!_global.s4maam) { var v1 = function () { super(); }; _global.s4maam = v1; _global.s4maam extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.vanish_speed = 20; this.vanish_timer = 0; }; v2.onEnterFrame = function () { if (this.vanish_timer > 0) { --this.vanish_timer; if (this.vanish_timer == 0) { this._visible = false; } } }; ASSetPropFlags(_global.s4maam.prototype, null, 1); } #endinitclip } movieClip 1224 __Packages.s4path { #initclip if (!_global.s4path) { var v1 = function () { super(); }; _global.s4path = v1; _global.s4path extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s4path.prototype, null, 1); } #endinitclip } movieClip 1225 __Packages.s4text { #initclip if (!_global.s4text) { var v1 = function () { super(); }; _global.s4text = v1; _global.s4text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s4text.prototype, null, 1); } #endinitclip } movieClip 1226 __Packages.s4walk { #initclip if (!_global.s4walk) { var v1 = function () { super(); }; _global.s4walk = v1; _global.s4walk extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 10; this.anim_timer = 0; this.real_x = this._x; this.maam = _root.attachMovie('s4maam', 's4maam', _root.getNextHighestDepth()); this.maam._x = this._x - 32; this.maam._y = this._y + 76; this.maam._visible = false; this.boss.objs.push(this.maam); }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } this.key_right = false; if (Key.isDown(39)) { this.key_right = true; } if (this.key_right) { this.real_x += 3; if (this.real_x % 4) { this._x = this.real_x; } } this.maam._x = this._x - 32; }; ASSetPropFlags(_global.s4walk.prototype, null, 1); } #endinitclip } movieClip 1227 __Packages.scene4boss { #initclip if (!_global.scene4boss) { var v1 = function () { super(); }; _global.scene4boss = v1; _global.scene4boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(3878852); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v6 = _root.attachMovie('s4path', 's4path', _root.getNextHighestDepth()); v6._y = 256; this.objs.push(v6); var v5 = _root.attachMovie('s4house', 's4house', _root.getNextHighestDepth()); v5._x = 448; v5._y = 256; this.objs.push(v5); var v4 = _root.attachMovie('s4bystander', 's4bystander1', _root.getNextHighestDepth()); v4.gotoAndStop(1); v4._x = 96; v4._y = 196; this.objs.push(v4); v4 = _root.attachMovie('s4bystander', 's4bystander2', _root.getNextHighestDepth()); v4.gotoAndStop(2); v4._x = 232; v4._y = 196; this.objs.push(v4); v4 = _root.attachMovie('s4bystander', 's4bystander3', _root.getNextHighestDepth()); v4.gotoAndStop(3); v4._x = 368; v4._y = 196; this.objs.push(v4); this.s4text = _root.attachMovie('s4text', 's4text', _root.getNextHighestDepth()); this.s4text._x = 52; this.s4text._y = 412; this.s4text._visible = false; this.objs.push(this.s4text); this.bubble = _root.attachMovie('s4bubble', 's4bubble', _root.getNextHighestDepth()); this.bubble._x = 72; this.bubble._y = 56; this.bubble.gotoAndStop(1); this.bubble._visible = false; this.objs.push(this.bubble); this.player = _root.attachMovie('s4walk', 's4walk', _root.getNextHighestDepth()); this.player.boss = this; this.player._x = 20; this.player._y = 260; this.objs.push(this.player); this.text_timer = 0; this.script = 0; this.sfx_blah = new Sound(); this.sfx_blah.attachSound('blah.wav'); }; v2.onEnterFrame = function () { var v2 = 30; if (this.text_timer < v2) { ++this.text_timer; if (this.text_timer == v2) { this.s4text._visible = true; } } if (this.player._x > 100 and this.script == 0) { this.bubble._visible = true; this.sayMaam(); this.sfx_blah.start(); this.script = 1; } if (this.player._x > 216 and this.script == 1) { this.bubble.gotoAndStop(2); this.sayMaam(); this.sfx_blah.start(); this.script = 2; } if (this.player._x > 352 and this.script == 2) { this.bubble.gotoAndStop(3); this.sayMaam(); this.sfx_blah.start(); this.script = 3; } if (this.player._x > 464) { this.endScene(); } }; v2.sayMaam = function () { this.player.maam._visible = true; this.player.maam.vanish_timer = this.player.maam.vanish_speed; }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene4boss.prototype, null, 1); } #endinitclip } movieClip 1228 __Packages.s5collision { #initclip if (!_global.s5collision) { var v1 = function () { super(); }; _global.s5collision = v1; _global.s5collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s5collision.prototype, null, 1); } #endinitclip } movieClip 1229 __Packages.s5mouth { #initclip if (!_global.s5mouth) { var v1 = function () { super(); }; _global.s5mouth = v1; _global.s5mouth extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s5mouth.prototype, null, 1); } #endinitclip } movieClip 1230 __Packages.s5razor { #initclip if (!_global.s5razor) { var v1 = function () { super(); }; _global.s5razor = v1; _global.s5razor extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.dir = 'none'; this.gotoAndStop(1); this.collision = _root.attachMovie('s5collision', 's5collision', _root.getNextHighestDepth()); this.collision.gotoAndStop(1); this.collision._x = this._x; this.collision._y = this._y; this.collision._visible = false; this.boss.objs.push(this.collision); this.sfx_shave = new Sound(); this.sfx_shave.attachSound('click.wav'); this.key_clear = false; }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v3 = 0; if (Key.isDown(37)) { this.key_left = true; ++v3; } if (Key.isDown(38)) { this.key_up = true; ++v3; } if (Key.isDown(39)) { this.key_right = true; ++v3; } if (Key.isDown(40)) { this.key_down = true; ++v3; } if (v3 == 0) { this.key_clear = true; } if (v3 == 1 and this.key_clear) { if (this.key_left) { this.dir = 'left'; } if (this.key_up) { this.dir = 'up'; } if (this.key_right) { this.dir = 'right'; } if (this.key_down) { this.dir = 'down'; } } var v5 = 16; switch (this.dir) { case 'up': this._y -= v5; this.gotoAndStop(1); break; case 'right': this._x += v5; this.gotoAndStop(2); break; case 'down': this._y += v5; this.gotoAndStop(3); break; case 'left': this._x -= v5; this.gotoAndStop(4); } if (this._x < 0) { this._x = 0; this.dir = 'right'; } if (this._x > 448) { this._x = 448; this.dir = 'left'; } if (this._y < 0) { this._y = 0; this.dir = 'down'; } if (this._y > 448) { this._y = 448; this.dir = 'up'; } this.collision._x = this._x; this.collision._y = this._y; if (this.dir == 'up' or this.dir == 'down') { this.collision.gotoAndStop(1); ++this.collision._x; } else { if (this.dir == 'left' or this.dir == 'right') { this.collision.gotoAndStop(2); ++this.collision._y; } } if (this.dir == 'down') { this.collision._y += 48; } if (this.dir == 'right') { this.collision._x += 48; } var v2 = false; for (var v4 in this.boss.stubbles) { if (this.collision.hitTest(this.boss.stubbles[v4]) and this.boss.stubbles[v4]._visible) { v2 = true; if (this.boss.stubbles[v4].regen_count > 0) { this.boss.stubbles[v4]._visible = false; } else { this.boss.stubbles[v4].removeMovieClip(); --this.boss.stubble_count; } } } if (v2) { this.sfx_shave.start(); } }; ASSetPropFlags(_global.s5razor.prototype, null, 1); } #endinitclip } movieClip 1231 __Packages.s5stubble { #initclip if (!_global.s5stubble) { var v1 = function () { super(); }; _global.s5stubble = v1; _global.s5stubble extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.regen) { this.regen_count = 3; } else { this.regen_count = 0; } this.regen_speed = 50; this.regen_timer = 0; }; v2.onEnterFrame = function () { if (!this._visible) { if (this.regen_timer < this.regen_speed) { ++this.regen_timer; } else { --this.regen_count; this.regen_timer = 0; this._visible = true; } } }; ASSetPropFlags(_global.s5stubble.prototype, null, 1); } #endinitclip } movieClip 1232 __Packages.s5text { #initclip if (!_global.s5text) { var v1 = function () { super(); }; _global.s5text = v1; _global.s5text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s5text.prototype, null, 1); } #endinitclip } movieClip 1233 __Packages.s5wound { #initclip if (!_global.s5wound) { var v1 = function () { super(); }; _global.s5wound = v1; _global.s5wound extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s5wound.prototype, null, 1); } #endinitclip } movieClip 1234 __Packages.scene5boss { #initclip if (!_global.scene5boss) { var v1 = function () { super(); }; _global.scene5boss = v1; _global.scene5boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v9 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v9.beginFill(16773120); v9.moveTo(0, 0); v9.lineTo(512, 0); v9.lineTo(512, 512); v9.lineTo(0, 512); v9.lineTo(0, 0); v9.endFill(); this.objs.push(v9); this.regen = false; this.stubbles = []; this.stubble_count = 0; var v8 = [[0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 0, 0, 0, 0, 0, 0, 1, 1]]; var v6 = 96; var v7 = 224; var v5 = 0; while (v5 < 10) { var v4 = 0; while (v4 < 3) { if (v8[v4][v5] == 1) { var v3 = _root.attachMovie('s5stubble', 's5stubble' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.regen = this.regen; v3._x = v6 + v5 * 32; v3._y = v7 + v4 * 32; ++this.stubble_count; this.stubbles.push(v3); this.objs.push(v3); } ++v4; } ++v5; } this.mouth = _root.attachMovie('s5mouth', 's5mouth', _root.getNextHighestDepth()); this.mouth.gotoAndStop(1); this.mouth._x = 124; this.mouth._y = 320; this.objs.push(this.mouth); var v10 = _root.attachMovie('s5text', 's5text', _root.getNextHighestDepth()); v10._x = 124; v10._y = 60; this.objs.push(v10); this.razor = _root.attachMovie('s5razor', 's5razor', _root.getNextHighestDepth()); this.razor.boss = this; this.razor._x = 32; this.razor._y = 384; this.objs.push(this.razor); this.end_timer = 0; this.sfx_ouch = new Sound(); this.sfx_ouch.attachSound('ow.wav'); }; v2.onEnterFrame = function () { if (this.end_timer == 0) { if (this.stubble_count == 0) { this.mouth.gotoAndStop(2); var v3 = _root.attachMovie('s5wound', 's5wound', _root.getNextHighestDepth()); v3._x = this.razor._x; v3._y = this.razor._y + 32; this.objs.push(v3); this.razor.swapDepths(_root.getNextHighestDepth()); this.sfx_ouch.start(); this.end_timer = 30; } } else { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene5boss.prototype, null, 1); } #endinitclip } movieClip 1235 __Packages.s6path { #initclip if (!_global.s6path) { var v1 = function () { super(); }; _global.s6path = v1; _global.s6path extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s6path.prototype, null, 1); } #endinitclip } movieClip 1236 __Packages.s6spy { #initclip if (!_global.s6spy) { var v1 = function () { super(); }; _global.s6spy = v1; _global.s6spy extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 10; this.anim_timer = 0; this.key_clear = false; this.dest_x = this._x; this.dest_y = this._y; this.caught = false; this.blink_speed = 5; this.blink_timer = 0; this.sfx_step = new Sound(); this.sfx_step.attachSound('zoop.wav'); }; v2.onEnterFrame = function () { var v2 = 16; if (!this.caught) { if (this.dest_x > this._x) { this._x += v2; } else { if (this.dest_x < this._x) { this._x -= v2; } else { if (this.dest_y > this._y) { this._y += v2; } else { if (this.dest_y < this._y) { this._y -= v2; } else { this.getInput(); } } } } } if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } if (this.caught) { if (this.blink_timer < this.blink_speed) { ++this.blink_timer; } else { this.blink_timer = 0; if (this._visible) { this._visible = false; } else { this._visible = true; } } } }; v2.getInput = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v2 = 0; if (Key.isDown(37)) { this.key_left = true; ++v2; } if (Key.isDown(38)) { this.key_up = true; ++v2; } if (Key.isDown(39)) { this.key_right = true; ++v2; } if (Key.isDown(40)) { this.key_down = true; ++v2; } if (v2 == 0) { this.key_clear = true; } var v3 = 128; if (v2 == 1 and this.key_clear) { this.key_clear = false; if (this.key_up and this.moveCheck(0)) { this.dest_y -= v3; --this.map_y; this.sfx_step.start(); } if (this.key_right and this.moveCheck(1)) { this.dest_x += v3; ++this.map_x; this.sfx_step.start(); } if (this.key_down and this.moveCheck(2)) { this.dest_y += v3; ++this.map_y; this.sfx_step.start(); } if (this.key_left and this.moveCheck(3)) { this.dest_x -= v3; --this.map_x; this.sfx_step.start(); } } }; v2.moveCheck = function (dir) { if (this.boss.level_map[this.boss.level_number][this.map_y][this.map_x][dir]) { return true; } else { return false; } }; ASSetPropFlags(_global.s6spy.prototype, null, 1); } #endinitclip } movieClip 1237 __Packages.s6stall { #initclip if (!_global.s6stall) { var v1 = function () { super(); }; _global.s6stall = v1; _global.s6stall extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.collision = _root.attachMovie('s6stall_collision', 's6stall_collision' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.collision._x = this._x + 4; this.collision._y = this._y + 4; this.collision.gotoAndStop(1); this.collision._visible = false; this.boss.objs.push(this.collision); this.opened = false; this.open_time = 30; this.close_time = 30; this.open_timer = this.open_time; this.close_timer = 0; this.sfx_caught = new Sound(); this.sfx_caught.attachSound('phbbbt.wav'); }; v2.onEnterFrame = function () { if (this.wait_time > 0) { --this.wait_time; } else { if (!this.opened) { if (this.frame > 1) { --this.frame; this.gotoAndStop(this.frame); } if (this.open_timer < this.open_time) { ++this.open_timer; } else { this.open_timer = 0; this.opened = true; this.boss.play_sfx = true; } } else { if (this.frame < 6) { ++this.frame; this.gotoAndStop(this.frame); if (this.frame == 6) { this.collision.gotoAndStop(2); } } if (this.close_timer < this.close_time) { ++this.close_timer; } else { this.close_timer = 0; this.collision.gotoAndStop(1); this.opened = false; } } } if (!this.boss.spy.caught and this.collision.hitTest(this.boss.spy)) { this.boss.spy.caught = true; this.boss.end_timer = this.boss.end_speed; this.wait_time = 5000; this.sfx_caught.start(); } }; ASSetPropFlags(_global.s6stall.prototype, null, 1); } #endinitclip } movieClip 1238 __Packages.s6stall_collision { #initclip if (!_global.s6stall_collision) { var v1 = function () { super(); }; _global.s6stall_collision = v1; _global.s6stall_collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s6stall_collision.prototype, null, 1); } #endinitclip } movieClip 1239 __Packages.s6text { #initclip if (!_global.s6text) { var v1 = function () { super(); }; _global.s6text = v1; _global.s6text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s6text.prototype, null, 1); } #endinitclip } movieClip 1240 __Packages.s6toilet { #initclip if (!_global.s6toilet) { var v1 = function () { super(); }; _global.s6toilet = v1; _global.s6toilet extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.escaped = false; this.sfx_hooray = new Sound(); this.sfx_hooray.attachSound('hmmmmmmm.wav'); }; v2.onEnterFrame = function () { if (this.boss.spy._y <= this._y and !this.escaped) { this.boss.spy.removeMovieClip(); this.boss.end_timer = this.boss.end_speed; this.escaped = true; this.sfx_hooray.start(); } if (this.escaped) { if (this.frame == 4) { this.removeMovieClip(); } ++this.frame; this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s6toilet.prototype, null, 1); } #endinitclip } movieClip 1241 __Packages.scene6boss { #initclip if (!_global.scene6boss) { var v1 = function () { super(); }; _global.scene6boss = v1; _global.scene6boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; this.level_number = 1; this.level_count = 1; this.restart_ok = false; this.level_map = [[], [[[false, true, true, false], [true, true, false, true], [false, true, false, true], [false, false, true, true]], [[true, true, false, false], [false, true, false, true], [false, true, true, true], [true, false, false, true]], [[false, false, false, false], [false, false, false, false], [true, false, false, false], [false, false, false, false]]], [[[true, false, true, false], [false, true, true, false], [false, true, true, true], [false, false, true, true]], [[true, true, false, false], [true, true, false, true], [true, false, false, true], [true, false, true, false]], [[false, false, false, false], [false, true, false, false], [false, true, false, true], [true, false, false, true]]], [[[false, false, false, false], [false, true, true, false], [false, true, true, true], [true, false, true, true]], [[false, true, true, false], [true, true, true, true], [true, false, false, true], [true, false, true, false]], [[true, false, false, false], [true, true, false, false], [false, true, false, true], [true, false, false, true]]]]; this.stall_map = [[], [[2, 0, 30], [4, 0, 0], [6, 0, 30], [2, 2, 0], [4, 2, 30], [6, 2, 0]], [[4, 0, 20], [6, 0, 30], [2, 2, 10], [4, 2, 20], [4, 4, 20], [6, 4, 30]], [[4, 0, 10], [6, 0, 5], [2, 2, 30], [4, 2, 15], [4, 4, 20], [6, 4, 0]]]; this.toilet_map = [2, 0, 6]; this.player_map = [2, 1, 0]; this.createLevel(); }; v2.createLevel = function () { var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(7930013); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v7 = _root.attachMovie('s6path', 's6path', _root.getNextHighestDepth()); v7.gotoAndStop(this.level_number); this.objs.push(v7); var v5 = _root.attachMovie('s6text', 's6text', _root.getNextHighestDepth()); v5._x = 16; v5._y = 408; this.objs.push(v5); for (var v4 in this.stall_map[this.level_number]) { this.createStall(this.stall_map[this.level_number][v4][0], this.stall_map[this.level_number][v4][1], this.stall_map[this.level_number][v4][2]); } var v6 = _root.attachMovie('s6toilet', 's6toilet', _root.getNextHighestDepth()); v6.boss = this; v6._x = this.toilet_map[this.level_number - 1] * 64 + 32; this.objs.push(v6); this.spy = _root.attachMovie('s6spy', 's6spy', _root.getNextHighestDepth()); this.spy.boss = this; this.spy._x = this.player_map[this.level_number - 1] * 2 * 64 + 32; this.spy._y = 320; this.spy.map_x = this.player_map[this.level_number - 1]; this.spy.map_y = 2; this.objs.push(this.spy); this.end_timer = 0; this.end_speed = 30; this.sfx_open = new Sound(); this.sfx_open.attachSound('click.wav'); this.play_sfx = false; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } if (this.play_sfx) { this.play_sfx = false; } }; v2.createStall = function (where_x, where_y, wait_time) { var v3 = _root.attachMovie('s6stall', 's6stall' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3._x = (where_x - 1) * 64 + 32; v3._y = where_y * 64; v3.wait_time = wait_time; this.objs.push(v3); }; v2.OLDcreateStall = function (where_x, where_y, wait_time) { var v3 = _root.attachMovie('s6stall', 's6stall' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3._x = where_x; v3._y = where_y; v3.wait_time = wait_time; this.objs.push(v3); }; v2.endScene = function () { var v3 = this.spy.caught; for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } if (v3 and this.restart_ok) { this.createLevel(); } else { ++this.level_number; if (this.level_number <= this.level_count) { this.createLevel(); } else { this.boss.newScene(); this.removeMovieClip(); } } }; ASSetPropFlags(_global.scene6boss.prototype, null, 1); } #endinitclip } movieClip 1242 __Packages.s7cloud { #initclip if (!_global.s7cloud) { var v1 = function () { super(); }; _global.s7cloud = v1; _global.s7cloud extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.x_origin = this._x; this.y_origin = this._y; this.frame = Math.ceil(Math.random() * 5); this.gotoAndStop(this.frame); this.chased = false; this.x_speed = 0; this.y_speed = 4; }; v2.onEnterFrame = function () { ++this.frame; if (this.frame > 5) { this.frame = 1; } this.gotoAndStop(this.frame); if (!this.chased) { var v3 = 8; var v4 = Math.ceil(Math.random() * 3); if (v4 == 1 and this._x >= this.x_origin - v3) { this._x -= 4; } if (v4 == 2 and this._x <= this.x_origin + v3) { this._x += 4; } var v5 = Math.ceil(Math.random() * 3); if (v5 == 1 and this._y >= this.y_origin - v3) { this._y -= 4; } if (v5 == 2 and this._y <= this.y_origin + v3) { this._y += 4; } } else { this._x += this.x_speed; this._y -= this.y_speed; this.y_speed += 4; } if (this.boss.sun._y <= this._y + 32) { this.chased = true; var v2 = this._x + 32; if (v2 < 128) { this.x_speed = -32; } if (v2 >= 128 and v2 < 192) { this.x_speed = -16; } if (v2 >= 192 and v2 < 256) { this.x_speed = -8; } if (v2 >= 256 and v2 < 320) { this.x_speed = 8; } if (v2 >= 320 and v2 < 384) { this.x_speed = 16; } if (v2 >= 384) { this.x_speed = 32; } this.boss.play_sfx = true; } }; ASSetPropFlags(_global.s7cloud.prototype, null, 1); } #endinitclip } movieClip 1243 __Packages.s7sun { #initclip if (!_global.s7sun) { var v1 = function () { super(); }; _global.s7sun = v1; _global.s7sun extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { var v3 = false; var v2 = false; this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 2; this.anim_timer = 0; }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } this.key_up = false; if (Key.isDown(38)) { this.key_up = true; } else { this.key_clear = true; } if (this.key_up and this.key_clear) { this._y -= 4; } }; ASSetPropFlags(_global.s7sun.prototype, null, 1); } #endinitclip } movieClip 1244 __Packages.s7text { #initclip if (!_global.s7text) { var v1 = function () { super(); }; _global.s7text = v1; _global.s7text extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.blink_speed = 5; this.blink_timer = 5; }; v2.onEnterFrame = function () { if (this.boss.end_timer > 0) { if (this.blink_timer < this.blink_speed) { ++this.blink_timer; } else { this.blink_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } } }; ASSetPropFlags(_global.s7text.prototype, null, 1); } #endinitclip } movieClip 1245 __Packages.scene7boss { #initclip if (!_global.scene7boss) { var v1 = function () { super(); }; _global.scene7boss = v1; _global.scene7boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(65535); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.sun = _root.attachMovie('s7sun', 's7sun', _root.getNextHighestDepth()); this.sun._x = 192; this.sun._y = 448; this.objs.push(this.sun); var v4 = _root.attachMovie('s7text', 's7text', _root.getNextHighestDepth()); v4.boss = this; v4._x = 80; v4._y = 40; this.objs.push(v4); this.makeCloud(30, 38); this.makeCloud(32, 44); this.makeCloud(36, 40); this.makeCloud(40, 38); this.makeCloud(42, 44); this.makeCloud(46, 40); this.makeCloud(48, 44); this.makeCloud(50, 38); this.makeCloud(54, 44); this.makeCloud(56, 40); this.makeCloud(60, 38); this.makeCloud(62, 40); this.makeCloud(64, 44); this.makeCloud(66, 40); this.makeCloud(68, 38); this.makeCloud(72, 44); this.makeCloud(74, 38); this.makeCloud(76, 40); this.end_speed = 60; this.end_timer = 0; this.sfx_clear = new Sound(); this.sfx_clear.attachSound('aha.wav'); this.sfx_shoot = new Sound(); this.sfx_shoot.attachSound('wow.wav'); this.play_sfx = false; this.mus_fanfare = new Sound(); this.mus_fanfare.attachSound('fanfare.wav'); this.mus_fanfare.start(); }; v2.onEnterFrame = function () { if (this.end_timer == 0) { if (this.sun._y <= 168) { this.sfx_clear.start(); this.end_timer = this.end_speed; } } else { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } if (this.play_sfx) { this.play_sfx = false; this.sfx_shoot.start(); } }; v2.makeCloud = function (where_x, where_y) { var v3 = _root.attachMovie('s7cloud', 's7cloud' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3._x = where_x * 4; v3._y = where_y * 4; this.objs.push(v3); }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene7boss.prototype, null, 1); } #endinitclip } movieClip 1246 __Packages.s8collision { #initclip if (!_global.s8collision) { var v1 = function () { super(); }; _global.s8collision = v1; _global.s8collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s8collision.prototype, null, 1); } #endinitclip } movieClip 1247 __Packages.s8correct { #initclip if (!_global.s8correct) { var v1 = function () { super(); }; _global.s8correct = v1; _global.s8correct extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.correct_time = 20; this.correct_timer = 0; this.found = false; this.flashing = false; this.flash_speed = 10; this.flash_timer = 0; this.sfx_beep = new Sound(); this.sfx_beep.attachSound('ting.wav'); }; v2.onEnterFrame = function () { if (this.flash_timer < this.flash_speed) { ++this.flash_timer; } else { this.flash_timer = 0; if (this.flashing) { this.flashing = false; } else { this.flashing = true; } } var v2 = false; if (!this.found) { if (this.hitTest(this.boss.glass.collision)) { v2 = true; ++this.correct_timer; if (this.correct_timer == this.correct_time) { this.found = true; this.boss.glass.found = true; } } else { this.correct_timer = 0; } } if ((v2 or this.found) and this.flashing) { if (this.frame == 1) { this.frame = 2; this.sfx_beep.start(); } } else { this.frame = 1; } this.gotoAndStop(this.frame); }; ASSetPropFlags(_global.s8correct.prototype, null, 1); } #endinitclip } movieClip 1248 __Packages.s8glass { #initclip if (!_global.s8glass) { var v1 = function () { super(); }; _global.s8glass = v1; _global.s8glass extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.key_clear = false; this.collision = _root.attachMovie('s8collision', 's8collision', _root.getNextHighestDepth()); this.collision._x = this._x + 60; this.collision._y = this._y + 60; this.collision._visible = false; this.boss.objs.push(this.collision); this.found = false; }; v2.onEnterFrame = function () { if (!this.found) { this.conductSearch(); } }; v2.conductSearch = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v2 = 0; if (Key.isDown(37)) { this.key_left = true; ++v2; } if (Key.isDown(38)) { this.key_up = true; ++v2; } if (Key.isDown(39)) { this.key_right = true; ++v2; } if (Key.isDown(40)) { this.key_down = true; ++v2; } if (v2 == 0) { this.key_clear = true; } if (v2 > 0 and this.key_clear) { var v3 = 8; if (this.key_left and !this.key_right and this._x > -16) { this._x -= v3; } if (this.key_right and !this.key_left and this._x < 392) { this._x += v3; } if (this.key_up and !this.key_down and this._y > -16) { this._y -= v3; } if (this.key_down and !this.key_up and this._y < 392) { this._y += v3; } } this.collision._x = this._x + 60; this.collision._y = this._y + 60; }; ASSetPropFlags(_global.s8glass.prototype, null, 1); } #endinitclip } movieClip 1249 __Packages.s8target { #initclip if (!_global.s8target) { var v1 = function () { super(); }; _global.s8target = v1; _global.s8target extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 10; this.anim_timer = 0; }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s8target.prototype, null, 1); } #endinitclip } movieClip 1250 __Packages.s8text { #initclip if (!_global.s8text) { var v1 = function () { super(); }; _global.s8text = v1; _global.s8text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s8text.prototype, null, 1); } #endinitclip } movieClip 1251 __Packages.s8wrong { #initclip if (!_global.s8wrong) { var v1 = function () { super(); }; _global.s8wrong = v1; _global.s8wrong extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(Math.ceil(Math.random() * 21)); }; ASSetPropFlags(_global.s8wrong.prototype, null, 1); } #endinitclip } movieClip 1252 __Packages.scene8boss { #initclip if (!_global.scene8boss) { var v1 = function () { super(); }; _global.scene8boss = v1; _global.scene8boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v10 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v10.beginFill(10549272); v10.moveTo(0, 0); v10.lineTo(512, 0); v10.lineTo(512, 512); v10.lineTo(0, 512); v10.lineTo(0, 0); v10.endFill(); this.objs.push(v10); var v11 = _root.attachMovie('s8text', 's8text', _root.getNextHighestDepth()); v11._x = 40; v11._y = 40; this.objs.push(v11); var v12 = _root.attachMovie('s8target', 's8target', _root.getNextHighestDepth()); v12._x = 376; v12._y = 8; this.objs.push(v12); var v9 = Math.ceil(Math.random() * 15); var v7 = 0; var v8 = 128; var v5 = 0; while (v5 < 5) { var v6 = 64; if (v5 == 1 or v5 == 3) { v6 = 128; } var v3 = 0; while (v3 < 3) { ++v7; if (v7 == v9) { var v4 = _root.attachMovie('s8correct', 's8correct' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4.boss = this; } else { var v4 = _root.attachMovie('s8wrong', 's8wrong' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); } v4._x = v6 + v3 * 128; v4._y = v8 + v5 * 64; this.objs.push(v4); ++v3; } ++v5; } this.glass = _root.attachMovie('s8glass', 's8glass', _root.getNextHighestDepth()); this.glass.boss = this; this.glass._x = 364; this.glass._y = -4; this.objs.push(this.glass); this.end_speed = 60; this.end_timer = 0; this.mus_puhbadapuh = new Sound(); this.mus_puhbadapuh.attachSound('puhbadapuh.wav'); this.mus_puhbadapuh.start(); }; v2.onEnterFrame = function () { if (this.end_timer == 0) { if (this.glass.found) { this.end_timer = this.end_speed; } } else { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene8boss.prototype, null, 1); } #endinitclip } movieClip 1253 __Packages.s9exam { #initclip if (!_global.s9exam) { var v1 = function () { super(); }; _global.s9exam = v1; _global.s9exam extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s9exam.prototype, null, 1); } #endinitclip } movieClip 1254 __Packages.s9pencil { #initclip if (!_global.s9pencil) { var v1 = function () { super(); }; _global.s9pencil = v1; _global.s9pencil extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 5; this.anim_timer = 0; this.broken = false; }; v2.onEnterFrame = function () { if (!this.broken) { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } } } else { this.frame = 3; } this.gotoAndStop(this.frame); }; ASSetPropFlags(_global.s9pencil.prototype, null, 1); } #endinitclip } movieClip 1255 __Packages.s9text { #initclip if (!_global.s9text) { var v1 = function () { super(); }; _global.s9text = v1; _global.s9text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s9text.prototype, null, 1); } #endinitclip } movieClip 1256 __Packages.scene9boss { #initclip if (!_global.scene9boss) { var v1 = function () { super(); }; _global.scene9boss = v1; _global.scene9boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16545880); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v4 = _root.attachMovie('s9text', 's9text', _root.getNextHighestDepth()); v4._x = 60; v4._y = 400; this.objs.push(v4); this.exam = _root.attachMovie('s9exam', 's9exam', _root.getNextHighestDepth()); this.exam.gotoAndStop(1); this.exam._x = 112; this.objs.push(this.exam); this.pencil = _root.attachMovie('s9pencil', 's9pencil', _root.getNextHighestDepth()); this.gotoAndStop(1); this.pencil._y = 40; this.objs.push(this.pencil); this.key_clear = false; this.phase = 1; this.end_speed = 50; this.end_timer = 0; this.sfx_pencil = new Sound(); this.sfx_pencil.attachSound('hmm.wav'); this.sfx_snap = new Sound(); this.sfx_snap.attachSound('kck.wav'); }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v2 = 0; if (Key.isDown(39)) { this.key_right = true; ++v2; } if (Key.isDown(40)) { this.key_down = true; ++v2; } if (v2 == 0) { this.key_clear = true; } else { if (this.key_clear) { this.key_clear = false; if (this.phase < 5) { ++this.phase; } switch (this.phase) { case 2: this.pencil._y = 104; this.exam.gotoAndStop(2); this.sfx_pencil.start(); break; case 3: this.pencil._y = 200; this.exam.gotoAndStop(3); this.sfx_pencil.start(); break; case 4: this.pencil._y = 316; this.exam.gotoAndStop(4); this.sfx_pencil.start(); break; case 5: this.pencil.broken = true; this.exam.gotoAndStop(5); this.sfx_snap.start(); this.end_timer = this.end_speed; } } } if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene9boss.prototype, null, 1); } #endinitclip } movieClip 1257 __Packages.s10acrobat { #initclip if (!_global.s10acrobat) { var v1 = function () { super(); }; _global.s10acrobat = v1; _global.s10acrobat extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.score = 0; }; v2.onEnterFrame = function () { this.key_up = false; this.key_down = false; if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(40)) { this.key_down = true; } var v2 = 8; if (this.key_up and !this.key_down) { this._y -= v2; } if (!this.key_up and this.key_down) { this._y += v2; } if (this._y < 0) { this._y = 0; } if (this._y > 460) { this._y = 460; } }; ASSetPropFlags(_global.s10acrobat.prototype, null, 1); } #endinitclip } movieClip 1258 __Packages.s10cloud { #initclip if (!_global.s10cloud) { var v1 = function () { super(); }; _global.s10cloud = v1; _global.s10cloud extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.move_speed = Math.ceil(Math.random() * 5) + 2; this.move_timer = 0; }; v2.onEnterFrame = function () { if (this.move_timer < this.move_speed) { ++this.move_timer; } else { this.move_timer = 0; this._x -= 4; if (this._x == -96) { this._x = 512; } } }; ASSetPropFlags(_global.s10cloud.prototype, null, 1); } #endinitclip } movieClip 1259 __Packages.s10hoop_back { #initclip if (!_global.s10hoop_back) { var v1 = function () { super(); }; _global.s10hoop_back = v1; _global.s10hoop_back extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s10hoop_back.prototype, null, 1); } #endinitclip } movieClip 1260 __Packages.s10hoop_front { #initclip if (!_global.s10hoop_front) { var v1 = function () { super(); }; _global.s10hoop_front = v1; _global.s10hoop_front extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.back = _root.attachMovie('s10hoop_back', 's10hoop_back' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.back._x = this._x; this.back._y = this._y; this.boss.objs.push(this.back); this.acrobat = this.boss.acrobat; this.acrobat.swapDepths(_root.getNextHighestDepth()); for (var v3 in this.boss.hoops) { this.boss.hoops[v3].swapDepths(_root.getNextHighestDepth()); } this.sfx_pass = new Sound(); this.sfx_pass.attachSound('wow.wav'); }; v2.onEnterFrame = function () { this._x -= 8; this.back._x = this._x; if (this.hitTest(this.acrobat) and this.acrobat._x < this._x + 12) { var v2 = this.acrobat._y + 26; if (v2 >= this._y + 28 and v2 <= this._y + 151) { if (!this.scored) { this.scored = true; ++this.acrobat.score; this.sfx_pass.start(); } } else { var v3 = this._y + 84; if (v2 < v3) { if (!this.scored) { this.acrobat._y -= 12; } else { this.acrobat._y += 24; } } else { if (!this.scored) { this.acrobat._y += 12; } else { this.acrobat._y -= 24; } } } } }; ASSetPropFlags(_global.s10hoop_front.prototype, null, 1); } #endinitclip } movieClip 1261 __Packages.s10text { #initclip if (!_global.s10text) { var v1 = function () { super(); }; _global.s10text = v1; _global.s10text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s10text.prototype, null, 1); } #endinitclip } movieClip 1262 __Packages.scene10boss { #initclip if (!_global.scene10boss) { var v1 = function () { super(); }; _global.scene10boss = v1; _global.scene10boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; this.hoops = []; var v5 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v5.beginFill(11519); v5.moveTo(0, 0); v5.lineTo(512, 0); v5.lineTo(512, 512); v5.lineTo(0, 512); v5.lineTo(0, 0); v5.endFill(); this.objs.push(v5); var v4 = 0; while (v4 < 4) { var v3 = _root.attachMovie('s10cloud', 's10cloud' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3._x = Math.floor(Math.random() * 104) * 4; v3._y = Math.floor(Math.random() * 117) * 4; this.objs.push(v3); ++v4; } var v6 = _root.attachMovie('s10text', 's10text', _root.getNextHighestDepth()); v6._x = 76; v6._y = 408; this.objs.push(v6); this.acrobat = _root.attachMovie('s10acrobat', 's10acrobat', _root.getNextHighestDepth()); this.acrobat._x = 8; this.acrobat._y = 196; this.objs.push(this.acrobat); this.hoop_count = 3; this.hoop_speed = 50; this.hoop_timer = 0; this.hoop_y = Math.floor(Math.random() * 86) * 4; this.makeHoop(); this.end_speed = 80; this.end_timer = 0; this.mus_drumroll = new Sound(); this.mus_drumroll.attachSound('drumroll.wav'); this.mus_drumroll.start(); }; v2.onEnterFrame = function () { if (this.hoop_count > 1) { if (this.hoop_timer < this.hoop_speed) { ++this.hoop_timer; } else { this.hoop_timer = 0; --this.hoop_count; this.makeHoop(); } } else { if (this.end_timer < this.end_speed) { ++this.end_timer; } else { this.endScene(); } } }; v2.makeHoop = function () { var v6 = _root.attachMovie('s10hoop_front', 's10hoop_front' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v6.boss = this; v6._x = 512; v6._y = this.hoop_y; this.hoops.push(v6); this.objs.push(v6); var v5 = false; while (!v5) { var v4 = 100; var v3 = this.hoop_y + (Math.ceil(Math.random() * v4) - v4 / 2) * 4; if (v3 > 0 and v3 < 344) { v5 = true; this.hoop_y = v3; } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene10boss.prototype, null, 1); } #endinitclip } movieClip 1263 __Packages.s11collision { #initclip if (!_global.s11collision) { var v1 = function () { super(); }; _global.s11collision = v1; _global.s11collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s11collision.prototype, null, 1); } #endinitclip } movieClip 1264 __Packages.s11obstacle { #initclip if (!_global.s11obstacle) { var v1 = function () { super(); }; _global.s11obstacle = v1; _global.s11obstacle extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s11obstacle.prototype, null, 1); } #endinitclip } movieClip 1265 __Packages.s11player { #initclip if (!_global.s11player) { var v1 = function () { super(); }; _global.s11player = v1; _global.s11player extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.x_speed = 4; this.y_speed = 4; this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 5; this.anim_timer = 0; this.collision = _root.attachMovie('s11collision', 's11collision', _root.getNextHighestDepth()); this.moveCollision(); this.collision._visible = false; this.boss.objs.push(this.collision); }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; if (Key.isDown(37)) { this.key_left = true; } if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(39)) { this.key_right = true; } if (Key.isDown(40)) { this.key_down = true; } if (this.key_left and !this.key_right) { this._x -= this.x_speed; this.checkCollision('left'); } if (!this.key_left and this.key_right) { this._x += this.x_speed; this.checkCollision('right'); } if (this.key_up and !this.key_down) { this._y -= this.y_speed; this.checkCollision('up'); } if (!this.key_up and this.key_down) { this._y += this.y_speed; this.checkCollision('down'); } if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } }; v2.moveCollision = function () { this.collision._x = this._x + 20; this.collision._y = this._y + 4; }; v2.checkCollision = function (dir) { this.moveCollision(); var v2 = false; for (var v3 in this.boss.obstacles) { if (this.collision.hitTest(this.boss.obstacles[v3])) { v2 = true; } } if (v2) { switch (dir) { case 'up': this._y += this.y_speed; break; case 'down': this._y -= this.y_speed; break; case 'left': this._x += this.x_speed; break; case 'right': this._x -= this.x_speed; } this.moveCollision(); } }; ASSetPropFlags(_global.s11player.prototype, null, 1); } #endinitclip } movieClip 1266 __Packages.s11text { #initclip if (!_global.s11text) { var v1 = function () { super(); }; _global.s11text = v1; _global.s11text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s11text.prototype, null, 1); } #endinitclip } movieClip 1267 __Packages.s11timer { #initclip if (!_global.s11timer) { var v1 = function () { super(); }; _global.s11timer = v1; _global.s11timer extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 5; this.gotoAndStop(this.frame); this.counter = 5; this.number = true; this.tick_speed = 50; this.tick_timer = 0; this.sfx_tick = new Sound(); this.sfx_tick.attachSound('click.wav'); }; v2.onEnterFrame = function () { if (this.tick_timer < this.tick_speed) { ++this.tick_timer; } else { this.tick_timer = 0; if (this.number) { if (this.counter == 1) { this.boss.endScene(); } this.number = false; this.gotoAndStop(6); --this.counter; } else { this.number = true; this.gotoAndStop(this.counter); this.sfx_tick.start(); } } }; ASSetPropFlags(_global.s11timer.prototype, null, 1); } #endinitclip } movieClip 1268 __Packages.scene11boss { #initclip if (!_global.scene11boss) { var v1 = function () { super(); }; _global.scene11boss = v1; _global.scene11boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v6 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v6.beginFill(16556104); v6.moveTo(0, 0); v6.lineTo(512, 0); v6.lineTo(512, 512); v6.lineTo(0, 512); v6.lineTo(0, 0); v6.endFill(); this.objs.push(v6); this.room = [[1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 6, 0, 7, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 4, 0, 0, 5, 1, 1], [2, 0, 0, 0, 0, 0, 0, 3], [1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1]]; this.obstacles = []; var v5 = 0; while (v5 < 8) { var v3 = 0; while (v3 < 8) { if (this.room[v5][v3] > 0) { var v4 = _root.attachMovie('s11obstacle', 's11obstacle' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4.gotoAndStop(this.room[v5][v3]); v4._x = v3 * 64; v4._y = v5 * 64; this.obstacles.push(v4); this.objs.push(v4); } ++v3; } ++v5; } var v9 = _root.attachMovie('s11text', 's11text', _root.getNextHighestDepth()); v9._x = 108; v9._y = 420; this.objs.push(v9); var v7 = _root.attachMovie('s11player', 's11player', _root.getNextHighestDepth()); v7.boss = this; v7._x = 64; v7._y = 320; this.objs.push(v7); var v8 = _root.attachMovie('s11timer', 's11timer', _root.getNextHighestDepth()); v8.boss = this; v8._x = 64; this.objs.push(v8); this.mus_ticka = new Sound(); this.mus_ticka.attachSound('tickaticka.wav'); this.mus_ticka.start(); }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene11boss.prototype, null, 1); } #endinitclip } movieClip 1269 __Packages.s12clasp { #initclip if (!_global.s12clasp) { var v1 = function () { super(); }; _global.s12clasp = v1; _global.s12clasp extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s12clasp.prototype, null, 1); } #endinitclip } movieClip 1270 __Packages.s12heart { #initclip if (!_global.s12heart) { var v1 = function () { super(); }; _global.s12heart = v1; _global.s12heart extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s12heart.prototype, null, 1); } #endinitclip } movieClip 1271 __Packages.s12leftarm { #initclip if (!_global.s12leftarm) { var v1 = function () { super(); }; _global.s12leftarm = v1; _global.s12leftarm extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.right_arm = _root.attachMovie('s12rightarm', 's12rightarm', _root.getNextHighestDepth()); this.right_arm._y = this._y; this.right_arm._x = 404 - (this._x + 192); this.boss.objs.push(this.right_arm); this.key_clear = false; this.reverse = false; this.sfx_clasp = new Sound(); this.sfx_clasp.attachSound('uwuh.wav'); }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v4 = 0; if (Key.isDown(37)) { this.key_left = true; ++v4; } if (Key.isDown(38)) { this.key_up = true; ++v4; } if (Key.isDown(39)) { this.key_right = true; ++v4; } if (Key.isDown(40)) { this.key_down = true; ++v4; } if (v4 == 0) { this.key_clear = true; this.reverse = false; } var v3 = 16; if (this.key_left and !this.key_right and this.key_clear) { this._x -= v3; } if (this.key_right and !this.key_left and this.key_clear) { this._x += v3; } if (this.key_up and !this.key_down and this.key_clear) { if (!this.reverse) { this._y -= v3; } else { this._y += v3; } } if (this.key_down and !this.key_up and this.key_clear) { if (!this.reverse) { this._y += v3; } else { this._y -= v3; } } if (this._x < -192) { this._x = -192; } var v5 = false; if (this._y < 0) { this._y = 0; v5 = true; } if (this._y > 448) { this._y = 448; v5 = true; } if (v5) { if (!this.reverse) { this.reverse = true; } else { this.reverse = false; } } this.right_arm._y = this._y; this.right_arm._x = 404 - (this._x + 192); if (this._x == 0) { var v6 = _root.attachMovie('s12clasp', 's12clasp', _root.getNextHighestDepth()); v6._x = 0; v6._y = this._y; this.boss.objs.push(v6); this.sfx_clasp.start(); this.boss.end_timer = this.boss.end_speed; this.boss.heart._visible = true; this.right_arm.removeMovieClip(); this.removeMovieClip(); } }; ASSetPropFlags(_global.s12leftarm.prototype, null, 1); } #endinitclip } movieClip 1272 __Packages.s12rightarm { #initclip if (!_global.s12rightarm) { var v1 = function () { super(); }; _global.s12rightarm = v1; _global.s12rightarm extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s12rightarm.prototype, null, 1); } #endinitclip } movieClip 1273 __Packages.s12text { #initclip if (!_global.s12text) { var v1 = function () { super(); }; _global.s12text = v1; _global.s12text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s12text.prototype, null, 1); } #endinitclip } movieClip 1274 __Packages.scene12boss { #initclip if (!_global.scene12boss) { var v1 = function () { super(); }; _global.scene12boss = v1; _global.scene12boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16539976); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.heart = _root.attachMovie('s12heart', 's12heart', _root.getNextHighestDepth()); this.heart._visible = false; this.objs.push(this.heart); var v5 = _root.attachMovie('s12text', 's12text', _root.getNextHighestDepth()); v5._x = 76; v5._y = 400; this.objs.push(v5); var v4 = _root.attachMovie('s12leftarm', 's12leftarm', _root.getNextHighestDepth()); v4.boss = this; v4._x = -192; v4._y = 200; this.objs.push(v4); this.end_speed = 50; this.end_timer = 0; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene12boss.prototype, null, 1); } #endinitclip } movieClip 1275 __Packages.s13background { #initclip if (!_global.s13background) { var v1 = function () { super(); }; _global.s13background = v1; _global.s13background extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s13background.prototype, null, 1); } #endinitclip } movieClip 1276 __Packages.s13collision { #initclip if (!_global.s13collision) { var v1 = function () { super(); }; _global.s13collision = v1; _global.s13collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s13collision.prototype, null, 1); } #endinitclip } movieClip 1277 __Packages.s13player { #initclip if (!_global.s13player) { var v1 = function () { super(); }; _global.s13player = v1; _global.s13player extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.collision = _root.attachMovie('s13collision', 's13collision', _root.getNextHighestDepth()); this.collision._visible = false; this.boss.objs.push(this.collision); this.updateCollision(); this.going_up = true; this.up_length = 6; this.up_timer = 0; this.origin_y = this._y; this.key_clear = false; this.done = false; this.on_top = false; this.sfx_bounce = new Sound(); this.sfx_bounce.attachSound('ull.wav'); }; v2.onEnterFrame = function () { if (this.going_up) { this._y -= 4; ++this.up_timer; if (this.up_timer == this.up_length) { this.up_timer = 0; this.going_up = false; } } else { this._y += 4; this.updateCollision(); if (this._y >= this.origin_y) { this._y = this.origin_y; this.going_up = true; this.sfx_bounce.start(); } for (var v2 in this.boss.thing_parts) { if (this.collision.hitTest(this.boss.thing_parts[v2])) { this._y -= 4; this.going_up = true; this.sfx_bounce.start(); } } } this.updateCollision(); this.key_left = false; this.key_right = false; if (Key.isDown(37)) { this.key_left = true; } if (Key.isDown(39)) { this.key_right = true; } if (!this.key_left and !this.key_right) { this.key_clear = true; } if (this.key_clear and this.key_left and !this.key_right and !this.done) { this._x -= 4; this.updateCollision(); for (v2 in this.boss.thing_parts) { if (this.collision.hitTest(this.boss.thing_parts[v2])) { this._x += 4; this.updateCollision(); } } if (!this.on_top and this._x <= 232) { this.on_top = true; this.boss.end_timer = this.boss.end_speed; } if (this._x <= 176) { this.done = true; } } if (this.key_clear and this.key_right and !this.key_left and this._x < 444 and !this.done) { this._x += 4; } }; v2.updateCollision = function () { this.collision._x = this._x + 1; this.collision._y = this._y + 1; }; ASSetPropFlags(_global.s13player.prototype, null, 1); } #endinitclip } movieClip 1278 __Packages.s13thing { #initclip if (!_global.s13thing) { var v1 = function () { super(); }; _global.s13thing = v1; _global.s13thing extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s13thing.prototype, null, 1); } #endinitclip } movieClip 1279 __Packages.scene13boss { #initclip if (!_global.scene13boss) { var v1 = function () { super(); }; _global.scene13boss = v1; _global.scene13boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16776272); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.s13background = _root.attachMovie('s13background', 's13background', _root.getNextHighestDepth()); this.s13background.gotoAndStop(1); this.objs.push(this.s13background); this.speak_delay = 50; this.thing_parts = []; var v6 = _root.attachMovie('s13thing', 'thing1', _root.getNextHighestDepth()); v6._x = 136; v6._y = 312; v6.gotoAndStop(1); this.thing_parts.push(v6); this.objs.push(v6); var v5 = _root.attachMovie('s13thing', 'thing2', _root.getNextHighestDepth()); v5._x = 276; v5._y = 336; v5.gotoAndStop(2); this.thing_parts.push(v5); this.objs.push(v5); var v4 = _root.attachMovie('s13thing', 'thing3', _root.getNextHighestDepth()); v4._x = 320; v4._y = 356; v4.gotoAndStop(3); this.thing_parts.push(v4); this.objs.push(v4); var v7 = _root.attachMovie('s13player', 's13player', _root.getNextHighestDepth()); v7._x = 416; v7._y = 148; v7.boss = this; this.objs.push(v7); this.end_speed = 50; this.end_timer = 0; }; v2.onEnterFrame = function () { if (this.speak_delay > 0) { --this.speak_delay; if (this.speak_delay == 0) { this.s13background.gotoAndStop(2); } } if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene13boss.prototype, null, 1); } #endinitclip } movieClip 1280 __Packages.s14background { #initclip if (!_global.s14background) { var v1 = function () { super(); }; _global.s14background = v1; _global.s14background extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s14background.prototype, null, 1); } #endinitclip } movieClip 1281 __Packages.s14bar { #initclip if (!_global.s14bar) { var v1 = function () { super(); }; _global.s14bar = v1; _global.s14bar extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.full = false; }; v2.onEnterFrame = function () { var v3 = this.boss.completeness; if (v3 > 100) { v3 = 100; } if (v3 >= 100 and !this.full) { this.full = true; var v4 = _root.attachMovie('s14negative', 's14negative', _root.getNextHighestDepth()); v4.boss = this; v4._x = 56; v4._y = 44; this.boss.objs.push(v4); this.boss.end_timer = this.boss.end_speed; } this.box.removeMovieClip(); if (v3 > 0) { var v5 = 56; var v6 = 44; var v8 = v5 + v3 * 4; var v7 = 80; this.box = this.createEmptyMovieClip('box' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.box.beginFill(11405472); this.box.moveTo(v5, v6); this.box.lineTo(v8, v6); this.box.lineTo(v8, v7); this.box.lineTo(v5, v7); this.box.lineTo(v5, v6); this.box.endFill(); } }; ASSetPropFlags(_global.s14bar.prototype, null, 1); } #endinitclip } movieClip 1282 __Packages.s14collision { #initclip if (!_global.s14collision) { var v1 = function () { super(); }; _global.s14collision = v1; _global.s14collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s14collision.prototype, null, 1); } #endinitclip } movieClip 1283 __Packages.s14negative { #initclip if (!_global.s14negative) { var v1 = function () { super(); }; _global.s14negative = v1; _global.s14negative extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { var v3 = _root.attachMovie('blinker', 'blinker', _root.getNextHighestDepth()); v3.mom = this; v3.frequency = 5; this.boss.boss.objs.push(v3); }; ASSetPropFlags(_global.s14negative.prototype, null, 1); } #endinitclip } movieClip 1284 __Packages.s14rubber { #initclip if (!_global.s14rubber) { var v1 = function () { super(); }; _global.s14rubber = v1; _global.s14rubber extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.collision = _root.attachMovie('s14collision', 'collision4', _root.getNextHighestDepth()); this.collision.gotoAndStop(4); this.collision._visible = false; this.boss.objs.push(this.collision); this.updateCollision(); this.key_clear = false; this.last_x = this._x; this.last_y = this._y; this.sfx_rub = new Sound(); this.sfx_rub.attachSound('rrrrow.wav'); this.sfx_timer = 0; this.sfx_delay = 10; }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v4 = 0; if (Key.isDown(37)) { this.key_left = true; ++v4; } if (Key.isDown(38)) { this.key_up = true; ++v4; } if (Key.isDown(39)) { this.key_right = true; ++v4; } if (Key.isDown(40)) { this.key_down = true; ++v4; } if (v4 == 0) { this.key_clear = true; } if (!this.key_right and !this.key_left) { this.reverse_x = false; } if (!this.key_up and !this.key_down) { this.reverse_y = false; } var v2 = 16; if (this.key_left and !this.key_right and this.key_clear) { if (!this.reverse_x) { this._x -= v2; } else { this._x += v2; } } if (this.key_right and !this.key_left and this.key_clear) { if (!this.reverse_x) { this._x += v2; } else { this._x -= v2; } } if (this.key_up and !this.key_down and this.key_clear) { if (!this.reverse_y) { this._y -= v2; } else { this._y += v2; } } if (this.key_down and !this.key_up and this.key_clear) { if (!this.reverse_y) { this._y += v2; } else { this._y -= v2; } } var v6 = false; if (this._x < 0) { this._x = 0; v6 = true; } if (this._x > 444) { this._x = 444; v6 = true; } if (v6) { if (!this.reverse_x) { this.reverse_x = true; } else { this.reverse_x = false; } } v6 = false; if (this._y < 0) { this._y = 0; v6 = true; } if (this._y > 444) { this._y = 444; v6 = true; } if (v6) { if (!this.reverse_y) { this.reverse_y = true; } else { this.reverse_y = false; } } this.updateCollision(); if (this.sfx_timer > 0) { --this.sfx_timer; } if (this._x != this.last_x or this._y != this.last_y) { var v3 = false; for (var v5 in this.boss.collisions) { if (this.collision.hitTest(this.boss.collisions[v5])) { v3 = true; } } if (v3) { ++this.boss.completeness; if (this.boss.completeness < 100 and this.sfx_timer == 0) { this.sfx_rub.start(); this.sfx_timer = this.sfx_delay; } } } this.last_x = this._x; this.last_y = this._y; }; v2.updateCollision = function () { this.collision._x = this._x + 20; this.collision._y = this._y + 8; }; ASSetPropFlags(_global.s14rubber.prototype, null, 1); } #endinitclip } movieClip 1285 __Packages.scene14boss { #initclip if (!_global.scene14boss) { var v1 = function () { super(); }; _global.scene14boss = v1; _global.scene14boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.completeness = 0; this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(9568252); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v9 = _root.attachMovie('s14background', 's14background', _root.getNextHighestDepth()); this.objs.push(v9); this.collisions = []; var v6 = _root.attachMovie('s14collision', 'collision1', _root.getNextHighestDepth()); v6._x = 88; v6._y = 204; v6.gotoAndStop(1); v6._visible = false; this.collisions.push(v6); this.objs.push(v6); var v4 = _root.attachMovie('s14collision', 'collision2', _root.getNextHighestDepth()); v4._x = 108; v4._y = 192; v4.gotoAndStop(2); v4._visible = false; this.collisions.push(v4); this.objs.push(v4); var v5 = _root.attachMovie('s14collision', 'collision3', _root.getNextHighestDepth()); v5._x = 160; v5._y = 184; v5.gotoAndStop(3); v5._visible = false; this.collisions.push(v5); this.objs.push(v5); var v7 = _root.attachMovie('s14rubber', 's14rubber', _root.getNextHighestDepth()); v7.boss = this; v7._x = 44; v7._y = 384; this.objs.push(v7); var v8 = _root.attachMovie('s14bar', 's14bar', _root.getNextHighestDepth()); v8.boss = this; this.objs.push(v8); this.end_speed = 60; this.end_timer = 0; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene14boss.prototype, null, 1); } #endinitclip } movieClip 1286 __Packages.s15burning { #initclip if (!_global.s15burning) { var v1 = function () { super(); }; _global.s15burning = v1; _global.s15burning extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 1; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; ++this.frame; if (this.frame > 3) { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s15burning.prototype, null, 1); } #endinitclip } movieClip 1287 __Packages.s15text { #initclip if (!_global.s15text) { var v1 = function () { super(); }; _global.s15text = v1; _global.s15text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s15text.prototype, null, 1); } #endinitclip } movieClip 1288 __Packages.scene15boss { #initclip if (!_global.scene15boss) { var v1 = function () { super(); }; _global.scene15boss = v1; _global.scene15boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16777215); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v4 = _root.attachMovie('s15burning', 's15burning', _root.getNextHighestDepth()); this.objs.push(v4); this.s15text = _root.attachMovie('s15text', 's15text', _root.getNextHighestDepth()); this.s15text._x = 8; this.s15text._y = 8; this.s15text.gotoAndStop(1); this.objs.push(this.s15text); this.timer = 0; this.sfx_grr = new Sound(); this.sfx_grr.attachSound('rrrrrr.wav'); this.mus_wahwah = new Sound(); this.mus_wahwah.attachSound('wahwahwahwah.wav'); this.mus_wahwah.start(); }; v2.onEnterFrame = function () { ++this.timer; if (this.timer == 80) { this.s15text.gotoAndStop(2); this.sfx_grr.start(); } if (this.timer == 220) { this.endScene(); } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene15boss.prototype, null, 1); } #endinitclip } movieClip 1289 __Packages.s16bottle_back { #initclip if (!_global.s16bottle_back) { var v1 = function () { super(); }; _global.s16bottle_back = v1; _global.s16bottle_back extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s16bottle_back.prototype, null, 1); } #endinitclip } movieClip 1290 __Packages.s16bottle_front { #initclip if (!_global.s16bottle_front) { var v1 = function () { super(); }; _global.s16bottle_front = v1; _global.s16bottle_front extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.back = _root.attachMovie('s16bottle_back', 's16bottle_back', _root.getNextHighestDepth()); this.updateBack(); this.boss.objs.push(this.back); this.swapDepths(_root.getNextHighestDepth()); this.move_timer = 0; this.pause_timer = 0; this.pause_speed = 60; this.pill_speed = 20; this.randomMove(); this.sfx_pill = new Sound(); this.sfx_pill.attachSound('phbt.wav'); }; v2.onEnterFrame = function () { if (!this.is_paused) { if (this.move_timer < this.move_dur) { ++this.move_timer; var v2 = 16; if (this.move_dir == 'left') { this._x -= v2; if (this._x <= -4) { this._x = -4; this.move_dir = 'right'; } } else { this._x += v2; if (this._x >= 412) { this._x = 412; this.move_dir = 'left'; } } } else { this.is_paused = true; } this.updateBack(); } else { if (this.pause_timer < this.pause_speed) { ++this.pause_timer; if (this.pause_timer == this.pill_speed) { this.shootPill(); } } else { this.randomMove(); } } }; v2.updateBack = function () { this.back._x = this._x + 8; this.back._y = this._y + 52; }; v2.randomMove = function () { var v2 = Math.ceil(Math.random() * 2); if (v2 == 1) { this.move_dir = 'left'; } else { this.move_dir = 'right'; } this.move_dur = Math.ceil(Math.random() * 30) + 20; this.move_timer = 0; this.pause_timer = 0; this.is_paused = false; }; v2.shootPill = function () { this.sfx_pill.start(); var v3 = _root.attachMovie('s16pill', 's16pill' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3._x = this._x + 40; v3._y = this._y + 28; v3.boss = this.boss; this.boss.objs.push(v3); this.swapDepths(_root.getNextHighestDepth()); }; ASSetPropFlags(_global.s16bottle_front.prototype, null, 1); } #endinitclip } movieClip 1291 __Packages.s16collision { #initclip if (!_global.s16collision) { var v1 = function () { super(); }; _global.s16collision = v1; _global.s16collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s16collision.prototype, null, 1); } #endinitclip } movieClip 1292 __Packages.s16maw { #initclip if (!_global.s16maw) { var v1 = function () { super(); }; _global.s16maw = v1; _global.s16maw extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.collision = _root.attachMovie('s16collision', 's16collision', _root.getNextHighestDepth()); this.boss.objs.push(this.collision); this.collision._visible = false; this.collision._y = this._y + 40; this.updateCollision(); }; v2.onEnterFrame = function () { this.key_left = false; this.key_right = false; if (Key.isDown(37)) { this.key_left = true; } if (Key.isDown(39)) { this.key_right = true; } var v2 = 8; if (this.key_left and !this.key_right) { this._x -= v2; } if (this.key_right and !this.key_left) { this._x += v2; } if (this._x <= -68) { this._x = -68; } if (this._x >= 384) { this._x = 384; } this.updateCollision(); }; v2.updateCollision = function () { this.collision._x = this._x + 88; }; ASSetPropFlags(_global.s16maw.prototype, null, 1); } #endinitclip } movieClip 1293 __Packages.s16pill { #initclip if (!_global.s16pill) { var v1 = function () { super(); }; _global.s16pill = v1; _global.s16pill extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.snarfed = false; this.sfx_gulp = new Sound(); this.sfx_gulp.attachSound('gulp.wav'); }; v2.onEnterFrame = function () { this._y += 16; if (this._y >= 512) { this.removeMovieClip(); } if (this.hitTest(this.boss.maw.collision) and !this.snarfed) { this.boss.bloodpressure -= 5; this.snarfed = true; this.sfx_gulp.start(); } }; ASSetPropFlags(_global.s16pill.prototype, null, 1); } #endinitclip } movieClip 1294 __Packages.s16pressure { #initclip if (!_global.s16pressure) { var v1 = function () { super(); }; _global.s16pressure = v1; _global.s16pressure extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); this.blinked = false; this.blinking = false; this.blink_speed = 5; this.blink_timer = 0; }; v2.onEnterFrame = function () { if (!this.blinking) { switch (this.boss.bloodpressure) { case 135: this.gotoAndStop(2); break; case 130: this.gotoAndStop(3); break; case 125: this.gotoAndStop(4); break; case 120: this.gotoAndStop(5); this.blinking = true; this.boss.end_timer = this.boss.end_speed; } } else { if (this.blink_timer < this.blink_speed) { ++this.blink_timer; } else { this.blink_timer = 0; if (!this.blinked) { this.blinked = true; this.gotoAndStop(6); } else { this.blinked = false; this.gotoAndStop(5); } } } }; ASSetPropFlags(_global.s16pressure.prototype, null, 1); } #endinitclip } movieClip 1295 __Packages.s16text { #initclip if (!_global.s16text) { var v1 = function () { super(); }; _global.s16text = v1; _global.s16text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s16text.prototype, null, 1); } #endinitclip } movieClip 1296 __Packages.scene16boss { #initclip if (!_global.scene16boss) { var v1 = function () { super(); }; _global.scene16boss = v1; _global.scene16boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; this.bloodpressure = 140; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16711703); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v5 = _root.attachMovie('s16text', 's16text', _root.getNextHighestDepth()); v5._x = 44; v5._y = 196; this.objs.push(v5); var v4 = _root.attachMovie('s16pressure', 's16pressure', _root.getNextHighestDepth()); v4.boss = this; v4._x = 204; v4._y = 368; this.objs.push(v4); this.bottle = _root.attachMovie('s16bottle_front', 's16bottle_front', _root.getNextHighestDepth()); this.bottle.boss = this; this.bottle._x = 200; this.objs.push(this.bottle); this.maw = _root.attachMovie('s16maw', 's16maw', _root.getNextHighestDepth()); this.maw.boss = this; this.maw._x = 180; this.maw._y = 468; this.objs.push(this.maw); this.end_speed = 50; this.end_timer = 0; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene16boss.prototype, null, 1); } #endinitclip } movieClip 1297 __Packages.s17text { #initclip if (!_global.s17text) { var v1 = function () { super(); }; _global.s17text = v1; _global.s17text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s17text.prototype, null, 1); } #endinitclip } movieClip 1298 __Packages.scene17boss { #initclip if (!_global.scene17boss) { var v1 = function () { super(); }; _global.scene17boss = v1; _global.scene17boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(11272191); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v4 = _root.attachMovie('s17text', 's17text', _root.getNextHighestDepth()); v4._x = 92; v4._y = 236; v4.gotoAndStop(1); this.objs.push(v4); this.prescription = _root.attachMovie('s17text', 'prescription', _root.getNextHighestDepth()); this.prescription._x = 64; this.prescription._y = 96; this.prescription.gotoAndStop(2); this.objs.push(this.prescription); this.timer = 0; this.mus_tuhtuh = new Sound(); this.mus_tuhtuh.attachSound('tuhtuhtuhtuhtihhh.wav'); this.mus_tuhtuh.start(); }; v2.onEnterFrame = function () { ++this.timer; if (this.timer >= 60) { this.prescription._y += 16; } if (this.timer == 100) { this.endScene(); } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene17boss.prototype, null, 1); } #endinitclip } movieClip 1299 __Packages.s18bill { #initclip if (!_global.s18bill) { var v1 = function () { super(); }; _global.s18bill = v1; _global.s18bill extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.reduce = false; this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 1; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.reduce) { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.frame < 5) { ++this.frame; this.gotoAndStop(this.frame); } } } }; ASSetPropFlags(_global.s18bill.prototype, null, 1); } #endinitclip } movieClip 1300 __Packages.s18buyer { #initclip if (!_global.s18buyer) { var v1 = function () { super(); }; _global.s18buyer = v1; _global.s18buyer extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s18buyer.prototype, null, 1); } #endinitclip } movieClip 1301 __Packages.s18card { #initclip if (!_global.s18card) { var v1 = function () { super(); }; _global.s18card = v1; _global.s18card extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.key_clear = false; this.sfx_use = new Sound(); this.sfx_use.attachSound('ching.wav'); }; v2.onEnterFrame = function () { this.key_up = false; this.key_down = false; var v3 = 0; if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(40)) { this.key_down = true; } if (!this.key_up and !this.key_down) { this.key_clear = true; } var v2 = 8; if (this.key_up and !this.key_down and this.key_clear) { this._y -= v2; } if (this.key_down and !this.key_up and this.key_clear) { this._y += v2; } if (this._y > 388) { this._y = 388; } if (this._y <= 180) { this.sfx_use.start(); this.boss.bill.reduce = true; this.boss.buyer.gotoAndStop(2); this.boss.end_timer = this.boss.end_speed; this.removeMovieClip(); } }; ASSetPropFlags(_global.s18card.prototype, null, 1); } #endinitclip } movieClip 1302 __Packages.s18customer_back { #initclip if (!_global.s18customer_back) { var v1 = function () { super(); }; _global.s18customer_back = v1; _global.s18customer_back extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s18customer_back.prototype, null, 1); } #endinitclip } movieClip 1303 __Packages.s18customer_front { #initclip if (!_global.s18customer_front) { var v1 = function () { super(); }; _global.s18customer_front = v1; _global.s18customer_front extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s18customer_front.prototype, null, 1); } #endinitclip } movieClip 1304 __Packages.s18text { #initclip if (!_global.s18text) { var v1 = function () { super(); }; _global.s18text = v1; _global.s18text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s18text.prototype, null, 1); } #endinitclip } movieClip 1305 __Packages.scene18boss { #initclip if (!_global.scene18boss) { var v1 = function () { super(); }; _global.scene18boss = v1; _global.scene18boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16747776); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.bill = _root.attachMovie('s18bill', 's18bill', _root.getNextHighestDepth()); this.objs.push(this.bill); this.buyer = _root.attachMovie('s18buyer', 's18buyer', _root.getNextHighestDepth()); this.buyer._x = 380; this.buyer.gotoAndStop(1); this.objs.push(this.buyer); var v5 = _root.attachMovie('s18customer_back', 's18customer_back', _root.getNextHighestDepth()); v5._x = 356; v5._y = 384; this.objs.push(v5); var v4 = _root.attachMovie('s18card', 's18card', _root.getNextHighestDepth()); v4.boss = this; v4._x = 376; v4._y = 356; this.objs.push(v4); var v6 = _root.attachMovie('s18customer_front', 's18customer_front', _root.getNextHighestDepth()); v6._x = 356; v6._y = 384; this.objs.push(v6); this.s18text = _root.attachMovie('s18text', 's18text', _root.getNextHighestDepth()); this.s18text._x = 52; this.s18text._y = 420; this.s18text._visible = false; this.objs.push(this.s18text); this.text_delay = 30; this.end_speed = 70; this.end_timer = 0; this.sfx_card = new Sound(); this.sfx_card.attachSound('hmm.wav'); }; v2.onEnterFrame = function () { if (this.text_delay > 0) { --this.text_delay; if (this.text_delay == 0) { this.s18text._visible = true; this.sfx_card.start(); } } if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene18boss.prototype, null, 1); } #endinitclip } movieClip 1306 __Packages.s19arrow { #initclip if (!_global.s19arrow) { var v1 = function () { super(); }; _global.s19arrow = v1; _global.s19arrow extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.down = false; this.point_speed = 5; this.point_timer = 0; }; v2.onEnterFrame = function () { if (this.point_timer < this.point_speed) { ++this.point_timer; } else { this.point_timer = 0; if (this.down) { this.down = false; this._y -= 4; } else { this.down = true; this._y += 4; } } }; ASSetPropFlags(_global.s19arrow.prototype, null, 1); } #endinitclip } movieClip 1307 __Packages.s19bottle_back { #initclip if (!_global.s19bottle_back) { var v1 = function () { super(); }; _global.s19bottle_back = v1; _global.s19bottle_back extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s19bottle_back.prototype, null, 1); } #endinitclip } movieClip 1308 __Packages.s19bottle_front { #initclip if (!_global.s19bottle_front) { var v1 = function () { super(); }; _global.s19bottle_front = v1; _global.s19bottle_front extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s19bottle_front.prototype, null, 1); } #endinitclip } movieClip 1309 __Packages.s19liver { #initclip if (!_global.s19liver) { var v1 = function () { super(); }; _global.s19liver = v1; _global.s19liver extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 4; this.gotoAndStop(this.frame); }; v2.onEnterFrame = function () { if (this.frame < 4) { ++this.frame; } this.gotoAndStop(this.frame); }; ASSetPropFlags(_global.s19liver.prototype, null, 1); } #endinitclip } movieClip 1310 __Packages.s19maw { #initclip if (!_global.s19maw) { var v1 = function () { super(); }; _global.s19maw = v1; _global.s19maw extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s19maw.prototype, null, 1); } #endinitclip } movieClip 1311 __Packages.s19pill { #initclip if (!_global.s19pill) { var v1 = function () { super(); }; _global.s19pill = v1; _global.s19pill extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gobbled = false; this.sfx_swallow = new Sound(); this.sfx_swallow.attachSound('ull.wav'); }; v2.onEnterFrame = function () { this._y += 32; if (this._y >= 512) { this.sfx_swallow.start(); this.boss.gobblePill(); this.removeMovieClip(); } }; ASSetPropFlags(_global.s19pill.prototype, null, 1); } #endinitclip } movieClip 1312 __Packages.s19protip { #initclip if (!_global.s19protip) { var v1 = function () { super(); }; _global.s19protip = v1; _global.s19protip extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 10; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s19protip.prototype, null, 1); } #endinitclip } movieClip 1313 __Packages.s19status { #initclip if (!_global.s19status) { var v1 = function () { super(); }; _global.s19status = v1; _global.s19status extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); }; v2.onEnterFrame = function () { this.gotoAndStop(this.boss.percentage); }; ASSetPropFlags(_global.s19status.prototype, null, 1); } #endinitclip } movieClip 1314 __Packages.scene19boss { #initclip if (!_global.scene19boss) { var v1 = function () { super(); }; _global.scene19boss = v1; _global.scene19boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(2883836); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v5 = _root.attachMovie('s19bottle_back', 's19bottle_back', _root.getNextHighestDepth()); v5._x = 212; v5._y = 52; this.objs.push(v5); this.bottle_front = _root.attachMovie('s19bottle_front', 's19bottle_front', _root.getNextHighestDepth()); this.bottle_front._x = 204; this.objs.push(this.bottle_front); var v6 = _root.attachMovie('s19maw', 's19maw', _root.getNextHighestDepth()); v6._x = 164; v6._y = 468; this.objs.push(v6); var v7 = _root.attachMovie('s19arrow', 's19arrow', _root.getNextHighestDepth()); v7._x = 248; v7._y = 124; this.objs.push(v7); var v4 = _root.attachMovie('s19status', 's19status', _root.getNextHighestDepth()); v4.boss = this; v4._x = 360; v4._y = 440; this.objs.push(v4); this.liver = _root.attachMovie('s19liver', 's19liver', _root.getNextHighestDepth()); this.liver._x = 320; this.liver._y = 336; this.objs(this.liver); this.percentage = 1; this.pill_count = 3; this.key_clear = false; this.timing = false; this.timer = 0; this.sfx_shoot = new Sound(); this.sfx_shoot.attachSound('phbt.wav'); }; v2.onEnterFrame = function () { this.key_down = false; if (Key.isDown(40)) { this.key_down = true; } if (!this.key_down) { this.key_clear = true; } if (this.key_down and this.key_clear) { this.key_clear = false; if (this.pill_count > 0) { this.shootPill(); } } if (this.timing) { ++this.timer; if (this.timer == 30) { this.protip = _root.attachMovie('s19protip', 's19protip', _root.getNextHighestDepth()); this.protip._x = 84; this.protip._y = 176; this.objs.push(this.protip); } if (this.timer == 150) { this.endScene(); } } }; v2.shootPill = function () { this.sfx_shoot.start(); --this.pill_count; var v3 = _root.attachMovie('s19pill', 's19pill' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3._x = 248; v3._y = 44; this.bottle_front.swapDepths(_root.getNextHighestDepth()); this.protip.swapDepths(_root.getNextHighestDepth()); }; v2.gobblePill = function () { ++this.percentage; this.liver.frame = 1; this.liver.gotoAndStop(1); this.timing = true; }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene19boss.prototype, null, 1); } #endinitclip } movieClip 1315 __Packages.s20boobs { #initclip if (!_global.s20boobs) { var v1 = function () { super(); }; _global.s20boobs = v1; _global.s20boobs extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.called_it_in = false; this.poked = false; this.left_nipple = _root.attachMovie('s20nipple', 'left_nipple', _root.getNextHighestDepth()); this.left_nipple.boss = this; this.boss.objs.push(this.left_nipple); this.right_nipple = _root.attachMovie('s20nipple', 'right_nipple', _root.getNextHighestDepth()); this.right_nipple.boss = this; this.boss.objs.push(this.right_nipple); this.updateNipples(); this.boss.s20text.swapDepths(_root.getNextHighestDepth()); this.rise_speed = 1; this.rise_timer = 0; this.flash_speed = 5; this.flash_timer = 0; this.x_speed = 0; this.real_x = this._x; this.sfx_spike = new Sound(); this.sfx_spike.attachSound('kck.wav'); this.sfx_ow = new Sound(); this.sfx_ow.attachSound('ow.wav'); this.sfx_timer = 0; this.sfx_speed = 10; }; v2.onEnterFrame = function () { if (this.sfx_timer > 0) { --this.sfx_timer; if (this.sfx_timer == 0) { this.sfx_ow.start(); } } if (!this.poked) { if (this.rise_timer < this.rise_speed) { ++this.rise_timer; } else { this.rise_timer = 0; this._y -= 4; } this.key_left = false; this.key_right = false; if (Key.isDown(37)) { this.key_left = true; } if (Key.isDown(39)) { this.key_right = true; } if (this.key_left and !this.key_right) { --this.x_speed; } else { if (this.key_right and !this.key_left) { ++this.x_speed; } else { if (this.x_speed < 0) { ++this.x_speed; } if (this.x_speed > 0) { --this.x_speed; } } } var v3 = 8; if (this.x_speed < -v3) { this.x_speed = -v3; } if (this.x_speed > v3) { this.x_speed = v3; } this.real_x += this.x_speed; if (this.real_x <= -80) { this.real_x = -80; this.x_speed = 0; } if (this.real_x >= 84) { this.real_x = 84; this.x_speed = 0; } if (this.real_x % 4) { this._x = this.real_x; } else { if (this.real_x - 1) { this._x = this.real_x - 1; } else { if (this.real_x - 2) { this._x = this.real_x - 2; } else { if (this.real_x - 3) { this._x = this.real_x - 3; } } } } if (this._y <= -240) { this.boss.endScene(); } } else { if (this.flash_timer < this.flash_speed) { ++this.flash_timer; } else { this.flash_timer = 0; if (this._visible) { this._visible = false; this.left_nipple._visible = false; this.right_nipple._visible = false; } else { this._visible = true; this.left_nipple._visible = true; this.right_nipple._visible = true; } } } this.updateNipples(); for (var v4 in this.boss.spikes) { if (this.left_nipple.collision.hitTest(this.boss.spikes[v4]) or this.right_nipple.collision.hitTest(this.boss.spikes[v4])) { if (!this.poked) { this.sfx_spike.start(); this.sfx_timer = this.sfx_speed; } this.boss.spikes[v4].swapDepths(_root.getNextHighestDepth()); this.poked = true; } if (this.poked and !this.called_it_in) { this.boss.end_timer = this.boss.end_speed; this.called_it_in = true; } } }; v2.updateNipples = function () { this.left_nipple._x = this._x + 84; this.left_nipple._y = this._y + 84; this.right_nipple._x = this._x + 332; this.right_nipple._y = this._y + 84; this.left_nipple.updateCollision(); this.right_nipple.updateCollision(); }; ASSetPropFlags(_global.s20boobs.prototype, null, 1); } #endinitclip } movieClip 1316 __Packages.s20collision { #initclip if (!_global.s20collision) { var v1 = function () { super(); }; _global.s20collision = v1; _global.s20collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s20collision.prototype, null, 1); } #endinitclip } movieClip 1317 __Packages.s20nipple { #initclip if (!_global.s20nipple) { var v1 = function () { super(); }; _global.s20nipple = v1; _global.s20nipple extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 5; this.frame_timer = 0; this.collision = _root.attachMovie('s20collision', 's20collision' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.collision._visible = false; this.boss.boss.objs.push(this.collision); this.updateCollision(); }; v2.onEnterFrame = function () { if (this.boss.poked) { this.frame = 1; } else { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } } } this.gotoAndStop(this.frame); }; v2.updateCollision = function () { this.collision._x = this._x + 12; this.collision._y = this._y + 12; }; ASSetPropFlags(_global.s20nipple.prototype, null, 1); } #endinitclip } movieClip 1318 __Packages.s20spike { #initclip if (!_global.s20spike) { var v1 = function () { super(); }; _global.s20spike = v1; _global.s20spike extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(this.frame); this.frame_speed = 10; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s20spike.prototype, null, 1); } #endinitclip } movieClip 1319 __Packages.s20text { #initclip if (!_global.s20text) { var v1 = function () { super(); }; _global.s20text = v1; _global.s20text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s20text.prototype, null, 1); } #endinitclip } movieClip 1320 __Packages.scene20boss { #initclip if (!_global.scene20boss) { var v1 = function () { super(); }; _global.scene20boss = v1; _global.scene20boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v8 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v8.beginFill(16747336); v8.moveTo(0, 0); v8.lineTo(512, 0); v8.lineTo(512, 512); v8.lineTo(0, 512); v8.lineTo(0, 0); v8.endFill(); this.objs.push(v8); var v9 = _root.attachMovie('s20boobs', 's20boobs', _root.getNextHighestDepth()); v9.boss = this; v9._x = 4; v9._y = 392; this.objs.push(v9); this.spikes = []; var v7 = [[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; var v6 = true; var v5 = 0; while (v5 < 16) { var v4 = 0; while (v4 < 9) { if (v7[v4][v5] == 1) { var v3 = _root.attachMovie('s20spike', 's20spike' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3._x = v5 * 32 + 4; v3._y = v4 * 32 + 8; if (v6) { v3.frame = 2; } else { v3.frame = 1; } this.objs.push(v3); this.spikes.push(v3); } ++v4; } if (v6) { v6 = false; } else { v6 = true; } ++v5; } this.s20text = _root.attachMovie('s20text', 's20text', _root.getNextHighestDepth()); this.s20text._x = 20; this.s20text._y = 296; this.objs.push(this.s20text); this.end_speed = 40; this.end_timer = 0; this.mus_hrrr = new Sound(); this.mus_hrrr.attachSound('hrrrerrrERRR.wav'); this.mus_hrrr.start(); }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene20boss.prototype, null, 1); } #endinitclip } movieClip 1321 __Packages.s21path { #initclip if (!_global.s21path) { var v1 = function () { super(); }; _global.s21path = v1; _global.s21path extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s21path.prototype, null, 1); } #endinitclip } movieClip 1322 __Packages.s21text { #initclip if (!_global.s21text) { var v1 = function () { super(); }; _global.s21text = v1; _global.s21text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s21text.prototype, null, 1); } #endinitclip } movieClip 1323 __Packages.s21walk { #initclip if (!_global.s21walk) { var v1 = function () { super(); }; _global.s21walk = v1; _global.s21walk extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 10; this.anim_timer = 0; this.real_x = this._x; this.start_x = this._x; this.key_clear = false; this.done = false; this.sfx_phew = new Sound(); this.sfx_phew.attachSound('blah.wav'); }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } this.x_speed = 8; if (this._x <= this.start_x - 100) { this.x_speed = 7; } if (this._x <= this.start_x - 150) { this.x_speed = 6; } if (this._x <= this.start_x - 200) { this.x_speed = 5; } if (this._x <= this.start_x - 225) { this.x_speed = 4; } if (this._x <= this.start_x - 250) { this.x_speed = 3; } if (this._x <= this.start_x - 275) { this.x_speed = 2; } if (this._x <= this.start_x - 315) { this.x_speed = 1; } if (this._x <= this.start_x - 275 and !this.done) { this.done = true; this.boss.s21text._visible = true; this.boss.end_timer = this.boss.end_speed; this.sfx_phew.start(); } this.key_left = false; if (Key.isDown(37)) { this.key_left = true; } if (!this.key_left) { this.key_clear = true; } if (this.key_left and this.key_clear) { this.real_x -= this.x_speed; var v3 = false; var v2 = 0; while (!v3) { if (this.real_x + v2 % 4) { this._x = this.real_x; v3 = true; } else { ++v2; if (v2 > this.x_speed) { v3 = true; } } } } }; ASSetPropFlags(_global.s21walk.prototype, null, 1); } #endinitclip } movieClip 1324 __Packages.scene21boss { #initclip if (!_global.scene21boss) { var v1 = function () { super(); }; _global.scene21boss = v1; _global.scene21boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(65416); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.s21text = _root.attachMovie('s21text', 's21text', _root.getNextHighestDepth()); this.s21text._x = 16; this.s21text._y = 68; this.s21text._visible = false; this.objs.push(this.s21text); var v5 = _root.attachMovie('s21path', 's21path', _root.getNextHighestDepth()); v5._y = 256; this.objs.push(v5); var v4 = _root.attachMovie('s21walk', 's21walk', _root.getNextHighestDepth()); v4.boss = this; v4._x = 476; v4._y = 260; this.objs.push(v4); this.end_speed = 100; this.end_timer = 0; this.mus_beatbox2 = new Sound(); this.mus_beatbox2.attachSound('beatbox2.wav'); this.mus_beatbox2.start(); }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene21boss.prototype, null, 1); } #endinitclip } movieClip 1325 __Packages.s22arrow { #initclip if (!_global.s22arrow) { var v1 = function () { super(); }; _global.s22arrow = v1; _global.s22arrow extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.down = false; this.point_speed = 5; this.point_timer = 0; }; v2.onEnterFrame = function () { if (this.point_timer < this.point_speed) { ++this.point_timer; } else { this.point_timer = 0; if (this.down) { this.down = false; this._y -= 4; } else { this.down = true; this._y += 4; } } }; ASSetPropFlags(_global.s22arrow.prototype, null, 1); } #endinitclip } movieClip 1326 __Packages.s22bottle { #initclip if (!_global.s22bottle) { var v1 = function () { super(); }; _global.s22bottle = v1; _global.s22bottle extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.key_clear = false; this.falling = false; }; v2.onEnterFrame = function () { if (!this.falling) { this.key_down = false; if (Key.isDown(40)) { this.key_down = true; } if (!this.key_down) { this.key_clear = true; } if (this.key_down and this.key_clear) { this.falling = true; } } if (this.falling) { this._y += 64; if (this._y >= 64) { this.boss.s22arrow.removeMovieClip(); } if (this._y >= 512) { this.boss.trash.shakeUp(); this.boss.end_timer = this.boss.end_speed; this.removeMovieClip(); } } }; ASSetPropFlags(_global.s22bottle.prototype, null, 1); } #endinitclip } movieClip 1327 __Packages.s22trash { #initclip if (!_global.s22trash) { var v1 = function () { super(); }; _global.s22trash = v1; _global.s22trash extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.shaking = false; this.shake_timer = 0; this.start_x = this._x; this.sfx_trashed = new Sound(); this.sfx_trashed.attachSound('boom.wav'); }; v2.shakeUp = function () { this.shaking = true; this.sfx_trashed.start(); }; v2.onEnterFrame = function () { if (this.shaking) { ++this.shake_timer; switch (this.shake_timer) { case 1: this._x = this.start_x - 16; break; case 2: this._x = this.start_x + 16; break; case 3: this._x = this.start_x - 8; break; case 4: this._x = this.start_x + 8; break; case 5: this._x = this.start_x - 4; break; case 6: this._x = this.start_x + 4; break; case 7: this._x = this.start_x; } } }; ASSetPropFlags(_global.s22trash.prototype, null, 1); } #endinitclip } movieClip 1328 __Packages.scene22boss { #initclip if (!_global.scene22boss) { var v1 = function () { super(); }; _global.scene22boss = v1; _global.scene22boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16711703); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.s22arrow = _root.attachMovie('s22arrow', 's22arrow', _root.getNextHighestDepth()); this.s22arrow._x = 240; this.s22arrow._y = 124; this.objs.push(this.s22arrow); this.bottle = _root.attachMovie('s22bottle', 's22bottle', _root.getNextHighestDepth()); this.bottle.boss = this; this.bottle._x = 200; this.bottle._y = -108; this.objs.push(this.bottle); this.trash = _root.attachMovie('s22trash', 's22trash', _root.getNextHighestDepth()); this.trash._x = 104; this.trash._y = 436; this.objs.push(this.trash); this.end_speed = 30; this.end_timer = 0; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene22boss.prototype, null, 1); } #endinitclip } movieClip 1329 __Packages.s23bubble { #initclip if (!_global.s23bubble) { var v1 = function () { super(); }; _global.s23bubble = v1; _global.s23bubble extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); var v2 = Math.ceil(Math.random() * 4); if (v2 == 1 and this._y > 96) { this.y_speed = -4; } if (v2 == 2 and this._y < 416) { this.y_speed = 4; } }; v2.onEnterFrame = function () { this._x += 16; this._y += this.y_speed; if (this._x >= 512) { this.removeMovieClip(); } }; ASSetPropFlags(_global.s23bubble.prototype, null, 1); } #endinitclip } movieClip 1330 __Packages.s23mouth { #initclip if (!_global.s23mouth) { var v1 = function () { super(); }; _global.s23mouth = v1; _global.s23mouth extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 2; this.anim_timer = 0; if (Math.ceil(Math.random() * 2) == 2) { this.going_up = true; } else { this.going_up = false; } }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; ++this.frame; if (this.frame > 4) { this.frame = 1; } this.gotoAndStop(this.frame); } var v2 = 4; if (this.going_up) { this._y -= v2; if (this._y <= 0) { this._y = 0; this.going_up = false; } } else { this._y += v2; if (this._y >= 444) { this._y = 444; this.going_up = true; } } }; ASSetPropFlags(_global.s23mouth.prototype, null, 1); } #endinitclip } movieClip 1331 __Packages.s23shield { #initclip if (!_global.s23shield) { var v1 = function () { super(); }; _global.s23shield = v1; _global.s23shield extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.blink_time = 10; this.blink_timer = 0; this.crying = false; this.left_eye = false; this.tear_speed = 10; this.tear_timer = 4; this.sfx_cry = new Sound(); this.sfx_cry.attachSound('ull.wav'); }; v2.onEnterFrame = function () { this.key_up = false; this.key_down = false; if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(40)) { this.key_down = true; } var v5 = 16; if (this.key_up and !this.key_down) { this._y -= v5; } if (!this.key_up and this.key_down) { this._y += v5; } if (this._y < 0) { this._y = 0; } if (this._y > 396) { this._y = 396; } for (var v4 in this.boss.bubbles) { if (this.hitTest(this.boss.bubbles[v4])) { this.boss.bubbles[v4].removeMovieClip(); this.blink_timer = this.blink_time; if (!this.crying) { this.sfx_cry.start(); this.boss.end_timer = this.boss.end_speed; this.crying = true; } } } if (this.blink_timer > 0) { --this.blink_timer; if (this._visible) { this._visible = false; } else { this._visible = true; } } else { this._visible = true; } if (this.crying) { if (this.tear_timer < this.tear_speed) { ++this.tear_timer; } else { this.tear_timer = 0; var v3 = _root.attachMovie('s23tear', 's23tear' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); if (this.left_eye) { this.left_eye = false; v3._x = this._x + 4; } else { this.left_eye = true; v3._x = this._x + 28; } v3._y = this._y + 56; this.boss.objs.push(v3); } } }; ASSetPropFlags(_global.s23shield.prototype, null, 1); } #endinitclip } movieClip 1332 __Packages.s23tear { #initclip if (!_global.s23tear) { var v1 = function () { super(); }; _global.s23tear = v1; _global.s23tear extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.dripping = true; this.drip_speed = 1; this.drip_timer = 0; this.fall_time = 4; }; v2.onEnterFrame = function () { if (this.dripping) { if (this.drip_timer < this.drip_speed) { ++this.drip_timer; } else { this.drip_timer = 0; this._y += 4; } --this.fall_time; if (this.fall_time == 0) { this.dripping = false; } } else { this._y += 16; } if (this._y >= 512) { this.removeMovieClip(); } }; ASSetPropFlags(_global.s23tear.prototype, null, 1); } #endinitclip } movieClip 1333 __Packages.s23text { #initclip if (!_global.s23text) { var v1 = function () { super(); }; _global.s23text = v1; _global.s23text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s23text.prototype, null, 1); } #endinitclip } movieClip 1334 __Packages.scene23boss { #initclip if (!_global.scene23boss) { var v1 = function () { super(); }; _global.scene23boss = v1; _global.scene23boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; this.bubbles = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16711935); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.mouth = _root.attachMovie('s23mouth', 's23mouth', _root.getNextHighestDepth()); this.mouth._x = 24; this.mouth._y = 216; this.objs.push(this.mouth); this.s23text = _root.attachMovie('s23text', 's23text', _root.getNextHighestDepth()); this.s23text._x = 72; this.s23text._y = 376; this.s23text._visible = false; this.objs.push(this.s23text); var v4 = _root.attachMovie('s23shield', 's23shield', _root.getNextHighestDepth()); v4.boss = this; v4._x = 424; v4._y = 140; this.objs.push(v4); this.bubble_speed = 50; this.bubble_timer = 0; this.end_speed = 100; this.end_timer = 0; this.sfx_shoot = new Sound(); this.sfx_shoot.attachSound('uwuh.wav'); }; v2.onEnterFrame = function () { if (this.bubble_timer < this.bubble_speed) { ++this.bubble_timer; } else { this.bubble_timer = 0; this.fireBubble(); } if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 80) { this.s23text._visible = true; } if (this.end_timer == 0) { this.endScene(); } } }; v2.fireBubble = function () { var v3 = _root.attachMovie('s23bubble', 's23bubble' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3._x = this.mouth._x + 56; v3._y = this.mouth._y + 20; this.objs.push(v3); this.bubbles.push(v3); this.sfx_shoot.start(); }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene23boss.prototype, null, 1); } #endinitclip } movieClip 1335 __Packages.s24chocolate { #initclip if (!_global.s24chocolate) { var v1 = function () { super(); }; _global.s24chocolate = v1; _global.s24chocolate extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = Math.ceil(Math.random() * 6); this.gotoAndStop(this.frame); this.frame_speed = 1; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; ++this.frame; if (this.frame > 6) { this.frame = 1; } this.gotoAndStop(this.frame); } }; v2.removeMe = function () { this.collision.removeMovieClip(); this.removeMovieClip(); }; ASSetPropFlags(_global.s24chocolate.prototype, null, 1); } #endinitclip } movieClip 1336 __Packages.s24collision { #initclip if (!_global.s24collision) { var v1 = function () { super(); }; _global.s24collision = v1; _global.s24collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s24collision.prototype, null, 1); } #endinitclip } movieClip 1337 __Packages.s24maze { #initclip if (!_global.s24maze) { var v1 = function () { super(); }; _global.s24maze = v1; _global.s24maze extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s24maze.prototype, null, 1); } #endinitclip } movieClip 1338 __Packages.s24muncher { #initclip if (!_global.s24muncher) { var v1 = function () { super(); }; _global.s24muncher = v1; _global.s24muncher extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.opening = true; this.facing = 'left'; this.frame_speed = 1; this.frame_timer = 0; this.key_clear = false; this.dir = 'none'; this.sfx_munch = new Sound(); this.sfx_munch.attachSound('gulp.wav'); }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { var v6 = 0; if (this.facing == 'right') { v6 = 4; } this.frame_timer = 0; if (this.opening) { ++this.frame; if (this.frame > 4) { this.opening = false; this.frame = 3; } } else { --this.frame; if (this.frame < 1) { this.opening = true; this.frame = 2; } } this.gotoAndStop(this.frame + v6); } this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v4 = 0; if (Key.isDown(37)) { this.key_left = true; ++v4; } if (Key.isDown(38)) { this.key_up = true; ++v4; } if (Key.isDown(39)) { this.key_right = true; ++v4; } if (Key.isDown(40)) { this.key_down = true; ++v4; } if (v4 == 0) { this.key_clear = true; } if (this._x % 64 == 0 and this._y % 64 == 0 and this.key_clear) { var v9 = this._x / 64; var v8 = this._y / 64 - 1; var v7 = [[4, 4, 4, -1, 0, -2, 4, 4], [0, 0, 0, 5, 0, 0, 0, 0], [0, 0, 0, 5, 0, 0, 0, 0], [0, 0, 0, 5, 0, 0, 0, 0], [4, 4, 4, -3, 4, 4, 4, 4]]; var v2 = v7[v8][v9]; if (v2 < 0) { this.dir = 'none'; } if (this.key_left and !this.key_right) { if (v2 == -1 or v2 == -3 or v2 == 4) { this.dir = 'left'; this.facing = 'left'; } } if (this.key_right and !this.key_left) { if (v2 == -2 or v2 == -3 or v2 == 4) { this.dir = 'right'; this.facing = 'right'; } } if (this.key_up and !this.key_down) { if (v2 == -3 or v2 == 5) { this.dir = 'up'; } } if (this.key_down and !this.key_up) { if (v2 == -1 or v2 == 5) { this.dir = 'down'; } } } var v3 = 32; switch (this.dir) { case 'up': this._y -= v3; break; case 'down': this._y += v3; break; case 'left': this._x -= v3; break; case 'right': this._x += v3; } if (this._x == -64) { this._x = 512 - v3; } if (this._x == 512) { this._x = -64 + v3; } for (var v5 in this.boss.chocolates) { if (this.hitTest(this.boss.chocolates[v5].collision)) { this.sfx_munch.start(); this.boss.chocolates[v5].removeMe(); --this.boss.choco_total; if (this.boss.choco_total == 0) { this.boss.end_timer = this.boss.end_speed; } } } }; ASSetPropFlags(_global.s24muncher.prototype, null, 1); } #endinitclip } movieClip 1339 __Packages.scene24boss { #initclip if (!_global.scene24boss) { var v1 = function () { super(); }; _global.scene24boss = v1; _global.scene24boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v7 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v7.beginFill(0); v7.moveTo(0, 0); v7.lineTo(512, 0); v7.lineTo(512, 512); v7.lineTo(0, 512); v7.lineTo(0, 0); v7.endFill(); this.objs.push(v7); var v9 = _root.attachMovie('s24maze', 's24maze', _root.getNextHighestDepth()); this.objs.push(v9); this.chocolates = []; this.choco_total = 0; var v6 = [[0, 1, 1, 1, 0, 1, 1, 0], [0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1]]; var v5 = 0; while (v5 < 16) { var v4 = 0; while (v4 < 9) { if (v6[v4][v5] == 1) { var v3 = _root.attachMovie('s24chocolate', 's24chocolate' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3._x = 64 * v5; v3._y = 64 * v4 + 64; this.objs.push(v3); this.chocolates.push(v3); v3.collision = _root.attachMovie('s24collision', 's24collision' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.collision._x = v3._x + 20; v3.collision._y = v3._y + 20; v3.collision._visible = false; this.objs.push(v3.collision); ++this.choco_total; } ++v4; } ++v5; } var v8 = _root.attachMovie('s24muncher', 's24muncher', _root.getNextHighestDepth()); v8.boss = this; v8._x = 320; v8._y = 320; this.objs.push(v8); this.end_speed = 30; this.end_timer = 0; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene24boss.prototype, null, 1); } #endinitclip } movieClip 1340 __Packages.s25cake { #initclip if (!_global.s25cake) { var v1 = function () { super(); }; _global.s25cake = v1; _global.s25cake extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s25cake.prototype, null, 1); } #endinitclip } movieClip 1341 __Packages.s25icecream { #initclip if (!_global.s25icecream) { var v1 = function () { super(); }; _global.s25icecream = v1; _global.s25icecream extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s25icecream.prototype, null, 1); } #endinitclip } movieClip 1342 __Packages.s25muncher { #initclip if (!_global.s25muncher) { var v1 = function () { super(); }; _global.s25muncher = v1; _global.s25muncher extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.moving = false; this.key_clear = false; this.frame = 1; this.modifier = 0; this.gotoAndStop(1); this.size = 0; this.frame_speed = 1; this.frame_timer = 0; this.opening = true; this.sfx_munch = new Sound(); this.sfx_munch.attachSound('nom.wav'); }; v2.onEnterFrame = function () { if (!this.moving) { this.key_right = false; if (Key.isDown(39)) { this.key_right = true; } if (!this.key_right) { this.key_clear = true; } if (this.key_right and this.key_clear and this.modifier < 2) { this.key_clear = false; this.moving = true; this.sfx_munch.start(); } } if (this.moving) { var v3 = 16; this._x += v3; var v2 = [[22, 89, this.boss.cake, 0], [44, 74, this.boss.pizza, 1], [77, 59, this.boss.icecream, 2]]; if (this._x >= v2[this.size][0] * 4 - 32) { this._x = v2[this.size][0] * 4; this._y = v2[this.size][1] * 4; v2[this.size][2].removeMovieClip(); this.moving = false; this.modifier = v2[this.size][3]; ++this.size; this.frame = 4; this.opening = true; if (this.size == 3) { this.boss.end_timer = this.boss.end_speed; } } } if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.opening) { ++this.frame; if (this.frame > 4) { this.opening = false; this.frame = 3; } } else { --this.frame; if (this.frame < 1) { this.opening = true; this.frame = 2; } } this.gotoAndStop(this.frame + this.modifier * 4); } }; ASSetPropFlags(_global.s25muncher.prototype, null, 1); } #endinitclip } movieClip 1343 __Packages.s25pizza { #initclip if (!_global.s25pizza) { var v1 = function () { super(); }; _global.s25pizza = v1; _global.s25pizza extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s25pizza.prototype, null, 1); } #endinitclip } movieClip 1344 __Packages.s25text { #initclip if (!_global.s25text) { var v1 = function () { super(); }; _global.s25text = v1; _global.s25text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s25text.prototype, null, 1); } #endinitclip } movieClip 1345 __Packages.scene25boss { #initclip if (!_global.scene25boss) { var v1 = function () { super(); }; _global.scene25boss = v1; _global.scene25boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16777066); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v5 = _root.attachMovie('s25text', 's25text', _root.getNextHighestDepth()); v5._x = 24; v5._y = 24; this.objs.push(v5); this.cake = _root.attachMovie('s25cake', 's25cake', _root.getNextHighestDepth()); this.cake._x = 84; this.cake._y = 352; this.objs.push(this.cake); this.pizza = _root.attachMovie('s25pizza', 's25pizza', _root.getNextHighestDepth()); this.pizza._x = 168; this.pizza._y = 272; this.objs.push(this.pizza); this.icecream = _root.attachMovie('s25icecream', 's25icecream', _root.getNextHighestDepth()); this.icecream._x = 320; this.icecream._y = 200; this.objs.push(this.icecream); var v4 = _root.attachMovie('s25muncher', 's25muncher', _root.getNextHighestDepth()); v4.boss = this; v4._x = 8; v4._y = 356; this.objs.push(v4); this.end_speed = 30; this.end_timer = 0; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene25boss.prototype, null, 1); } #endinitclip } movieClip 1346 __Packages.s26boobs { #initclip if (!_global.s26boobs) { var v1 = function () { super(); }; _global.s26boobs = v1; _global.s26boobs extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s26boobs.prototype, null, 1); } #endinitclip } movieClip 1347 __Packages.s26collision { #initclip if (!_global.s26collision) { var v1 = function () { super(); }; _global.s26collision = v1; _global.s26collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s26collision.prototype, null, 1); } #endinitclip } movieClip 1348 __Packages.s26razor { #initclip if (!_global.s26razor) { var v1 = function () { super(); }; _global.s26razor = v1; _global.s26razor extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.dir = 'none'; this.gotoAndStop(1); this.collision = _root.attachMovie('s5collision', 's5collision', _root.getNextHighestDepth()); this.collision.gotoAndStop(1); this.collision._x = this._x; this.collision._y = this._y; this.collision._visible = false; this.boss.objs.push(this.collision); this.key_clear = false; this.sfx_shave = new Sound(); this.sfx_shave.attachSound('click.wav'); this.sfx_bounce = new Sound(); this.sfx_bounce.attachSound('wow.wav'); }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v4 = 0; if (Key.isDown(37)) { this.key_left = true; ++v4; } if (Key.isDown(38)) { this.key_up = true; ++v4; } if (Key.isDown(39)) { this.key_right = true; ++v4; } if (Key.isDown(40)) { this.key_down = true; ++v4; } if (v4 == 0) { this.key_clear = true; } if (v4 == 1 and this.key_clear) { if (this.key_left) { this.dir = 'left'; } if (this.key_up) { this.dir = 'up'; } if (this.key_right) { this.dir = 'right'; } if (this.key_down) { this.dir = 'down'; } } this.updateCollision(); var v6 = 16; switch (this.dir) { case 'up': this._y -= v6; this.gotoAndStop(1); break; case 'right': this._x += v6; this.gotoAndStop(2); break; case 'down': this._y += v6; this.gotoAndStop(3); break; case 'left': this._x -= v6; this.gotoAndStop(4); } this.updateCollision(); if (this._x < 0) { this._x = 0; this.dir = 'right'; } if (this._x > 448) { this._x = 448; this.dir = 'left'; } if (this._y < 0) { this._y = 0; this.dir = 'down'; } if (this._y > 448) { this._y = 448; this.dir = 'up'; } this.updateCollision(); var v3 = false; for (var v5 in this.boss.collisions) { if (this.collision.hitTest(this.boss.collisions[v5])) { v3 = true; } } if (v3) { this.sfx_bounce.start(); switch (this.dir) { case 'right': this.dir = 'left'; break; case 'left': this.dir = 'right'; break; case 'up': this.dir = 'down'; break; case 'down': this.dir = 'up'; } this.updateCollision(); this.key_clear = false; } var v2 = false; for (v5 in this.boss.stubbles) { if (this.collision.hitTest(this.boss.stubbles[v5]) and this.boss.stubbles[v5]._visible) { v2 = true; if (this.boss.stubbles[v5].regen_count > 0) { this.boss.stubbles[v5]._visible = false; } else { this.boss.stubbles[v5].removeMovieClip(); --this.boss.stubble_count; } } } if (v2) { this.sfx_shave.start(); } }; v2.updateCollision = function () { this.collision._x = this._x; this.collision._y = this._y; if (this.dir == 'up' or this.dir == 'down') { this.collision.gotoAndStop(1); ++this.collision._x; } else { if (this.dir == 'left' or this.dir == 'right') { this.collision.gotoAndStop(2); ++this.collision._y; } } if (this.dir == 'down') { this.collision._y += 48; } if (this.dir == 'right') { this.collision._x += 48; } }; ASSetPropFlags(_global.s26razor.prototype, null, 1); } #endinitclip } movieClip 1349 __Packages.s26stubble { #initclip if (!_global.s26stubble) { var v1 = function () { super(); }; _global.s26stubble = v1; _global.s26stubble extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.regen) { this.regen_count = 3; } else { this.regen_count = 0; } this.regen_speed = 50; this.regen_timer = 0; }; v2.onEnterFrame = function () { if (!this._visible) { if (this.regen_timer < this.regen_speed) { ++this.regen_timer; } else { --this.regen_count; this.regen_timer = 0; this._visible = true; } } }; ASSetPropFlags(_global.s26stubble.prototype, null, 1); } #endinitclip } movieClip 1350 __Packages.s26text { #initclip if (!_global.s26text) { var v1 = function () { super(); }; _global.s26text = v1; _global.s26text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s26text.prototype, null, 1); } #endinitclip } movieClip 1351 __Packages.scene26boss { #initclip if (!_global.scene26boss) { var v1 = function () { super(); }; _global.scene26boss = v1; _global.scene26boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v9 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v9.beginFill(16722944); v9.moveTo(0, 0); v9.lineTo(512, 0); v9.lineTo(512, 512); v9.lineTo(0, 512); v9.lineTo(0, 0); v9.endFill(); this.objs.push(v9); var v16 = _root.attachMovie('s26body', 's26body', _root.getNextHighestDepth()); this.objs.push(v16); this.regen = false; this.stubbles = []; this.stubble_count = 0; var v8 = [[0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 1, 0], [0, 1, 1, 1, 1, 0], [0, 0, 1, 1, 0, 0]]; var v6 = 160; var v7 = 160; var v5 = 0; while (v5 < 10) { var v4 = 0; while (v4 < 4) { if (v8[v4][v5] == 1) { var v3 = _root.attachMovie('s5stubble', 's5stubble' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.regen = this.regen; v3._x = v6 + v5 * 32; v3._y = v7 + v4 * 32; ++this.stubble_count; this.stubbles.push(v3); this.objs.push(v3); } ++v4; } ++v5; } var v14 = _root.attachMovie('s26text', 's26text', _root.getNextHighestDepth()); v14._x = 36; v14._y = 20; this.objs.push(v14); var v15 = _root.attachMovie('s26boobs', 's26boobs', _root.getNextHighestDepth()); v15._x = 44; v15._y = 284; this.objs.push(v15); this.collisions = []; var v13 = _root.attachMovie('s26collision', 'collision1', _root.getNextHighestDepth()); v13._x = 44; v13._y = 352; v13.gotoAndStop(1); v13._visible = false; this.collisions.push(v13); this.objs.push(v13); var v11 = _root.attachMovie('s26collision', 'collision2', _root.getNextHighestDepth()); v11._x = 104; v11._y = 312; v11.gotoAndStop(2); v11._visible = false; this.collisions.push(v11); this.objs.push(v11); var v12 = _root.attachMovie('s26collision', 'collision3', _root.getNextHighestDepth()); v12._x = 144; v12._y = 292; v12.gotoAndStop(3); v12._visible = false; this.collisions.push(v12); this.objs.push(v12); var v10 = _root.attachMovie('s26collision', 'collision4', _root.getNextHighestDepth()); v10._x = 292; v10._y = 292; v10.gotoAndStop(3); v10._visible = false; this.collisions.push(v10); this.objs.push(v10); this.razor = _root.attachMovie('s26razor', 's26razor', _root.getNextHighestDepth()); this.razor.boss = this; this.razor._x = 24; this.razor._y = 192; this.objs.push(this.razor); this.end_timer = 0; }; v2.onEnterFrame = function () { if (this.end_timer == 0) { if (this.stubble_count == 0) { this.razor.swapDepths(_root.getNextHighestDepth()); this.end_timer = 30; } } else { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene26boss.prototype, null, 1); } #endinitclip } movieClip 1352 __Packages.s27body { #initclip if (!_global.s27body) { var v1 = function () { super(); }; _global.s27body = v1; _global.s27body extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.bodyparts = []; this.part_chart = [[1, 1, 1, 0, 0], [1, 0, 1, 1, 0], [0, 0, 0, 0, 1]]; var v5 = 0; while (v5 < 5) { var v4 = 0; while (v4 < 3) { if (this.part_chart[v4][v5] == 1) { var v3 = _root.attachMovie('s27bodypart', 's27bodypart' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this.boss; v3.x_offset = v5 * 32; v3.y_offset = v4 * 32; v3._x = this._x + v3.x_offset; v3._y = this._y + v3.y_offset; if (v4 == 2) { this.rattle = v3; } this.bodyparts.push(v3); this.boss.objs.push(v3); } ++v4; } ++v5; } this.x_speed = 8; this.y_speed = 8; this.sfx_blocked = new Sound(); this.sfx_blocked.attachSound('hnnn.wav'); this.sfx_x = this._x; this.sfx_y = this._y; this.rattling = false; this.rattle_speed = 0; this.rattle_timer = 0; }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; if (Key.isDown(37)) { this.key_left = true; } if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(39)) { this.key_right = true; } if (Key.isDown(40)) { this.key_down = true; } if (this.rattle_timer < this.rattle_speed) { ++this.rattle_timer; } else { this.rattle_timer = 0; var v2 = 16; if (!this.rattling) { this.rattling = true; this.rattle.x_offset -= v2; } else { this.rattling = false; this.rattle.x_offset += v2; } this.rattle._x = this._x + this.rattle.x_offset; this.rattle.collision._x = this.rattle._x + 1; } if (this.key_left and !this.key_right) { this._x -= this.x_speed; this.checkCollision('left'); } if (!this.key_left and this.key_right) { this._x += this.x_speed; this.checkCollision('right'); } if (this.key_up and !this.key_down) { this._y -= this.y_speed; this.checkCollision('up'); } if (!this.key_up and this.key_down) { this._y += this.y_speed; this.checkCollision('down'); } }; v2.checkCollision = function (dir) { if (this._x < 0) { this._x = 0; } if (this._x > 352) { this._x = 352; } if (this._y < 0) { this._y = 0; } if (this._y > 416) { this._y = 416; } this.moveBodyparts(); var v2 = false; for (var v4 in this.bodyparts) { for (var v3 in this.boss.walls) { if (this.bodyparts[v4].collision.hitTest(this.boss.walls[v3])) { v2 = true; } } } if (v2) { switch (dir) { case 'up': this._y += this.y_speed; break; case 'down': this._y -= this.y_speed; break; case 'left': this._x += this.x_speed; break; case 'right': this._x -= this.x_speed; } this.moveBodyparts(); this.playSfx(); } }; v2.moveBodyparts = function () { for (var v2 in this.bodyparts) { this.bodyparts[v2]._x = this._x + this.bodyparts[v2].x_offset; this.bodyparts[v2]._y = this._y + this.bodyparts[v2].y_offset; this.bodyparts[v2].collision._x = this.bodyparts[v2]._x + 1; this.bodyparts[v2].collision._y = this.bodyparts[v2]._y + 1; } }; v2.playSfx = function () { if (this._x == this.sfx_x or this._y == this.sfx_y) { } else { this.sfx_x = this._x; this.sfx_y = this._y; this.sfx_blocked.start(); } }; ASSetPropFlags(_global.s27body.prototype, null, 1); } #endinitclip } movieClip 1353 __Packages.s27bodypart { #initclip if (!_global.s27bodypart) { var v1 = function () { super(); }; _global.s27bodypart = v1; _global.s27bodypart extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.collision = _root.attachMovie('s1collision', 's1collision' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.collision._x = this._x + 1; this.collision._y = this._y + 1; this.collision._visible = false; this.boss.objs.push(this.collision); }; v2.onEnterFrame = function () {}; ASSetPropFlags(_global.s27bodypart.prototype, null, 1); } #endinitclip } movieClip 1354 __Packages.s27text { #initclip if (!_global.s27text) { var v1 = function () { super(); }; _global.s27text = v1; _global.s27text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s27text.prototype, null, 1); } #endinitclip } movieClip 1355 __Packages.s27wall { #initclip if (!_global.s27wall) { var v1 = function () { super(); }; _global.s27wall = v1; _global.s27wall extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s27wall.prototype, null, 1); } #endinitclip } movieClip 1356 __Packages.scene27boss { #initclip if (!_global.scene27boss) { var v1 = function () { super(); }; _global.scene27boss = v1; _global.scene27boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v9 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v9.beginFill(4075938); v9.moveTo(0, 0); v9.lineTo(512, 0); v9.lineTo(512, 512); v9.lineTo(0, 512); v9.lineTo(0, 0); v9.endFill(); this.objs.push(v9); this.walls = []; var v7 = [[1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1]]; var v8 = 128; var v6 = 32; var v5 = 0; while (v5 < 16) { var v3 = 0; while (v3 < 3) { if (v7[v3][v5] == 1) { var v4 = _root.attachMovie('s27wall', 's27wall' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4._x = v5 * v6; v4._y = v8 + v3 * v6; this.objs.push(v4); this.walls.push(v4); } ++v3; } ++v5; } this.body = _root.attachMovie('s27body', 's27body', _root.getNextHighestDepth()); this.body._x = 160; this.body._y = 288; this.body.boss = this; this.objs.push(this.body); var v10 = _root.attachMovie('s27text', 's27text', _root.getNextHighestDepth()); v10._x = 68; v10._y = 408; this.objs.push(v10); this.end_timer = 100; this.mus_dododo = new Sound(); this.mus_dododo.attachSound('dodododoDOOO.wav'); this.mus_dododo.start(); }; v2.onEnterFrame = function () { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene27boss.prototype, null, 1); } #endinitclip } movieClip 1357 __Packages.s28burning { #initclip if (!_global.s28burning) { var v1 = function () { super(); }; _global.s28burning = v1; _global.s28burning extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 1; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; ++this.frame; if (this.frame > 3) { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s28burning.prototype, null, 1); } #endinitclip } movieClip 1358 __Packages.s28text { #initclip if (!_global.s28text) { var v1 = function () { super(); }; _global.s28text = v1; _global.s28text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s28text.prototype, null, 1); } #endinitclip } movieClip 1359 __Packages.scene28boss { #initclip if (!_global.scene28boss) { var v1 = function () { super(); }; _global.scene28boss = v1; _global.scene28boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16777215); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v4 = _root.attachMovie('s28burning', 's28burning', _root.getNextHighestDepth()); this.objs.push(v4); this.s28text = _root.attachMovie('s28text', 's28text', _root.getNextHighestDepth()); this.s28text._x = 28; this.s28text._y = 8; this.s28text.gotoAndStop(1); this.objs.push(this.s28text); this.timer = 0; this.sfx_grr = new Sound(); this.sfx_grr.attachSound('rrrrrr.wav'); this.mus_ominous = new Sound(); this.mus_ominous.attachSound('ominous.wav'); this.mus_ominous.start(); }; v2.onEnterFrame = function () { ++this.timer; if (this.timer == 80) { this.s28text.gotoAndStop(2); this.sfx_grr.start(); } if (this.timer == 220) { this.endScene(); } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene28boss.prototype, null, 1); } #endinitclip } movieClip 1360 __Packages.s29bg { #initclip if (!_global.s29bg) { var v1 = function () { super(); }; _global.s29bg = v1; _global.s29bg extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s29bg.prototype, null, 1); } #endinitclip } movieClip 1361 __Packages.s29checkout { #initclip if (!_global.s29checkout) { var v1 = function () { super(); }; _global.s29checkout = v1; _global.s29checkout extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s29checkout.prototype, null, 1); } #endinitclip } movieClip 1362 __Packages.s29collision { #initclip if (!_global.s29collision) { var v1 = function () { super(); }; _global.s29collision = v1; _global.s29collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s29collision.prototype, null, 1); } #endinitclip } movieClip 1363 __Packages.s29cursor { #initclip if (!_global.s29cursor) { var v1 = function () { super(); }; _global.s29cursor = v1; _global.s29cursor extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); this.done = false; this.key_clear = false; this.sfx_click = new Sound(); this.sfx_click.attachSound('click.wav'); }; v2.onEnterFrame = function () { if (!this.done) { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v2 = 0; if (Key.isDown(37)) { this.key_left = true; ++v2; } if (Key.isDown(38)) { this.key_up = true; ++v2; } if (Key.isDown(39)) { this.key_right = true; ++v2; } if (Key.isDown(40)) { this.key_down = true; ++v2; } if (v2 == 0) { this.key_clear = true; } var v5 = false; var v6 = false; var v4 = 8; if (this.key_left and !this.key_right and this.key_clear) { this._x -= v4; v5 = true; } if (this.key_right and !this.key_left and this.key_clear) { this._x += v4; v5 = true; } if (this.key_up and !this.key_down and this.key_clear) { this._y -= v4; v6 = true; } if (this.key_down and !this.key_up and this.key_clear) { this._y += v4; v6 = true; } var v7 = Math.ceil(Math.random() * 2); var v3 = 4; if (v5) { switch (v7) { case 1: this._y -= v3; break; case 2: this._y += v3; } } if (v6) { switch (v7) { case 1: this._x -= v3; break; case 2: this._x += v3; } } if (this._x < 64) { this._x = 64; } if (this._x > 424) { this._x = 424; } if (this._y < 64) { this._y = 64; } if (this._y > 412) { this._y = 412; } if (this.hitTest(this.boss.collision)) { this.sfx_click.start(); this.done = true; this.gotoAndStop(2); this.boss.end_timer = this.boss.end_speed; } } }; ASSetPropFlags(_global.s29cursor.prototype, null, 1); } #endinitclip } movieClip 1364 __Packages.s29frame { #initclip if (!_global.s29frame) { var v1 = function () { super(); }; _global.s29frame = v1; _global.s29frame extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s29frame.prototype, null, 1); } #endinitclip } movieClip 1365 __Packages.scene29boss { #initclip if (!_global.scene29boss) { var v1 = function () { super(); }; _global.scene29boss = v1; _global.scene29boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(14481528); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v7 = _root.attachMovie('s29bg', 's29bg', _root.getNextHighestDepth()); this.objs.push(v7); var v6 = _root.attachMovie('s29checkout', 's29checkout', _root.getNextHighestDepth()); v6._x = 284; v6._y = 344; this.objs.push(v6); this.collision = _root.attachMovie('s29collision', 's29collision', _root.getNextHighestDepth()); this.collision._x = 300; this.collision._y = 384; this.collision._visible = false; this.objs.push(this.collision); var v4 = _root.attachMovie('s29cursor', 's29cursor', _root.getNextHighestDepth()); v4.boss = this; v4._x = 76; v4._y = 76; this.objs.push(v4); var v5 = _root.attachMovie('s29frame', 's29frame', _root.getNextHighestDepth()); v5._x = 32; v5._y = 32; this.objs.push(v5); this.end_speed = 30; this.end_timer = 0; this.mus_knockna = new Sound(); this.mus_knockna.attachSound('knocknaknockna.wav'); this.mus_knockna.start(); }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene29boss.prototype, null, 1); } #endinitclip } movieClip 1366 __Packages.s30boobs { #initclip if (!_global.s30boobs) { var v1 = function () { super(); }; _global.s30boobs = v1; _global.s30boobs extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s30boobs.prototype, null, 1); } #endinitclip } movieClip 1367 __Packages.s30mouth { #initclip if (!_global.s30mouth) { var v1 = function () { super(); }; _global.s30mouth = v1; _global.s30mouth extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s30mouth.prototype, null, 1); } #endinitclip } movieClip 1368 __Packages.s30razor { #initclip if (!_global.s30razor) { var v1 = function () { super(); }; _global.s30razor = v1; _global.s30razor extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.dir = 'right'; this.gotoAndStop(2); this.collision = _root.attachMovie('s5collision', 's5collision', _root.getNextHighestDepth()); this.collision.gotoAndStop(2); this.collision._x = this._x + 48; this.collision._y = this._y; this.collision._visible = false; this.boss.objs.push(this.collision); this.key_clear = false; this.sfx_shave = new Sound(); this.sfx_shave.attachSound('click.wav'); this.sfx_bounce = new Sound(); this.sfx_bounce.attachSound('wow.wav'); }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v4 = 0; if (Key.isDown(37)) { this.key_left = true; ++v4; } if (Key.isDown(38)) { this.key_up = true; ++v4; } if (Key.isDown(39)) { this.key_right = true; ++v4; } if (Key.isDown(40)) { this.key_down = true; ++v4; } if (v4 == 0) { this.key_clear = true; } if (v4 == 1 and this.key_clear) { if (this.key_left) { this.dir = 'left'; } if (this.key_up) { this.dir = 'up'; } if (this.key_right) { this.dir = 'right'; } if (this.key_down) { this.dir = 'down'; } } this.updateCollision(); var v6 = 16; switch (this.dir) { case 'up': this._y -= v6; this.gotoAndStop(1); break; case 'right': this._x += v6; this.gotoAndStop(2); break; case 'down': this._y += v6; this.gotoAndStop(3); break; case 'left': this._x -= v6; this.gotoAndStop(4); } this.updateCollision(); if (this._x < 0) { this._x = 0; this.dir = 'right'; } if (this._x > 448) { this._x = 448; this.dir = 'left'; } if (this._y < 0) { this._y = 0; this.dir = 'down'; } if (this._y > 448) { this._y = 448; this.dir = 'up'; } this.updateCollision(); var v3 = false; for (var v5 in this.boss.collisions) { if (this.collision.hitTest(this.boss.collisions[v5])) { v3 = true; this.sfx_bounce.start(); } } if (v3) { switch (this.dir) { case 'right': this.dir = 'left'; break; case 'left': this.dir = 'right'; break; case 'up': this.dir = 'down'; break; case 'down': this.dir = 'up'; } this.updateCollision(); this.key_clear = false; } var v2 = false; for (v5 in this.boss.stubbles) { if (this.collision.hitTest(this.boss.stubbles[v5]) and this.boss.stubbles[v5]._visible) { v2 = true; this.boss.stubbles[v5].removeMovieClip(); } } if (v2) { this.sfx_shave.start(); } }; v2.updateCollision = function () { this.collision._x = this._x; this.collision._y = this._y; if (this.dir == 'up' or this.dir == 'down') { this.collision.gotoAndStop(1); ++this.collision._x; } else { if (this.dir == 'left' or this.dir == 'right') { this.collision.gotoAndStop(2); ++this.collision._y; } } if (this.dir == 'down') { this.collision._y += 48; } if (this.dir == 'right') { this.collision._x += 48; } }; ASSetPropFlags(_global.s30razor.prototype, null, 1); } #endinitclip } movieClip 1369 __Packages.s30stubble { #initclip if (!_global.s30stubble) { var v1 = function () { super(); }; _global.s30stubble = v1; _global.s30stubble extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s30stubble.prototype, null, 1); } #endinitclip } movieClip 1370 __Packages.s30text { #initclip if (!_global.s30text) { var v1 = function () { super(); }; _global.s30text = v1; _global.s30text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s30text.prototype, null, 1); } #endinitclip } movieClip 1371 __Packages.s30twinkle { #initclip if (!_global.s30twinkle) { var v1 = function () { super(); }; _global.s30twinkle = v1; _global.s30twinkle extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 0; this.frame_timer = 0; this.sparkle_count = 4; this._x = 168; this._y = (26 + Math.floor(Math.random() * 34)) * 4; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { ++this.frame; if (this.frame > 9) { if (this.sparkle_count == 0) { this.removeMovieClip(); } else { this.frame = 1; this._x += (8 + Math.floor(Math.random() * 2)) * 4; this._y = (26 + Math.floor(Math.random() * 34)) * 4; --this.sparkle_count; } } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s30twinkle.prototype, null, 1); } #endinitclip } movieClip 1372 __Packages.scene30boss { #initclip if (!_global.scene30boss) { var v1 = function () { super(); }; _global.scene30boss = v1; _global.scene30boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; this.objs1 = []; this.stubbles = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(4075938); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v10 = _root.attachMovie('s30body', 's30body', _root.getNextHighestDepth()); this.objs1.push(v10); var v8 = _root.attachMovie('s30boobs', 's30boobs', _root.getNextHighestDepth()); v8._x = 44; v8._y = 284; this.objs1.push(v8); this.collisions = []; var v7 = _root.attachMovie('s26collision', 'collision1', _root.getNextHighestDepth()); v7._x = 44; v7._y = 352; v7.gotoAndStop(1); v7._visible = false; this.collisions.push(v7); this.objs1.push(v7); var v5 = _root.attachMovie('s26collision', 'collision2', _root.getNextHighestDepth()); v5._x = 104; v5._y = 312; v5.gotoAndStop(2); v5._visible = false; this.collisions.push(v5); this.objs1.push(v5); var v6 = _root.attachMovie('s26collision', 'collision3', _root.getNextHighestDepth()); v6._x = 144; v6._y = 292; v6.gotoAndStop(3); v6._visible = false; this.collisions.push(v6); this.objs1.push(v6); var v4 = _root.attachMovie('s26collision', 'collision4', _root.getNextHighestDepth()); v4._x = 292; v4._y = 292; v4.gotoAndStop(3); v4._visible = false; this.collisions.push(v4); this.objs1.push(v4); this.s30text = _root.attachMovie('s30text', 's30text', _root.getNextHighestDepth()); this.s30text.gotoAndStop(1); this.s30text._x = 52; this.s30text._y = 44; this.objs.push(this.s30text); this.razor = _root.attachMovie('s30razor', 's30razor', _root.getNextHighestDepth()); this.razor.boss = this; this.razor._x = 24; this.razor._y = 192; this.objs.push(this.razor); var v9 = _root.attachMovie('s30twinkle', 's30twinkle', _root.getNextHighestDepth()); this.objs1.push(v9); this.timer = 0; }; v2.onEnterFrame = function () { ++this.timer; if (this.timer == 80) { this.s30text.gotoAndStop(2); for (var v3 in this.objs1) { this.objs1[v3].removeMovieClip(); } this.makeStubble(); var v4 = _root.attachMovie('s30mouth', 's30mouth', _root.getNextHighestDepth()); v4._x = 124; v4._y = 372; this.objs.push(v4); this.razor.swapDepths(_root.getNextHighestDepth()); } if (this.timer == 180) { this.endScene(); } }; v2.makeStubble = function () { var v8 = [[0, 0, 1, 1, 1, 1, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 0, 0, 0, 0, 0, 0, 1, 1]]; var v6 = 96; var v7 = 224; var v5 = 0; while (v5 < 10) { var v4 = 0; while (v4 < 3) { if (v8[v4][v5] == 1) { var v3 = _root.attachMovie('s30stubble', 's30stubble' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3._x = v6 + v5 * 32; v3._y = v7 + v4 * 32; this.stubbles.push(v3); this.objs.push(v3); } ++v4; } ++v5; } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene30boss.prototype, null, 1); } #endinitclip } movieClip 1373 __Packages.s31present { #initclip if (!_global.s31present) { var v1 = function () { super(); }; _global.s31present = v1; _global.s31present extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.key_clear_hori = false; this.key_clear_vert = false; this.start_x = this._x; this.start_y = this._y; this.durability = 10; this.gotoAndStop(1); this.revealed = false; this.sfx_jostle = new Sound(); this.sfx_jostle.attachSound('hnnn.wav'); }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v4 = 0; if (Key.isDown(37)) { this.key_left = true; ++v4; } if (Key.isDown(38)) { this.key_up = true; ++v4; } if (Key.isDown(39)) { this.key_right = true; ++v4; } if (Key.isDown(40)) { this.key_down = true; ++v4; } if (!this.key_left and !this.key_right) { this.key_clear_hori = true; } if (!this.key_up and !this.key_down) { this.key_clear_vert = true; } if (this._x < this.start_x) { this._x += 4; } if (this._x > this.start_x) { this._x -= 4; } if (this._y < this.start_y) { this._y += 4; } if (this._y > this.start_y) { this._y -= 4; } if (!this.revealed) { var v3 = false; var v2 = false; var v5 = 16; if (this.key_left and !this.key_right and this.key_clear_hori) { this._x = this.start_x - v5; v3 = true; } if (this.key_right and !this.key_left and this.key_clear_hori) { this._x = this.start_x + v5; v3 = true; } if (this.key_up and !this.key_down and this.key_clear_vert) { this._y = this.start_y - v5; v2 = true; } if (this.key_down and !this.key_up and this.key_clear_vert) { this._y = this.start_y + v5; v2 = true; } if (v2 or v3) { this.sfx_jostle.start(); --this.durability; if (v3) { this.key_clear_hori = false; } if (v2) { this.key_clear_vert = false; } } } if (this.durability < 9) { this.gotoAndStop(2); } if (this.durability < 6) { this.gotoAndStop(3); } if (this.durability < 3) { this.gotoAndStop(4); } if (this.durability == 0) { this.gotoAndStop(5); if (!this.revealed) { this.revealed = true; this.boss.end_timer = this.boss.end_speed; } } }; ASSetPropFlags(_global.s31present.prototype, null, 1); } #endinitclip } movieClip 1374 __Packages.s31text { #initclip if (!_global.s31text) { var v1 = function () { super(); }; _global.s31text = v1; _global.s31text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s31text.prototype, null, 1); } #endinitclip } movieClip 1375 __Packages.scene31boss { #initclip if (!_global.scene31boss) { var v1 = function () { super(); }; _global.scene31boss = v1; _global.scene31boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(5635872); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.s31text = _root.attachMovie('s31text', 's31text', _root.getNextHighestDepth()); this.s31text.gotoAndStop(1); this.s31text._visible = false; this.objs.push(this.s31text); var v4 = _root.attachMovie('s31present', 's31present', _root.getNextHighestDepth()); v4.boss = this; v4._x = 64; v4._y = 64; this.objs.push(v4); this.end_speed = 90; this.end_timer = 0; this.sfx_huh = new Sound(); this.sfx_huh.attachSound('huh.wav'); this.sfx_aha = new Sound(); this.sfx_aha.attachSound('aha.wav'); }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 75) { this.s31text._visible = true; this.sfx_huh.start(); } if (this.end_timer == 50) { this.s31text.gotoAndStop(2); } if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene31boss.prototype, null, 1); } #endinitclip } movieClip 1376 __Packages.s32path { #initclip if (!_global.s32path) { var v1 = function () { super(); }; _global.s32path = v1; _global.s32path extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s32path.prototype, null, 1); } #endinitclip } movieClip 1377 __Packages.s32reflection { #initclip if (!_global.s32reflection) { var v1 = function () { super(); }; _global.s32reflection = v1; _global.s32reflection extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.spy = this.boss.spy; this.facing = 'right'; if (this.num == 2) { this.frame = 3; this.gotoAndStop(this.frame); this.facing = 'right'; this.opening = true; this.frame_speed = 1; this.frame_timer = 0; } if (this.num == 3) { this.gotoAndStop(11); } if (this.num == 4) { this.gotoAndStop(12); } this.sfx_yay = new Sound(); this.sfx_yay.attachSound('hmmmmmmm.wav'); }; v2.onEnterFrame = function () { if (this.num == 1) { this.gotoAndStop(this.spy.frame); if (this.spy._x < 160) { this._x = this.spy._x; this._y = 128 - (this.spy._y - 192); } } if (this.num == 2) { if (this.spy._y > 316) { if (this.spy._x == 160) { this.facing = 'right'; } if (this.spy._x == 288) { this.facing = 'left'; } this._x = this.spy._x; } if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.opening) { ++this.frame; if (this.frame > 4) { this.frame = 3; this.opening = false; } } else { --this.frame; if (this.frame < 1) { this.frame = 2; this.opening = true; } } var v2 = 0; if (this.facing == 'right') { v2 = 4; } this.gotoAndStop(2 + this.frame + v2); } } if (this.num == 3) { if (this.spy._x > 348) { this._x = this.spy._x; } } if (this.num == 4) { if (this.spy._y < 128) { this._x = this.spy._x; if (this._x == 160 and !this.boss.done) { this.boss.done = true; this.boss.end_timer = this.boss.end_speed; this.sfx_yay.start(); } } } }; ASSetPropFlags(_global.s32reflection.prototype, null, 1); } #endinitclip } movieClip 1378 __Packages.s32spy { #initclip if (!_global.s32spy) { var v1 = function () { super(); }; _global.s32spy = v1; _global.s32spy extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 10; this.anim_timer = 0; this.key_clear = false; this.dest_x = this._x; this.dest_y = this._y; this.caught = false; this.blink_speed = 5; this.blink_timer = 0; this.map = [[[false, false, false, false], [false, false, false, false], [false, false, true, true], [false, false, false, false]], [[false, true, true, false], [false, false, true, true], [true, true, true, false], [false, false, false, true]], [[true, false, false, false], [true, true, false, false], [true, false, false, true], [false, false, false, false]]]; this.sfx_step = new Sound(); this.sfx_step.attachSound('zoop.wav'); }; v2.onEnterFrame = function () { var v2 = 16; if (!this.caught) { if (this.dest_x > this._x) { this._x += v2; } else { if (this.dest_x < this._x) { this._x -= v2; } else { if (this.dest_y > this._y) { this._y += v2; } else { if (this.dest_y < this._y) { this._y -= v2; } else { this.getInput(); } } } } } if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } if (this.caught) { if (this.blink_timer < this.blink_speed) { ++this.blink_timer; } else { this.blink_timer = 0; if (this._visible) { this._visible = false; } else { this._visible = true; } } } }; v2.getInput = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v2 = 0; if (Key.isDown(37)) { this.key_left = true; ++v2; } if (Key.isDown(38)) { this.key_up = true; ++v2; } if (Key.isDown(39)) { this.key_right = true; ++v2; } if (Key.isDown(40)) { this.key_down = true; ++v2; } if (v2 == 0) { this.key_clear = true; } var v3 = 128; if (v2 == 1 and this.key_clear) { this.key_clear = false; if (this.key_up and this.moveCheck(0)) { this.dest_y -= v3; --this.map_y; this.sfx_step.start(); } if (this.key_right and this.moveCheck(1)) { this.dest_x += v3; ++this.map_x; this.sfx_step.start(); } if (this.key_down and this.moveCheck(2)) { this.dest_y += v3; ++this.map_y; this.sfx_step.start(); } if (this.key_left and this.moveCheck(3)) { this.dest_x -= v3; --this.map_x; this.sfx_step.start(); } } }; v2.moveCheck = function (dir) { if (this.map[this.map_y][this.map_x][dir]) { return true; } else { return false; } }; ASSetPropFlags(_global.s32spy.prototype, null, 1); } #endinitclip } movieClip 1379 __Packages.scene32boss { #initclip if (!_global.scene32boss) { var v1 = function () { super(); }; _global.scene32boss = v1; _global.scene32boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(65535); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v4 = _root.attachMovie('s32reflection', 's32reflection' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4.boss = this; v4.num = 1; v4._x = 36; v4._y = 64; this.objs.push(v4); v4 = _root.attachMovie('s32reflection', 's32reflection' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4.boss = this; v4.num = 2; v4._x = 160; v4._y = 256; this.objs.push(v4); v4 = _root.attachMovie('s32reflection', 's32reflection' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4.boss = this; v4.num = 3; v4._x = 352; v4._y = 64; this.objs.push(v4); v4 = _root.attachMovie('s32reflection', 's32reflection' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v4.boss = this; v4.num = 4; v4._x = 288; this.objs.push(v4); var v5 = _root.attachMovie('s32path', 's32path', _root.getNextHighestDepth()); this.objs.push(v5); this.spy = _root.attachMovie('s32spy', 's32spy', _root.getNextHighestDepth()); this.spy.boss = this; this.spy._x = 32; this.spy._y = 320; this.spy.map_x = 0; this.spy.map_y = 2; this.objs.push(this.spy); this.end_speed = 30; this.end_timer = 0; this.done = false; }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene32boss.prototype, null, 1); } #endinitclip } movieClip 1380 __Packages.s33bubble { #initclip if (!_global.s33bubble) { var v1 = function () { super(); }; _global.s33bubble = v1; _global.s33bubble extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); this.going_left = true; this.sfx_reflect = new Sound(); this.sfx_reflect.attachSound('ting.wav'); }; v2.onEnterFrame = function () { if (this.going_left) { if (this._x == 88 or this._x == 76 and this.hitTest(this.boss.shield)) { this.sfx_reflect.start(); this.gotoAndStop(2); this.going_left = false; } else { this._x -= 16; if (this._x <= -56) { this.removeMovieClip; } this._y += this.y_speed; } } else { this._x += 16; if (this._x >= 512) { this.removeMovieClip(); } this._y += this.y_speed; } }; ASSetPropFlags(_global.s33bubble.prototype, null, 1); } #endinitclip } movieClip 1381 __Packages.s33mouth { #initclip if (!_global.s33mouth) { var v1 = function () { super(); }; _global.s33mouth = v1; _global.s33mouth extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._y = Math.ceil(Math.random() * 444); this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 2; this.anim_timer = 0; this.blink_time = 10; this.blink_timer = 0; this.sfx_hit = new Sound(); this.sfx_hit.attachSound('huh.wav'); }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; ++this.frame; if (this.frame > 4) { this.frame = 1; } this.gotoAndStop(this.frame); } var v3 = 4; if (this.faster) { v3 = 8; } if (this.going_up) { this._y -= v3; if (this._y <= 0) { this._y = 0; this.going_up = false; } } else { this._y += v3; if (this._y >= 444) { this._y = 444; this.going_up = true; } } for (var v2 in this.boss.bubblies) { if (this.hitTest(this.boss.bubblies[v2]) and !this.boss.bubblies[v2].going_left) { this.sfx_hit.start(); this.boss.bubblies[v2].removeMovieClip(); this.blink_timer = this.blink_time; } } if (this.blink_timer > 0) { --this.blink_timer; if (this._visible) { this._visible = false; } else { this._visible = true; } } else { this._visible = true; } }; ASSetPropFlags(_global.s33mouth.prototype, null, 1); } #endinitclip } movieClip 1382 __Packages.s33shield { #initclip if (!_global.s33shield) { var v1 = function () { super(); }; _global.s33shield = v1; _global.s33shield extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.blink_time = 10; this.blink_timer = 0; }; v2.onEnterFrame = function () { this.key_up = false; this.key_down = false; if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(40)) { this.key_down = true; } var v2 = 16; if (this.key_up and !this.key_down) { this._y -= v2; } if (!this.key_up and this.key_down) { this._y += v2; } if (this._y < 0) { this._y = 0; } if (this._y > 396) { this._y = 396; } if (this.blink_timer > 0) { --this.blink_timer; if (this._visible) { this._visible = false; } else { this._visible = true; } } else { this._visible = true; } }; ASSetPropFlags(_global.s33shield.prototype, null, 1); } #endinitclip } movieClip 1383 __Packages.s33text { #initclip if (!_global.s33text) { var v1 = function () { super(); }; _global.s33text = v1; _global.s33text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s33text.prototype, null, 1); } #endinitclip } movieClip 1384 __Packages.scene33boss { #initclip if (!_global.scene33boss) { var v1 = function () { super(); }; _global.scene33boss = v1; _global.scene33boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; this.bubblies = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(11665152); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); var v4 = _root.attachMovie('s33text', 's33text', _root.getNextHighestDepth()); v4.gotoAndStop(1); v4._x = 24; v4._y = 12; this.objs.push(v4); this.shield = _root.attachMovie('s33shield', 's33shield', _root.getNextHighestDepth()); this.shield.boss = this; this.shield._x = 36; this.shield._y = 200; this.objs.push(this.shield); this.mouth1 = _root.attachMovie('s33mouth', 'mouth1', _root.getNextHighestDepth()); this.mouth1.boss = this; this.mouth1._x = 368; this.mouth1.going_up = true; this.mouth1.faster = false; this.objs.push(this.mouth1); this.mouth2 = _root.attachMovie('s33mouth', 'mouth2', _root.getNextHighestDepth()); this.mouth2.boss = this; this.mouth2._x = 428; this.mouth2.going_up = false; this.mouth2.faster = true; this.objs.push(this.mouth2); this.timer = 0; this.sfx_shoot = new Sound(); this.sfx_shoot.attachSound('phbt.wav'); }; v2.onEnterFrame = function () { ++this.timer; switch (this.timer) { case 30: this.fireBubble(1); break; case 60: this.fireBubble(2); break; case 90: this.fireBubble(1); break; case 120: this.fireBubble(2); break; case 150: this.fireBubble(1); break; case 210: this.endScene(); } }; v2.fireBubble = function (mouth_number) { this.sfx_shoot.start(); var v3 = _root.attachMovie('s33bubble', 's33bubble' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); var v4 = this.mouth1; if (mouth_number == 2) { v4 = this.mouth2; } v3.boss = this; v3._x = v4._x - 52; v3._y = v4._y + 20; if (v4.going_up) { v3.y_speed = -4; } else { v3.y_speed = 4; } this.objs.push(v3); this.bubblies.push(v3); }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene33boss.prototype, null, 1); } #endinitclip } movieClip 1385 __Packages.s34ball { #initclip if (!_global.s34ball) { var v1 = function () { super(); }; _global.s34ball = v1; _global.s34ball extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.start_x = this._x; this.start_y = this._y; this.flash_speed = 25; this.flash_time = 0; this.anim_speed = 5; this.anim_timer = 0; this.pickDirection(); this.sfx_paddle = new Sound(); this.sfx_paddle.attachSound('wugga.wav'); this.sfx_block = new Sound(); this.sfx_block.attachSound('boom.wav'); this.sfx_die = new Sound(); this.sfx_die.attachSound('dnnt.wav'); }; v2.pickDirection = function () { if (Math.ceil(Math.random() * 2) == 2) { this.x_speed = 4; } else { this.x_speed = -4; } this.y_speed = -8; }; v2.onEnterFrame = function () { if (this.flash_time > 0) { --this.flash_time; if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this._visible) { this._visible = false; } else { this._visible = true; } } if (this.flash_time == 0) { this._visible = true; this.pickDirection(); } } else { var v2 = false; var v3 = false; this._x += this.x_speed; v2 = this.checkCollision(); if (this._x < 0) { this._x = 0; v2 = true; } if (this._x > 480) { this._x = 480; v2 = true; } if (v2) { this.x_speed = -this.x_speed; } this._y += this.y_speed; v3 = this.checkCollision(); if (v3) { this.sfx_block.start(); } if (this._y == 416 and this.hitTest(this.boss.paddle)) { this.hitPaddle(); v3 = true; } if (v3) { this.y_speed = -this.y_speed; } if (this._y >= 512) { this.sfx_die.start(); this._x = this.start_x; this._y = this.start_y; this.flash_time = this.flash_speed; } } }; v2.checkCollision = function () { var v3 = false; for (var v4 in this.boss.walls) { if (this.hitTest(this.boss.walls[v4])) { var v2 = this.boss.walls[v4]; this.eliminateWall(v2.wall_y - 1, v2.wall_x - 1); this.eliminateWall(v2.wall_y - 1, v2.wall_x); this.eliminateWall(v2.wall_y - 1, v2.wall_x + 1); this.eliminateWall(v2.wall_y, v2.wall_x - 1); this.eliminateWall(v2.wall_y, v2.wall_x + 1); this.boss.wall_chart[v2.wall_y][v2.wall_x] = 0; v2.removeMovieClip(); v3 = true; } } return v3; }; v2.eliminateWall = function (wall_y, wall_x) { for (var v4 in this.boss.walls) { if (this.boss.walls[v4].wall_y == wall_y and this.boss.walls[v4].wall_x == wall_x) { this.boss.wall_chart[wall_y][wall_x] = 0; this.boss.walls[v4].removeMovieClip(); break; } } }; v2.hitPaddle = function () { this.sfx_paddle.start(); var v2 = 0; switch (this.x_speed) { case -8: v2 = 1; break; case -4: v2 = 2; break; case 4: v2 = 3; break; case 8: v2 = 4; } var v3 = this._x + 16; if (v3 <= this.boss.paddle._x + 32) { --v2; } else { if (v3 >= this.boss.paddle._x + 96) { ++v2; } } if (v2 < 1) { v2 = 1; } if (v2 > 4) { v2 = 4; } switch (v2) { case 1: this.x_speed = -8; this.y_speed = 4; break; case 2: this.x_speed = -4; this.y_speed = 8; break; case 3: this.x_speed = 4; this.y_speed = 8; break; case 4: this.x_speed = 8; this.y_speed = 4; } }; ASSetPropFlags(_global.s34ball.prototype, null, 1); } #endinitclip } movieClip 1386 __Packages.s34paddle { #initclip if (!_global.s34paddle) { var v1 = function () { super(); }; _global.s34paddle = v1; _global.s34paddle extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () {}; v2.onEnterFrame = function () { this.key_left = false; this.key_right = false; if (Key.isDown(37)) { this.key_left = true; } if (Key.isDown(39)) { this.key_right = true; } var v2 = 16; if (this.key_left and !this.key_right) { this._x -= v2; } if (this.key_right and !this.key_left) { this._x += v2; } if (this._x < 0) { this._x = 0; } if (this._x > 384) { this._x = 384; } }; ASSetPropFlags(_global.s34paddle.prototype, null, 1); } #endinitclip } movieClip 1387 __Packages.s34wall { #initclip if (!_global.s34wall) { var v1 = function () { super(); }; _global.s34wall = v1; _global.s34wall extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s34wall.prototype, null, 1); } #endinitclip } movieClip 1388 __Packages.scene34boss { #initclip if (!_global.scene34boss) { var v1 = function () { super(); }; _global.scene34boss = v1; _global.scene34boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v8 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v8.beginFill(16529408); v8.moveTo(0, 0); v8.lineTo(512, 0); v8.lineTo(512, 512); v8.lineTo(0, 512); v8.lineTo(0, 0); v8.endFill(); this.objs.push(v8); this.walls = []; this.wall_chart = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; var v7 = 128; var v6 = 32; var v5 = 0; while (v5 < 16) { var v4 = 0; while (v4 < 3) { if (this.wall_chart[v4][v5] == 1) { var v3 = _root.attachMovie('s34wall', 's34wall' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3.wall_x = v5; v3.wall_y = v4; v3._x = v5 * v6; v3._y = v7 + v4 * v6; this.objs.push(v3); this.walls.push(v3); } ++v4; } ++v5; } this.paddle = _root.attachMovie('s34paddle', 's34paddle', _root.getNextHighestDepth()); this.paddle._x = 192; this.paddle._y = 448; this.objs.push(this.paddle); this.end_speed = 30; this.end_timer = 0; var v9 = _root.attachMovie('s34ball', 's34ball', _root.getNextHighestDepth()); v9.boss = this; v9._x = 240; v9._y = 416; this.objs.push(v9); this.done = false; }; v2.onEnterFrame = function () { var v2 = 0; while (v2 < 16) { if (this.wall_chart[0][v2] == 0 and this.wall_chart[1][v2] == 0 and this.wall_chart[2][v2] == 0 and !this.done) { this.done = true; this.end_timer = this.end_speed; } ++v2; } if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.wall_chart = this.wall_chart; this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene34boss.prototype, null, 1); } #endinitclip } movieClip 1389 __Packages.s35collision { #initclip if (!_global.s35collision) { var v1 = function () { super(); }; _global.s35collision = v1; _global.s35collision extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s35collision.prototype, null, 1); } #endinitclip } movieClip 1390 __Packages.s35spike { #initclip if (!_global.s35spike) { var v1 = function () { super(); }; _global.s35spike = v1; _global.s35spike extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(this.frame); this.frame_speed = 10; this.frame_timer = 0; this.x_speed = 0; this.y_speed = 0; this.dislodged = false; }; v2.bumpOff = function () { this.x_speed = (Math.floor(Math.random() * 8) - 4) * 4; this.y_speed = -16; this.dislodged = true; }; v2.onEnterFrame = function () { if (this.dislodged) { this._x += this.x_speed; this._y += this.y_speed; this.y_speed += 4; if (this._y >= 512) { this.removeMovieClip(); } } if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s35spike.prototype, null, 1); } #endinitclip } movieClip 1391 __Packages.s35text { #initclip if (!_global.s35text) { var v1 = function () { super(); }; _global.s35text = v1; _global.s35text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s35text.prototype, null, 1); } #endinitclip } movieClip 1392 __Packages.s35tits { #initclip if (!_global.s35tits) { var v1 = function () { super(); }; _global.s35tits = v1; _global.s35tits extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.collisions = []; this.collision1 = _root.attachMovie('s35collision', 's35collision1', _root.getNextHighestDepth()); this.collision1._visible = false; this.collision1.gotoAndStop(1); this.collisions.push(this.collision1); this.boss.objs.push(this.collision1); this.collision2 = _root.attachMovie('s35collision', 's35collision2', _root.getNextHighestDepth()); this.collision2._visible = false; this.collision2.gotoAndStop(2); this.collisions.push(this.collision2); this.boss.objs.push(this.collision2); this.collision3 = _root.attachMovie('s35collision', 's35collision3', _root.getNextHighestDepth()); this.collision3._visible = false; this.collision3.gotoAndStop(3); this.collisions.push(this.collision3); this.boss.objs.push(this.collision3); this.collision4 = _root.attachMovie('s35collision', 's35collision4', _root.getNextHighestDepth()); this.collision4._visible = false; this.collision4.gotoAndStop(4); this.collisions.push(this.collision4); this.boss.objs.push(this.collision4); this.updateCollision(); this.rise_speed = 1; this.rise_timer = 0; this.x_speed = 0; this.real_x = this._x; this.gotoAndStop(1); this.growing = true; this.timer = 0; this.text_timer = 0; this.text_speed = 30; this.sfx_grow = new Sound(); this.sfx_grow.attachSound('buhbuhbuh.wav'); this.sfx_knock = new Sound(); this.sfx_knock.attachSound('ting.wav'); }; v2.onEnterFrame = function () { ++this.timer; var v3 = 10; switch (this.timer) { case v3: this.gotoAndStop(2); this.sfx_grow.start(); break; case v3 + 2: this.gotoAndStop(1); break; case v3 + 4: this.gotoAndStop(2); break; case v3 + 6: this.gotoAndStop(1); break; case v3 + 8: this.gotoAndStop(2); break; case v3 + 10: this.gotoAndStop(3); break; case v3 + 12: this.gotoAndStop(2); break; case v3 + 14: this.gotoAndStop(3); break; case v3 + 16: this.gotoAndStop(2); break; case v3 + 18: this.gotoAndStop(3); break; case v3 + 20: this.gotoAndStop(4); break; case v3 + 22: this.gotoAndStop(3); break; case v3 + 24: this.gotoAndStop(4); break; case v3 + 26: this.gotoAndStop(3); break; case v3 + 28: this.gotoAndStop(4); break; case v3 + 40: this.growing = false; break; case v3 + 50: this.boss.s35text._visible = true; } if (!this.growing) { if (this.rise_timer < this.rise_speed) { ++this.rise_timer; } else { this.rise_timer = 0; this._y -= 4; } this.key_left = false; this.key_right = false; if (Key.isDown(37)) { this.key_left = true; } if (Key.isDown(39)) { this.key_right = true; } if (this.key_left and !this.key_right) { --this.x_speed; } else { if (this.key_right and !this.key_left) { ++this.x_speed; } else { if (this.x_speed < 0) { ++this.x_speed; } if (this.x_speed > 0) { --this.x_speed; } } } var v5 = 8; if (this.x_speed < -v5) { this.x_speed = -v5; } if (this.x_speed > v5) { this.x_speed = v5; } this.real_x += this.x_speed; if (this.real_x <= -80) { this.real_x = -80; this.x_speed = 0; } if (this.real_x >= 60) { this.real_x = 60; this.x_speed = 0; } if (this.real_x % 4) { this._x = this.real_x; } else { if (this.real_x - 1) { this._x = this.real_x - 1; } else { if (this.real_x - 2) { this._x = this.real_x - 2; } else { if (this.real_x - 3) { this._x = this.real_x - 3; } } } } if (this._y <= -160) { this.boss.endScene(); } } if (this.text_timer > 0) { --this.text_timer; if (this.text_timer == 0) { this.boss.s35text.gotoAndStop(2); } } this.updateCollision(); for (var v6 in this.boss.spikes) { if (!this.boss.spikes[v6].dislodged) { var v2 = false; for (var v4 in this.collisions) { if (!v2 and this.collisions[v4].hitTest(this.boss.spikes[v6])) { v2 = true; this.boss.spikes[v6].bumpOff(); if (this.text_timer == 0) { this.text_timer = this.text_speed; } } } if (v2) { this.sfx_knock.start(); } } } }; v2.updateCollision = function () { this.collision1._x = this._x + 112; this.collision1._y = this._y + 20; this.collision2._x = this._x + 84; this.collision2._y = this._y + 36; this.collision3._x = this._x + 56; this.collision3._y = this._y + 64; this.collision4._x = this._x + 36; this.collision4._y = this._y + 100; }; ASSetPropFlags(_global.s35tits.prototype, null, 1); } #endinitclip } movieClip 1393 __Packages.scene35boss { #initclip if (!_global.scene35boss) { var v1 = function () { super(); }; _global.scene35boss = v1; _global.scene35boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v8 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v8.beginFill(16515125); v8.moveTo(0, 0); v8.lineTo(512, 0); v8.lineTo(512, 512); v8.lineTo(0, 512); v8.lineTo(0, 0); v8.endFill(); this.objs.push(v8); var v9 = _root.attachMovie('s35tits', 's35tits', _root.getNextHighestDepth()); v9.boss = this; v9._x = -8; v9._y = 288; this.objs.push(v9); this.spikes = []; var v7 = [[1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]]; var v6 = true; var v5 = 0; while (v5 < 16) { var v4 = 0; while (v4 < 9) { if (v7[v4][v5] == 1) { var v3 = _root.attachMovie('s35spike', 's35spike' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3._x = v5 * 32 + 4; v3._y = v4 * 32 + 8; if (v6) { v3.frame = 2; } else { v3.frame = 1; } this.objs.push(v3); this.spikes.push(v3); } ++v4; } if (v6) { v6 = false; } else { v6 = true; } ++v5; } this.s35text = _root.attachMovie('s35text', 's35text', _root.getNextHighestDepth()); this.s35text._x = 56; this.s35text._y = 268; this.s35text._visible = false; this.s35text.gotoAndStop(1); this.objs.push(this.s35text); }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene35boss.prototype, null, 1); } #endinitclip } movieClip 1394 __Packages.s36eye { #initclip if (!_global.s36eye) { var v1 = function () { super(); }; _global.s36eye = v1; _global.s36eye extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); }; v2.onEnterFrame = function () { if (this.boss.player.revealed) { var v2 = this.boss.player._x + 12; if (v2 <= this._x + 0) { if (this.boss.player._y < 256) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } else { if (v2 <= this._x + 36) { this.gotoAndStop(3); } else { if (v2 <= this._x + 44) { this.gotoAndStop(4); } else { if (v2 <= this._x + 60) { this.gotoAndStop(5); } else { if (v2 <= this._x + 68) { this.gotoAndStop(6); } else { if (v2 <= this._x + 76) { this.gotoAndStop(7); } else { if (v2 >= this._x + 104) { if (this.boss.player._y < 256) { this.gotoAndStop(8); } else { this.gotoAndStop(7); } } } } } } } } } }; ASSetPropFlags(_global.s36eye.prototype, null, 1); } #endinitclip } movieClip 1395 __Packages.s36person { #initclip if (!_global.s36person) { var v1 = function () { super(); }; _global.s36person = v1; _global.s36person extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { var v2 = 4; if (Math.ceil(Math.random() * v2) == v2) { this.stoic = true; } else { this.stoic = false; } this.moving = false; this.move_speed = 2; this.move_timer = 0; this.destination_x = this._x; this.destination_y = this._y; }; v2.onEnterFrame = function () { var v2 = 30; if (!this.stoic and !this.moving and Math.ceil(Math.random() * v2) == v2) { this.moving = true; var v3 = 6; this.destination_x = (this._x / 4 + Math.floor(Math.random() * (v3 * 2)) - v3) * 4; this.destination_y = (this._y / 4 + Math.floor(Math.random() * (v3 * 2)) - v3) * 4; if (this.destination_x < 0) { this.destination_x = 0; } if (this.destination_x > 488) { this.destination_x = 488; } if (this.destination_y < 160) { this.destination_y = 160; } if (this.destination_y > 464) { this.destination_y = 464; } } if (this.moving) { if (this.move_timer < this.move_speed) { ++this.move_timer; } else { this.move_timer = 0; v2 = 1; if (this.destination_x < this._x and Math.ceil(Math.random() * v2) == v2) { this._x -= 4; } if (this.destination_x > this._x and Math.ceil(Math.random() * v2) == v2) { this._x += 4; } if (this.destination_y < this._y and Math.ceil(Math.random() * v2) == v2) { this._y -= 4; } if (this.destination_y > this._y and Math.ceil(Math.random() * v2) == v2) { this._y += 4; } if (this.destination_x == this._x and this.destination_y == this._y) { this.moving = false; } } } }; ASSetPropFlags(_global.s36person.prototype, null, 1); } #endinitclip } movieClip 1396 __Packages.s36player { #initclip if (!_global.s36player) { var v1 = function () { super(); }; _global.s36player = v1; _global.s36player extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); this.revealed = false; this.reveal_speed = 50; this.reveal_timer = 0; this.move_speed = 0; this.move_timer = 0; this.sfx_reveal = new Sound(); this.sfx_reveal.attachSound('hmm.wav'); }; v2.onEnterFrame = function () { this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v2 = 0; if (Key.isDown(37)) { this.key_left = true; ++v2; } if (Key.isDown(38)) { this.key_up = true; ++v2; } if (Key.isDown(39)) { this.key_right = true; ++v2; } if (Key.isDown(40)) { this.key_down = true; ++v2; } if (v2 > 0) { if (this.move_timer < this.move_speed) { ++this.move_timer; } else { this.move_timer = 0; if (this.key_left and !this.key_right) { this._x -= 4; } if (this.key_right and !this.key_left) { this._x += 4; } if (this.key_up and !this.key_down) { this._y -= 4; } if (this.key_down and !this.key_up) { this._y += 4; } if (this._x < 0) { this._x = 0; } if (this._x > 488) { this._x = 488; } if (this._y < 160) { this._y = 160; } if (this._y > 464) { this._y = 464; } } ++this.reveal_timer; if (this.reveal_timer == this.reveal_speed) { this.sfx_reveal.start(); this.gotoAndStop(2); this.revealed = true; } } }; ASSetPropFlags(_global.s36player.prototype, null, 1); } #endinitclip } movieClip 1397 __Packages.s36text { #initclip if (!_global.s36text) { var v1 = function () { super(); }; _global.s36text = v1; _global.s36text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s36text.prototype, null, 1); } #endinitclip } movieClip 1398 __Packages.scene36boss { #initclip if (!_global.scene36boss) { var v1 = function () { super(); }; _global.scene36boss = v1; _global.scene36boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v5 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v5.beginFill(0); v5.moveTo(0, 0); v5.lineTo(512, 0); v5.lineTo(512, 512); v5.lineTo(0, 512); v5.lineTo(0, 0); v5.endFill(); this.objs.push(v5); var v6 = 40; var v4 = 0; while (v4 < v6) { var v3 = _root.attachMovie('s36person', 's36person' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3._x = Math.floor(Math.random() * 122) * 4; v3._y = (Math.floor(Math.random() * 76) + 40) * 4; this.objs.push(v3); ++v4; } this.player = _root.attachMovie('s36player', 's36player', _root.getNextHighestDepth()); this.player._x = Math.floor(Math.random() * 122) * 4; this.player._y = (Math.floor(Math.random() * 76) + 40) * 4; this.objs.push(this.player); var v9 = _root.attachMovie('s36eye', 'eye1', _root.getNextHighestDepth()); v9.boss = this; v9._x = 60; v9._y = 104; this.objs.push(v9); var v8 = _root.attachMovie('s36eye', 'eye2', _root.getNextHighestDepth()); v8.boss = this; v8._x = 232; v8._y = 32; this.objs.push(v8); var v7 = _root.attachMovie('s36eye', 'eye3', _root.getNextHighestDepth()); v7.boss = this; v7._x = 348; v7._y = 84; this.objs.push(v7); this.s36text = _root.attachMovie('s36text', 's36text', _root.getNextHighestDepth()); this.s36text._x = 32; this.s36text._y = 428; this.s36text._visible = false; this.objs.push(this.s36text); this.timer = 0; this.mus_dundundundun = new Sound(); this.mus_dundundundun.attachSound('dundundundun.wav'); this.mus_dundundundun.start(); }; v2.onEnterFrame = function () { if (this.player.revealed) { ++this.timer; if (this.timer == 30) { this.s36text._visible = true; } if (this.timer == 120) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene36boss.prototype, null, 1); } #endinitclip } movieClip 1399 __Packages.s37arrow { #initclip if (!_global.s37arrow) { var v1 = function () { super(); }; _global.s37arrow = v1; _global.s37arrow extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.pointing = false; this.point_speed = 5; this.point_timer = 0; }; v2.onEnterFrame = function () { if (this.point_timer < this.point_speed) { ++this.point_timer; } else { this.point_timer = 0; if (this.pointing) { this._y += 4; this.pointing = false; } else { this._y -= 4; this.pointing = true; } } }; ASSetPropFlags(_global.s37arrow.prototype, null, 1); } #endinitclip } movieClip 1400 __Packages.s37phone { #initclip if (!_global.s37phone) { var v1 = function () { super(); }; _global.s37phone = v1; _global.s37phone extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.start_x = this._x; this.shaking = false; this.shake_timer = 0; this.gotoAndStop(1); this.key_clear = false; this.sfx_open = new Sound(); this.sfx_open.attachSound('click.wav'); this.sfx_gulp = new Sound(); this.sfx_gulp.attachSound('gulp.wav'); this.gulp_timer = 0; this.gulp_speed = 70; }; v2.ringRing = function () { this.shake_timer = 0; this.shaking = true; this.gotoAndStop(2); }; v2.onEnterFrame = function () { if (this.gulp_timer > 0) { --this.gulp_timer; if (this.gulp_timer == 0) { this.sfx_gulp.start(); } } if (this.shaking) { ++this.shake_timer; switch (this.shake_timer) { case 1: this._x = this.start_x - 16; break; case 2: this._x = this.start_x + 16; break; case 3: this._x = this.start_x - 8; break; case 4: this._x = this.start_x + 8; break; case 5: this._x = this.start_x - 4; break; case 6: this._x = this.start_x + 4; break; case 7: this._x = this.start_x; this.gotoAndStop(1); } } if (this.openable) { this.key_up = false; if (Key.isDown(38)) { this.key_up = true; } if (this.key_up and this.key_clear) { this.openable = false; this.boss.s37arrow.removeMovieClip(); this.gotoAndStop(3); this._y = 92; this.sfx_open.start(); this.gulp_timer = this.gulp_speed; this.boss.end_timer = this.boss.end_speed; } if (!this.key_up) { this.key_clear = true; } } }; ASSetPropFlags(_global.s37phone.prototype, null, 1); } #endinitclip } movieClip 1401 __Packages.scene37boss { #initclip if (!_global.scene37boss) { var v1 = function () { super(); }; _global.scene37boss = v1; _global.scene37boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(13369599); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.phone = _root.attachMovie('s37phone', 's37phone', _root.getNextHighestDepth()); this.phone.boss = this; this.phone._x = 68; this.phone._y = 276; this.objs.push(this.phone); this.timer = 0; this.end_speed = 120; this.end_timer = 0; this.sfx_ring = new Sound(); this.sfx_ring.attachSound('beep.wav'); }; v2.onEnterFrame = function () { ++this.timer; switch (this.timer) { case 20: this.phone.ringRing(); this.sfx_ring.start(); break; case 50: this.phone.ringRing(); this.sfx_ring.start(); break; case 70: this.s37arrow = _root.attachMovie('s37arrow', 's37arrow', _root.getNextHighestDepth()); this.s37arrow._x = 240; this.s37arrow._y = 216; this.phone.openable = true; } if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene37boss.prototype, null, 1); } #endinitclip } movieClip 1402 __Packages.s38arrow { #initclip if (!_global.s38arrow) { var v1 = function () { super(); }; _global.s38arrow = v1; _global.s38arrow extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.pointing = false; this.point_speed = 5; this.point_timer = 0; }; v2.onEnterFrame = function () { if (this.point_timer < this.point_speed) { ++this.point_timer; } else { this.point_timer = 0; if (this.pointing) { this._x += 4; this.pointing = false; } else { this._x -= 4; this.pointing = true; } } }; ASSetPropFlags(_global.s38arrow.prototype, null, 1); } #endinitclip } movieClip 1403 __Packages.s38phone { #initclip if (!_global.s38phone) { var v1 = function () { super(); }; _global.s38phone = v1; _global.s38phone extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.start_x = this._x; this.shaking = false; this.shake_timer = 0; this.gotoAndStop(1); this.key_clear = false; this.sfx_open = new Sound(); this.sfx_open.attachSound('uwuh.wav'); }; v2.ringRing = function () { this.shake_timer = 0; this.shaking = true; this.gotoAndStop(2); }; v2.onEnterFrame = function () { if (this.shaking) { ++this.shake_timer; switch (this.shake_timer) { case 1: this._x = this.start_x - 16; break; case 2: this._x = this.start_x + 16; break; case 3: this._x = this.start_x - 8; break; case 4: this._x = this.start_x + 8; break; case 5: this._x = this.start_x - 4; break; case 6: this._x = this.start_x + 4; break; case 7: this._x = this.start_x; this.gotoAndStop(1); } } if (this.openable) { this.key_left = false; if (Key.isDown(37)) { this.key_left = true; } if (this.key_left and this.key_clear) { this.sfx_open.start(); this.openable = false; this.boss.s38arrow.removeMovieClip(); this.gotoAndStop(3); this._x = 0; this._y = 0; this.boss.end_timer = this.boss.end_speed; } if (!this.key_left) { this.key_clear = true; } } }; ASSetPropFlags(_global.s38phone.prototype, null, 1); } #endinitclip } movieClip 1404 __Packages.scene38boss { #initclip if (!_global.scene38boss) { var v1 = function () { super(); }; _global.scene38boss = v1; _global.scene38boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(13369599); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.phone = _root.attachMovie('s38phone', 's38phone', _root.getNextHighestDepth()); this.phone.boss = this; this.phone._x = 68; this.phone._y = 276; this.objs.push(this.phone); this.timer = 0; this.end_speed = 120; this.end_timer = 0; this.sfx_ring = new Sound(); this.sfx_ring.attachSound('beep.wav'); }; v2.onEnterFrame = function () { ++this.timer; switch (this.timer) { case 20: this.phone.ringRing(); this.sfx_ring.start(); break; case 50: this.phone.ringRing(); this.sfx_ring.start(); break; case 80: this.phone.ringRing(); this.sfx_ring.start(); break; case 100: this.s38arrow = _root.attachMovie('s38arrow', 's38arrow', _root.getNextHighestDepth()); this.s38arrow._x = 8; this.s38arrow._y = 336; this.phone.openable = true; } if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene38boss.prototype, null, 1); } #endinitclip } movieClip 1405 __Packages.s39asshole { #initclip if (!_global.s39asshole) { var v1 = function () { super(); }; _global.s39asshole = v1; _global.s39asshole extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.flying = false; }; v2.flyAway = function () { this.flying = true; }; v2.onEnterFrame = function () { if (this.flying) { this._y -= 32; } }; ASSetPropFlags(_global.s39asshole.prototype, null, 1); } #endinitclip } movieClip 1406 __Packages.s39path { #initclip if (!_global.s39path) { var v1 = function () { super(); }; _global.s39path = v1; _global.s39path extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s39path.prototype, null, 1); } #endinitclip } movieClip 1407 __Packages.s39text { #initclip if (!_global.s39text) { var v1 = function () { super(); }; _global.s39text = v1; _global.s39text extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s39text.prototype, null, 1); } #endinitclip } movieClip 1408 __Packages.s39walk { #initclip if (!_global.s39walk) { var v1 = function () { super(); }; _global.s39walk = v1; _global.s39walk extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 10; this.anim_timer = 0; this.real_x = this._x; this.walking = true; }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } this.key_right = false; if (Key.isDown(39)) { this.key_right = true; } if (this.key_right and this.walking) { this.real_x += 3; if (this.real_x % 4) { this._x = this.real_x; } } }; ASSetPropFlags(_global.s39walk.prototype, null, 1); } #endinitclip } movieClip 1409 __Packages.scene39boss { #initclip if (!_global.scene39boss) { var v1 = function () { super(); }; _global.scene39boss = v1; _global.scene39boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(3878852); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.asshole = _root.attachMovie('s39asshole', 's39asshole', _root.getNextHighestDepth()); this.asshole.gotoAndStop(1); this.asshole._y = 56; this.objs.push(this.asshole); var v4 = _root.attachMovie('s39path', 's39path', _root.getNextHighestDepth()); v4._y = 256; this.objs.push(v4); this.s39text = _root.attachMovie('s39text', 's39text', _root.getNextHighestDepth()); this.s39text._x = 100; this.s39text._y = 412; this.s39text._visible = false; this.objs.push(this.s39text); this.player = _root.attachMovie('s39walk', 's39walk', _root.getNextHighestDepth()); this.player.boss = this; this.player._x = 20; this.player._y = 260; this.objs.push(this.player); this.text_timer = 0; this.script = 0; this.timer = 0; this.sfx_asshole = new Sound(); this.sfx_asshole.attachSound('blah.wav'); this.sfx_maam = new Sound(); this.sfx_maam.attachSound('boom.wav'); }; v2.onEnterFrame = function () { var v2 = 30; if (this.text_timer < v2) { ++this.text_timer; if (this.text_timer == v2) { this.s39text._visible = true; } } if (this.player._x >= 236) { if (this.player.walking) { this.player.walking = false; this.asshole.gotoAndStop(2); this.sfx_asshole.start(); } ++this.timer; if (this.timer == 20) { this.asshole.flyAway(); this.sfx_maam.start(); } if (this.timer == 60) { this.endScene(); } } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene39boss.prototype, null, 1); } #endinitclip } movieClip 1410 __Packages.s40butterfly { #initclip if (!_global.s40butterfly) { var v1 = function () { super(); }; _global.s40butterfly = v1; _global.s40butterfly extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.frame_speed = 1; this.frame_timer = 0; this.flapping = true; this.key_clear = false; this.up_speed = 3; this.up_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; if (this.flapping) { if (this.frame == 5) { this.flapping = false; } else { ++this.frame; } } else { if (this.frame == 1) { this.flapping = true; } else { --this.frame; } } this.gotoAndStop(this.frame); } this.key_up = false; if (Key.isDown(38)) { this.key_up = true; } else { this.key_clear = true; } if (this.key_up and this.key_clear) { ++this.up_timer; if (this.up_timer == this.up_speed) { this.up_timer = 0; this._y -= 4; } } }; ASSetPropFlags(_global.s40butterfly.prototype, null, 1); } #endinitclip } movieClip 1411 __Packages.s40cloud { #initclip if (!_global.s40cloud) { var v1 = function () { super(); }; _global.s40cloud = v1; _global.s40cloud extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.x_origin = this._x; this.y_origin = this._y; this.frame = Math.ceil(Math.random() * 5); this.gotoAndStop(this.frame); this.frame_speed = 1; this.frame_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; ++this.frame; if (this.frame > 5) { this.frame = 1; } this.gotoAndStop(this.frame); } var v2 = 4; var v3 = Math.ceil(Math.random() * 3); if (v3 == 1 and this._x >= this.x_origin - v2) { this._x -= 4; } if (v3 == 2 and this._x <= this.x_origin + v2) { this._x += 4; } var v4 = Math.ceil(Math.random() * 3); if (v4 == 1 and this._y >= this.y_origin - v2) { this._y -= 4; } if (v4 == 2 and this._y <= this.y_origin + v2) { this._y += 4; } }; ASSetPropFlags(_global.s40cloud.prototype, null, 1); } #endinitclip } movieClip 1412 __Packages.s40sun { #initclip if (!_global.s40sun) { var v1 = function () { super(); }; _global.s40sun = v1; _global.s40sun extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = 1; this.gotoAndStop(this.frame); this.anim_speed = 2; this.anim_timer = 0; }; v2.onEnterFrame = function () { if (this.anim_timer < this.anim_speed) { ++this.anim_timer; } else { this.anim_timer = 0; if (this.frame == 1) { this.frame = 2; } else { this.frame = 1; } this.gotoAndStop(this.frame); } }; ASSetPropFlags(_global.s40sun.prototype, null, 1); } #endinitclip } movieClip 1413 __Packages.s40text { #initclip if (!_global.s40text) { var v1 = function () { super(); }; _global.s40text = v1; _global.s40text extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () {}; v2.onEnterFrame = function () { if (!this._visible and this.hitTest(this.boss.butterfly)) { this._visible = true; } }; ASSetPropFlags(_global.s40text.prototype, null, 1); } #endinitclip } movieClip 1414 __Packages.s40trees { #initclip if (!_global.s40trees) { var v1 = function () { super(); }; _global.s40trees = v1; _global.s40trees extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s40trees.prototype, null, 1); } #endinitclip } movieClip 1415 __Packages.scene40boss { #initclip if (!_global.scene40boss) { var v1 = function () { super(); }; _global.scene40boss = v1; _global.scene40boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v4 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v4.beginFill(65535); v4.moveTo(0, 0); v4.lineTo(512, 0); v4.lineTo(512, 512); v4.lineTo(0, 512); v4.lineTo(0, 0); v4.endFill(); this.objs.push(v4); var v11 = _root.attachMovie('s40trees', 's40trees', _root.getNextHighestDepth()); v11._y = 340; this.objs.push(v11); var v10 = _root.attachMovie('s40sun', 's40sun', _root.getNextHighestDepth()); v10._x = 192; v10._y = 28; this.objs.push(v10); this.butterfly = _root.attachMovie('s40butterfly', 's40butterfly', _root.getNextHighestDepth()); this.butterfly._x = 224; this.butterfly._y = 504; this.objs.push(this.butterfly); var v3 = -2; while (v3 < 128) { this.makeCloud(v3, 118 + Math.floor(Math.random() * 2)); v3 += 8; } var v9 = _root.attachMovie('s40text', 'text1', _root.getNextHighestDepth()); v9.boss = this; v9.gotoAndStop(1); v9._x = 44; v9._y = 396; v9._visible = false; this.objs.push(v9); var v8 = _root.attachMovie('s40text', 'text2', _root.getNextHighestDepth()); v8.boss = this; v8.gotoAndStop(2); v8._x = 80; v8._y = 328; v8._visible = false; this.objs.push(v8); var v7 = _root.attachMovie('s40text', 'text3', _root.getNextHighestDepth()); v7.boss = this; v7.gotoAndStop(3); v7._x = 136; v7._y = 252; v7._visible = false; this.objs.push(v7); var v6 = _root.attachMovie('s40text', 'text4', _root.getNextHighestDepth()); v6.boss = this; v6.gotoAndStop(4); v6._x = 76; v6._y = 184; v6._visible = false; this.objs.push(v6); var v5 = _root.attachMovie('s40text', 'text5', _root.getNextHighestDepth()); v5.boss = this; v5.gotoAndStop(5); v5._x = 56; v5._y = 112; v5._visible = false; this.objs.push(v5); this.text6 = _root.attachMovie('s40text', 'text6', _root.getNextHighestDepth()); this.text6.boss = this; this.text6.gotoAndStop(6); this.text6._x = 20; this.text6._y = 20; this.text6._visible = false; this.objs.push(this.text6); this.end_speed = 80; this.end_timer = 0; this.mus_pahpah = new Sound(); this.mus_pahpah.attachSound('pahpahpahpah.wav'); this.mus_pahpah.start(); }; v2.makeCloud = function (where_x, where_y) { var v3 = _root.attachMovie('s40cloud', 's40cloud' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3._x = where_x * 4; v3._y = where_y * 4; this.objs.push(v3); }; v2.onEnterFrame = function () { if (this.end_timer > 0) { --this.end_timer; if (this.end_timer == 0) { this.endScene(); } } if (this.text6._visible and this.end_timer == 0) { this.end_timer = this.end_speed; } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene40boss.prototype, null, 1); } #endinitclip } movieClip 1416 __Packages.s41body { #initclip if (!_global.s41body) { var v1 = function () { super(); }; _global.s41body = v1; _global.s41body extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.frame = Math.ceil(Math.random() * 8); this.gotoAndStop(this.frame); this.frame_speed = 2; this.frame_timer = 0; this.previous_frames = [0, 0]; this.key_clear = false; this.move_speed = 0; this.move_timer = 0; }; v2.onEnterFrame = function () { if (this.frame_timer < this.frame_speed) { ++this.frame_timer; } else { this.frame_timer = 0; this.previous_frames[0] = this.previous_frames[1]; this.previous_frames[1] = this.frame; while (this.frame == this.previous_frames[0] or this.frame == this.previous_frames[1]) { this.frame = Math.ceil(Math.random() * 8); } this.gotoAndStop(this.frame); } this.key_left = false; this.key_up = false; this.key_right = false; this.key_down = false; var v2 = 0; if (Key.isDown(37)) { this.key_left = true; ++v2; } if (Key.isDown(38)) { this.key_up = true; ++v2; } if (Key.isDown(39)) { this.key_right = true; ++v2; } if (Key.isDown(40)) { this.key_down = true; ++v2; } if (v2 == 0) { this.key_clear = true; } if (v2 > 0) { if (this.move_timer < this.move_speed) { ++this.move_timer; } else { this.move_timer = 0; if (this.key_left and !this.key_right) { this._x -= 4; } if (this.key_right and !this.key_left) { this._x += 4; } if (this.key_up and !this.key_down) { this._y -= 4; } if (this.key_down and !this.key_up) { this._y += 4; } } if (this._x < 0) { this._x = 0; } if (this._x > 384) { this._x = 384; } if (this._y > 384) { this._y = 384; } } }; ASSetPropFlags(_global.s41body.prototype, null, 1); } #endinitclip } movieClip 1417 __Packages.scene41boss { #initclip if (!_global.scene41boss) { var v1 = function () { super(); }; _global.scene41boss = v1; _global.scene41boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v9 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v9.beginFill(16529408); v9.moveTo(0, 0); v9.lineTo(512, 0); v9.lineTo(512, 512); v9.lineTo(0, 512); v9.lineTo(0, 0); v9.endFill(); this.objs.push(v9); var v7 = this.boss.wall_chart; var v8 = 128; var v6 = 32; var v5 = 0; while (v5 < 16) { var v4 = 0; while (v4 < 3) { if (v7[v4][v5] == 1) { var v3 = _root.attachMovie('s34wall', 's34wall' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3.wall_x = v5; v3.wall_y = v4; v3._x = v5 * v6; v3._y = v8 + v4 * v6; this.objs.push(v3); } ++v4; } ++v5; } this.player = _root.attachMovie('s41body', 's41body', _root.getNextHighestDepth()); this.player._x = 192; this.player._y = 352; this.objs.push(this.player); }; v2.onEnterFrame = function () { if (this.player._y <= 224) { this.endScene(); } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.scene41boss.prototype, null, 1); } #endinitclip } movieClip 1418 __Packages.s42dot { #initclip if (!_global.s42dot) { var v1 = function () { super(); }; _global.s42dot = v1; _global.s42dot extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () {}; v2.onEnterFrame = function () { if (this.transient) { if (Math.ceil(Math.random() * 2) == 2) { this._visible = false; } else { this._visible = true; } } }; ASSetPropFlags(_global.s42dot.prototype, null, 1); } #endinitclip } movieClip 1419 __Packages.scene42boss { #initclip if (!_global.scene42boss) { var v1 = function () { super(); }; _global.scene42boss = v1; _global.scene42boss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16777215); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.patterns = [[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1], [0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [[2, 2, 2, 0, 2, 0, 0, 2, 0, 0, 2, 2, 2, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 0, 2, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 0, 2, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 0, 2, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 2, 0, 0, 0, 2, 2, 0, 0, 2, 2, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 2, 2, 2, 2, 0, 2, 2, 2, 0, 0, 2, 2, 2, 0], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 2, 0, 0, 2], [0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 2, 2, 2, 0, 0, 2, 0, 0, 2, 0, 2, 0, 0, 2], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 2, 0, 0, 2], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 2, 2, 2, 2, 0, 2, 0, 0, 2, 0, 2, 2, 2, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 2, 0, 0, 2, 2, 0, 0, 2, 2, 0, 2, 0, 2, 2, 0, 0, 2, 2, 0, 0, 2, 0, 2, 2, 0, 0, 0, 2, 2], [2, 0, 2, 0, 2, 0, 0, 2, 0, 0, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 0], [2, 2, 0, 0, 2, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2], [2, 0, 2, 0, 2, 0, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2], [2, 2, 0, 0, 2, 2, 0, 0, 2, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 0, 2, 2]], [[1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1], [1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0], [1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1], [1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1]]]; this.dots = []; this.makeDots(this.patterns[0]); this.timer = 0; this.sfx_change = new Sound(); this.sfx_change.attachSound('kckck.wav'); this.mus_doopadip = new Sound(); this.mus_doopadip.attachSound('doopadip.wav'); this.mus_doopadip.start(); }; v2.makeDots = function (pattern) { var v8 = 16; var v7 = 112; var v5 = 0; while (v5 < 30) { var v4 = 0; while (v4 < 17) { if (pattern[v4][v5] > 0) { var v3 = _root.attachMovie('s42dot', 's42dot' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3._x = v8 + v5 * 16; v3._y = v7 + v4 * 16; if (pattern[v4][v5] == 2) { v3.transient = true; } else { v3.transient = false; } this.dots.push(v3); } ++v4; } ++v5; } }; v2.clearDots = function () { for (var v2 in this.dots) { this.dots[v2].removeMovieClip(); } }; v2.onEnterFrame = function () { ++this.timer; switch (this.timer) { case 60: this.clearDots(); this.makeDots(this.patterns[1]); this.sfx_change.start(); break; case 70: this.clearDots(); this.makeDots(this.patterns[2]); break; case 200: this.endScene(); } }; v2.endScene = function () { this.boss.newScene(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.clearDots(); this.removeMovieClip(); }; ASSetPropFlags(_global.scene42boss.prototype, null, 1); } #endinitclip } movieClip 1420 __Packages.StatiqueBox { #initclip if (!_global.StatiqueBox) { var v1 = function () { super(); }; _global.StatiqueBox = v1; _global.StatiqueBox extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.colors = [16187137, 16712182, 128767, 16722689, 9568001, 6750719, 16742657, 130954, 16712140]; }; v2.onEnterFrame = function () { this.box.removeMovieClip(); var v4 = Math.floor(Math.random() * 552) - 20; var v3 = Math.floor(Math.random() * 552) - 20; var v6 = Math.floor(Math.random() * 552) - 20; var v5 = Math.floor(Math.random() * 552) - 20; this.box = this.createEmptyMovieClip('box' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.box.beginFill(this.colors[Math.floor(Math.random() * this.colors.length)]); this.box.moveTo(v4, v3); this.box.lineTo(v6, v3); this.box.lineTo(v6, v5); this.box.lineTo(v4, v5); this.box.lineTo(v4, v3); this.box.endFill(); }; v2.removeMe = function () { this.box.removeMovieClip(); this.removeMovieClip(); }; ASSetPropFlags(_global.StatiqueBox.prototype, null, 1); } #endinitclip } movieClip 1421 __Packages.Statique { #initclip if (!_global.Statique) { var v1 = function () { super(); }; _global.Statique = v1; _global.Statique extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.bg = this.makeBox(0, 0, 512, 512); this.boxes = []; var v3 = 0; while (v3 < 6) { var v4 = _root.attachMovie('StatiqueBox', 'StatiqueBox' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); this.boxes.push(v4); ++v3; } }; v2.onEnterFrame = function () { if (this.timer > 0) { --this.timer; this.clearScreen(); this.bg = this.makeBox(0, 0, 512, 512); } else { this.removeMe(); } }; v2.randomBox = function () { var v2 = this.makeBox(Math.floor(Math.random() * 532) - 40, Math.floor(Math.random() * 532) - 40, Math.floor(Math.random() * 532) - 40, Math.floor(Math.random() * 532) - 40); return v2; }; v2.makeBox = function (x1, y1, x2, y2) { var v3 = this.createEmptyMovieClip('box' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.beginFill(Math.round(Math.random() * 16777215)); v3.moveTo(x1, y1); v3.lineTo(x2, y1); v3.lineTo(x2, y2); v3.lineTo(x1, y2); v3.lineTo(x1, y1); v3.endFill(); return v3; }; v2.clearScreen = function () { this.bg.removeMovieClip(); }; v2.removeMe = function () { this.clearScreen(); for (var v2 in this.boxes) { this.boxes[v2].removeMe(); } this.boss.makeScene(this.boss.scene); this.removeMovieClip(); }; ASSetPropFlags(_global.Statique.prototype, null, 1); } #endinitclip } movieClip 1422 __Packages.title_credit { #initclip if (!_global.title_credit) { var v1 = function () { super(); }; _global.title_credit = v1; _global.title_credit extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.num == 1) { this.gotoAndStop(1); this._x -= 544; this.x_speed = 16; } else { this.gotoAndStop(2); this._x += 544; this.x_speed = -16; } this.leave_speed = 100; this.leave_timer = 0; this.coming = true; this.instruction = false; }; v2.onEnterFrame = function () { if (this.coming and this.x_speed != 0) { this._x += this.x_speed * 4; if (this.x_speed > 0) { --this.x_speed; } else { ++this.x_speed; } } else { if (!this.instruction) { if (this.leave_timer < this.leave_speed) { ++this.leave_timer; } else { this.coming = false; if (this.num == 1) { ++this.x_speed; } else { --this.x_speed; } this._x += this.x_speed * 4; if (Math.abs(this.x_speed) > 20) { if (this.num == 1) { this.removeMovieClip(); } else { this._x = 544; this.x_speed = -16; this.gotoAndStop(3); this.instruction = true; this.coming = true; } } } } } this._y -= this.boss.title_y - this.boss.last_title_y; }; ASSetPropFlags(_global.title_credit.prototype, null, 1); } #endinitclip } movieClip 1423 __Packages.title_arrow { #initclip if (!_global.title_arrow) { var v1 = function () { super(); }; _global.title_arrow = v1; _global.title_arrow extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.num == 1) { this.gotoAndStop(1); this.y_off = -36; this.y_on = 8; } if (this.num == 2) { this.gotoAndStop(2); this.y_off = 512; this.y_on = 468; } }; v2.onEnterFrame = function () { if (this.off) { if (this._y > this.y_off) { this._y -= 4; } if (this._y < this.y_off) { this._y += 4; } } else { if (this._y > this.y_on) { this._y -= 4; } if (this._y < this.y_on) { this._y += 4; } } }; ASSetPropFlags(_global.title_arrow.prototype, null, 1); } #endinitclip } movieClip 1424 __Packages.title_disclaimer { #initclip if (!_global.title_disclaimer) { var v1 = function () { super(); }; _global.title_disclaimer = v1; _global.title_disclaimer extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () {}; v2.onEnterFrame = function () { this._y -= this.boss.title_y - this.boss.last_title_y; }; ASSetPropFlags(_global.title_disclaimer.prototype, null, 1); } #endinitclip } movieClip 1425 __Packages.title_letter { #initclip if (!_global.title_letter) { var v1 = function () { super(); }; _global.title_letter = v1; _global.title_letter extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.move_timer = 0; }; v2.onEnterFrame = function () { var v4 = 1; if (this.fast) { v4 = 0; } if (this.move_timer < v4) { ++this.move_timer; } else { this.move_timer = 0; if (!this.boss.in_motion) { var v3 = 2; if (this.destination_x < this._x and Math.ceil(Math.random() * v3) == v3) { this._x -= 4; } if (this.destination_x > this._x and Math.ceil(Math.random() * v3) == v3) { this._x += 4; } var v2 = 2; if (this.destination_y - this.boss.title_y < this._y and Math.ceil(Math.random() * v2) == v2) { this._y -= 4; } if (this.destination_y - this.boss.title_y > this._y and Math.ceil(Math.random() * v2) == v2) { this._y += 4; } } } this._y -= this.boss.title_y - this.boss.last_title_y; }; ASSetPropFlags(_global.title_letter.prototype, null, 1); } #endinitclip } movieClip 1426 __Packages.titleboss { #initclip if (!_global.titleboss) { var v1 = function () { super(); }; _global.titleboss = v1; _global.titleboss extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.objs = []; var v3 = this.createEmptyMovieClip('bg', _root.getNextHighestDepth()); v3.beginFill(16777215); v3.moveTo(0, 0); v3.lineTo(512, 0); v3.lineTo(512, 512); v3.lineTo(0, 512); v3.lineTo(0, 0); v3.endFill(); this.objs.push(v3); this.title_y = 0; this.last_title_y = 0; this.letters = []; this.createLetter(5, Math.floor(Math.random() * 128) * 4, 512, 55, 42, true); this.createLetter(3, Math.floor(Math.random() * 128) * 4, -124, 34, 43, false); this.createLetter(2, Math.floor(Math.random() * 128) * 4, 512, 18, 51, false); this.createLetter(7, Math.floor(Math.random() * 128) * 4, -112, 96, 44, false); this.createLetter(8, 512, Math.floor(Math.random() * 128) * 4, 108, 54, false); this.createLetter(1, -72, Math.floor(Math.random() * 128) * 4, 2, 54, false); this.createLetter(4, -200, Math.floor(Math.random() * 128) * 4, 54, 57, true); this.createLetter(6, 692, Math.floor(Math.random() * 128) * 4, 89, 57, true); var v4 = _root.attachMovie('title_disclaimer', 'title_disclaimer', _root.getNextHighestDepth()); v4.boss = this; v4._x = 2; v4._y = 648; this.objs.push(v4); this.input_okay = false; this.key_clear = false; this.position = 1; this.in_motion = false; this.timer = 0; this.music_title = new Sound(); this.music_title.attachSound('title.wav'); this.sfx_zoop = new Sound(); this.sfx_zoop.attachSound('zoop.wav'); }; v2.createLetter = function (frame, start_x, start_y, destination_x, destination_y, fast) { var v3 = _root.attachMovie('title_letter', 'title_letter' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); v3.boss = this; v3.gotoAndStop(frame); v3._x = start_x; v3._y = start_y; v3.destination_x = destination_x * 4; v3.destination_y = destination_y * 4; v3.fast = fast; this.objs.push(v3); this.letters.push(v3); }; v2.onEnterFrame = function () { if (this.timer < 5000) { ++this.timer; } if (this.timer == 1) { this.music_title.start(0, 10000); } if (this.timer == 100) { for (var v5 in this.letters) { this.letters[v5].fast = true; } } if (this.timer == 200) { var v6 = _root.attachMovie('title_credit', 'title_credit1', _root.getNextHighestDepth()); v6.boss = this; v6.num = 1; v6._y = 76; this.objs.push(v6); var v4 = _root.attachMovie('title_credit', 'title_credit2', _root.getNextHighestDepth()); v4.boss = this; v4.num = 2; v4._y = 400; this.objs.push(v4); this.up_arrow = _root.attachMovie('title_arrow', 'up_arrow', _root.getNextHighestDepth()); this.up_arrow.num = 1; this.up_arrow._x = 208; this.up_arrow._y = -36; this.up_arrow.off = true; this.objs.push(this.up_arrow); this.down_arrow = _root.attachMovie('title_arrow', 'down_arrow', _root.getNextHighestDepth()); this.down_arrow.num = 2; this.down_arrow._x = 208; this.down_arrow._y = 512; this.down_arrow.off = false; this.objs.push(this.down_arrow); this.input_okay = true; } if (!this.in_motion and this.input_okay) { this.key_up = false; this.key_down = false; if (Key.isDown(38)) { this.key_up = true; } if (Key.isDown(40)) { this.key_down = true; } if (!this.key_up and !this.key_down) { this.key_clear = true; } if (this.key_up and this.position == 2 and this.key_clear) { this.position = 1; this.up_arrow.off = true; this.in_motion = true; this.dir = 'up'; this.motion_timer = 0; this.key_clear = false; this.sfx_zoop.start(); } else { if (this.key_down and this.position == 1 and this.key_clear) { this.position = 2; this.up_arrow.off = false; this.in_motion = true; this.dir = 'down'; this.motion_timer = 0; this.key_clear = false; this.sfx_zoop.start(); } else { if (this.key_down and this.position == 2 and this.key_clear) { this.position = 3; this.up_arrow.off = true; this.down_arrow.off = true; this.in_motion = true; this.dir = 'down'; this.motion_timer = 0; this.key_clear = false; this.sfx_zoop.start(); } } } } if (this.in_motion) { this.last_title_y = this.title_y; ++this.motion_timer; var v3 = 0; switch (this.motion_timer) { case 1: v3 = 2; break; case 2: v3 = 3; break; case 3: v3 = 4; break; case 4: v3 = 5; break; case 5: v3 = 6; break; case 6: v3 = 7; break; case 7: v3 = 8; break; case 8: v3 = 9; break; case 9: v3 = 10; break; case 10: v3 = 10; break; case 11: v3 = 10; break; case 12: v3 = 10; break; case 13: v3 = 9; break; case 14: v3 = 8; break; case 15: v3 = 7; break; case 16: v3 = 6; break; case 17: v3 = 5; break; case 18: v3 = 4; break; case 19: v3 = 3; break; case 20: v3 = 2; } if (this.dir == 'up') { this.title_y -= v3 * 4; } else { this.title_y += v3 * 4; } if (this.motion_timer == 21) { this.in_motion = false; } } else { if (this.position == 3) { this.endScene(); } } }; v2.endScene = function () { this.music_title.stop(); this.boss.buildMenu(); for (var v2 in this.objs) { this.objs[v2].removeMovieClip(); } this.removeMovieClip(); }; ASSetPropFlags(_global.titleboss.prototype, null, 1); } #endinitclip } movieClip 1427 __Packages.s30body { #initclip if (!_global.s30body) { var v1 = function () { super(); }; _global.s30body = v1; _global.s30body extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s30body.prototype, null, 1); } #endinitclip } movieClip 1428 __Packages.s26body { #initclip if (!_global.s26body) { var v1 = function () { super(); }; _global.s26body = v1; _global.s26body extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.s26body.prototype, null, 1); } #endinitclip } movieClip 1429 __Packages.Blinker { #initclip if (!_global.Blinker) { var v1 = function () { super(); }; _global.Blinker = v1; _global.Blinker extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { var v1 = 0; }; v2.onEnterFrame = function () { if (this.timer < this.frequency) { ++this.timer; } else { this.timer = 0; if (this.mom._visible) { this.mom._visible = false; } else { this.mom._visible = true; } } }; ASSetPropFlags(_global.Blinker.prototype, null, 1); } #endinitclip } movieClip 29 __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 39 __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 40 __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 41 __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 45 __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 } movieClip 90 Blinker { #initclip Object.registerClass('Blinker', Blinker); #endinitclip } movieClip 91 Gameboss { #initclip Object.registerClass('Gameboss', Gameboss); #endinitclip } movieClip 92 logo_boss { #initclip Object.registerClass('logo_boss', logo_boss); #endinitclip } movieClip 95 logo_me { #initclip Object.registerClass('logo_me', logo_me); #endinitclip } movieClip 100 menu_arrows { #initclip Object.registerClass('menu_arrows', menu_arrows); #endinitclip } movieClip 137 menu_button { #initclip Object.registerClass('menu_button', menu_button); #endinitclip } movieClip 144 menu_tank { #initclip Object.registerClass('menu_tank', menu_tank); #endinitclip } movieClip 145 menuboss { #initclip Object.registerClass('menuboss', menuboss); #endinitclip } movieClip 146 newgrounds_boss { #initclip Object.registerClass('newgrounds_boss', newgrounds_boss); #endinitclip } movieClip 155 newgrounds_logo { #initclip Object.registerClass('newgrounds_logo', newgrounds_logo); #endinitclip } movieClip 158 s1arrow { #initclip Object.registerClass('s1arrow', s1arrow); #endinitclip } movieClip 159 s1body { #initclip Object.registerClass('s1body', s1body); #endinitclip } movieClip 162 s1bodypart { #initclip Object.registerClass('s1bodypart', s1bodypart); #endinitclip } movieClip 165 s1collision { #initclip Object.registerClass('s1collision', s1collision); #endinitclip } movieClip 168 s1text { #initclip Object.registerClass('s1text', s1text); #endinitclip } movieClip 171 s1wall { #initclip Object.registerClass('s1wall', s1wall); #endinitclip } movieClip 172 scene1boss { #initclip Object.registerClass('scene1boss', scene1boss); #endinitclip } movieClip 177 s2bubble { #initclip Object.registerClass('s2bubble', s2bubble); #endinitclip } movieClip 186 s2mouth { #initclip Object.registerClass('s2mouth', s2mouth); #endinitclip } movieClip 189 s2shield { #initclip Object.registerClass('s2shield', s2shield); #endinitclip } movieClip 194 s2text { #initclip Object.registerClass('s2text', s2text); #endinitclip } movieClip 195 scene2boss { #initclip Object.registerClass('scene2boss', scene2boss); #endinitclip } movieClip 204 s3body { #initclip Object.registerClass('s3body', s3body); #endinitclip } movieClip 209 s3text { #initclip Object.registerClass('s3text', s3text); #endinitclip } movieClip 210 scene3boss { #initclip Object.registerClass('scene3boss', scene3boss); #endinitclip } movieClip 217 s4bubble { #initclip Object.registerClass('s4bubble', s4bubble); #endinitclip } movieClip 224 s4bystander { #initclip Object.registerClass('s4bystander', s4bystander); #endinitclip } movieClip 227 s4house { #initclip Object.registerClass('s4house', s4house); #endinitclip } movieClip 230 s4maam { #initclip Object.registerClass('s4maam', s4maam); #endinitclip } movieClip 233 s4path { #initclip Object.registerClass('s4path', s4path); #endinitclip } movieClip 236 s4text { #initclip Object.registerClass('s4text', s4text); #endinitclip } movieClip 241 s4walk { #initclip Object.registerClass('s4walk', s4walk); #endinitclip } movieClip 242 scene4boss { #initclip Object.registerClass('scene4boss', scene4boss); #endinitclip } movieClip 247 s5collision { #initclip Object.registerClass('s5collision', s5collision); #endinitclip } movieClip 252 s5mouth { #initclip Object.registerClass('s5mouth', s5mouth); #endinitclip } movieClip 261 s5razor { #initclip Object.registerClass('s5razor', s5razor); #endinitclip } movieClip 264 s5stubble { #initclip Object.registerClass('s5stubble', s5stubble); #endinitclip } movieClip 267 s5text { #initclip Object.registerClass('s5text', s5text); #endinitclip } movieClip 270 s5wound { #initclip Object.registerClass('s5wound', s5wound); #endinitclip } movieClip 271 scene5boss { #initclip Object.registerClass('scene5boss', scene5boss); #endinitclip } movieClip 278 s6path { #initclip Object.registerClass('s6path', s6path); #endinitclip } movieClip 283 s6spy { #initclip Object.registerClass('s6spy', s6spy); #endinitclip } movieClip 296 s6stall { #initclip Object.registerClass('s6stall', s6stall); #endinitclip } movieClip 299 s6stall_collision { #initclip Object.registerClass('s6stall_collision', s6stall_collision); #endinitclip } movieClip 302 s6text { #initclip Object.registerClass('s6text', s6text); #endinitclip } movieClip 311 s6toilet { #initclip Object.registerClass('s6toilet', s6toilet); #endinitclip } movieClip 312 scene6boss { #initclip Object.registerClass('scene6boss', scene6boss); #endinitclip } movieClip 323 s7cloud { #initclip Object.registerClass('s7cloud', s7cloud); #endinitclip } movieClip 328 s7sun { #initclip Object.registerClass('s7sun', s7sun); #endinitclip } movieClip 333 s7text { #initclip Object.registerClass('s7text', s7text); #endinitclip } movieClip 334 scene7boss { #initclip Object.registerClass('scene7boss', scene7boss); #endinitclip } movieClip 337 s8collision { #initclip Object.registerClass('s8collision', s8collision); #endinitclip } movieClip 342 s8correct { #initclip Object.registerClass('s8correct', s8correct); #endinitclip } movieClip 345 s8glass { #initclip Object.registerClass('s8glass', s8glass); #endinitclip } movieClip 350 s8target { #initclip Object.registerClass('s8target', s8target); #endinitclip } movieClip 353 s8text { #initclip Object.registerClass('s8text', s8text); #endinitclip } movieClip 396 s8wrong { #initclip Object.registerClass('s8wrong', s8wrong); #endinitclip } movieClip 397 scene8boss { #initclip Object.registerClass('scene8boss', scene8boss); #endinitclip } movieClip 408 s9exam { #initclip Object.registerClass('s9exam', s9exam); #endinitclip } movieClip 415 s9pencil { #initclip Object.registerClass('s9pencil', s9pencil); #endinitclip } movieClip 418 s9text { #initclip Object.registerClass('s9text', s9text); #endinitclip } movieClip 419 scene9boss { #initclip Object.registerClass('scene9boss', scene9boss); #endinitclip } movieClip 422 s10acrobat { #initclip Object.registerClass('s10acrobat', s10acrobat); #endinitclip } movieClip 425 s10cloud { #initclip Object.registerClass('s10cloud', s10cloud); #endinitclip } movieClip 428 s10hoop_back { #initclip Object.registerClass('s10hoop_back', s10hoop_back); #endinitclip } movieClip 431 s10hoop_front { #initclip Object.registerClass('s10hoop_front', s10hoop_front); #endinitclip } movieClip 434 s10text { #initclip Object.registerClass('s10text', s10text); #endinitclip } movieClip 435 scene10boss { #initclip Object.registerClass('scene10boss', scene10boss); #endinitclip } movieClip 438 s11collision { #initclip Object.registerClass('s11collision', s11collision); #endinitclip } movieClip 453 s11obstacle { #initclip Object.registerClass('s11obstacle', s11obstacle); #endinitclip } movieClip 458 s11player { #initclip Object.registerClass('s11player', s11player); #endinitclip } movieClip 461 s11text { #initclip Object.registerClass('s11text', s11text); #endinitclip } movieClip 474 s11timer { #initclip Object.registerClass('s11timer', s11timer); #endinitclip } movieClip 475 scene11boss { #initclip Object.registerClass('scene11boss', scene11boss); #endinitclip } movieClip 478 s12clasp { #initclip Object.registerClass('s12clasp', s12clasp); #endinitclip } movieClip 481 s12heart { #initclip Object.registerClass('s12heart', s12heart); #endinitclip } movieClip 484 s12leftarm { #initclip Object.registerClass('s12leftarm', s12leftarm); #endinitclip } movieClip 487 s12rightarm { #initclip Object.registerClass('s12rightarm', s12rightarm); #endinitclip } movieClip 490 s12text { #initclip Object.registerClass('s12text', s12text); #endinitclip } movieClip 491 scene12boss { #initclip Object.registerClass('scene12boss', scene12boss); #endinitclip } movieClip 496 s13background { #initclip Object.registerClass('s13background', s13background); #endinitclip } movieClip 499 s13collision { #initclip Object.registerClass('s13collision', s13collision); #endinitclip } movieClip 502 s13player { #initclip Object.registerClass('s13player', s13player); #endinitclip } movieClip 509 s13thing { #initclip Object.registerClass('s13thing', s13thing); #endinitclip } movieClip 510 scene13boss { #initclip Object.registerClass('scene13boss', scene13boss); #endinitclip } movieClip 513 s14background { #initclip Object.registerClass('s14background', s14background); #endinitclip } movieClip 514 s14bar { #initclip Object.registerClass('s14bar', s14bar); #endinitclip } movieClip 523 s14collision { #initclip Object.registerClass('s14collision', s14collision); #endinitclip } movieClip 526 s14negative { #initclip Object.registerClass('s14negative', s14negative); #endinitclip } movieClip 529 s14rubber { #initclip Object.registerClass('s14rubber', s14rubber); #endinitclip } movieClip 530 scene14boss { #initclip Object.registerClass('scene14boss', scene14boss); #endinitclip } movieClip 537 s15burning { #initclip Object.registerClass('s15burning', s15burning); #endinitclip } movieClip 542 s15text { #initclip Object.registerClass('s15text', s15text); #endinitclip } movieClip 543 scene15boss { #initclip Object.registerClass('scene15boss', scene15boss); #endinitclip } movieClip 546 s16bottle_back { #initclip Object.registerClass('s16bottle_back', s16bottle_back); #endinitclip } movieClip 549 s16bottle_front { #initclip Object.registerClass('s16bottle_front', s16bottle_front); #endinitclip } movieClip 552 s16collision { #initclip Object.registerClass('s16collision', s16collision); #endinitclip } movieClip 555 s16maw { #initclip Object.registerClass('s16maw', s16maw); #endinitclip } movieClip 558 s16pill { #initclip Object.registerClass('s16pill', s16pill); #endinitclip } movieClip 571 s16pressure { #initclip Object.registerClass('s16pressure', s16pressure); #endinitclip } movieClip 574 s16text { #initclip Object.registerClass('s16text', s16text); #endinitclip } movieClip 575 scene16boss { #initclip Object.registerClass('scene16boss', scene16boss); #endinitclip } movieClip 580 s17text { #initclip Object.registerClass('s17text', s17text); #endinitclip } movieClip 581 scene17boss { #initclip Object.registerClass('scene17boss', scene17boss); #endinitclip } movieClip 592 s18bill { #initclip Object.registerClass('s18bill', s18bill); #endinitclip } movieClip 597 s18buyer { #initclip Object.registerClass('s18buyer', s18buyer); #endinitclip } movieClip 600 s18card { #initclip Object.registerClass('s18card', s18card); #endinitclip } movieClip 603 s18customer_back { #initclip Object.registerClass('s18customer_back', s18customer_back); #endinitclip } movieClip 606 s18customer_front { #initclip Object.registerClass('s18customer_front', s18customer_front); #endinitclip } movieClip 609 s18text { #initclip Object.registerClass('s18text', s18text); #endinitclip } movieClip 610 scene18boss { #initclip Object.registerClass('scene18boss', scene18boss); #endinitclip } movieClip 613 s19arrow { #initclip Object.registerClass('s19arrow', s19arrow); #endinitclip } movieClip 616 s19bottle_back { #initclip Object.registerClass('s19bottle_back', s19bottle_back); #endinitclip } movieClip 619 s19bottle_front { #initclip Object.registerClass('s19bottle_front', s19bottle_front); #endinitclip } movieClip 628 s19liver { #initclip Object.registerClass('s19liver', s19liver); #endinitclip } movieClip 631 s19maw { #initclip Object.registerClass('s19maw', s19maw); #endinitclip } movieClip 634 s19pill { #initclip Object.registerClass('s19pill', s19pill); #endinitclip } movieClip 639 s19protip { #initclip Object.registerClass('s19protip', s19protip); #endinitclip } movieClip 648 s19status { #initclip Object.registerClass('s19status', s19status); #endinitclip } movieClip 649 scene19boss { #initclip Object.registerClass('scene19boss', scene19boss); #endinitclip } movieClip 652 s20boobs { #initclip Object.registerClass('s20boobs', s20boobs); #endinitclip } movieClip 655 s20collision { #initclip Object.registerClass('s20collision', s20collision); #endinitclip } movieClip 660 s20nipple { #initclip Object.registerClass('s20nipple', s20nipple); #endinitclip } movieClip 665 s20spike { #initclip Object.registerClass('s20spike', s20spike); #endinitclip } movieClip 668 s20text { #initclip Object.registerClass('s20text', s20text); #endinitclip } movieClip 669 scene20boss { #initclip Object.registerClass('scene20boss', scene20boss); #endinitclip } movieClip 672 s21path { #initclip Object.registerClass('s21path', s21path); #endinitclip } movieClip 675 s21text { #initclip Object.registerClass('s21text', s21text); #endinitclip } movieClip 680 s21walk { #initclip Object.registerClass('s21walk', s21walk); #endinitclip } movieClip 681 scene21boss { #initclip Object.registerClass('scene21boss', scene21boss); #endinitclip } movieClip 684 s22arrow { #initclip Object.registerClass('s22arrow', s22arrow); #endinitclip } movieClip 687 s22bottle { #initclip Object.registerClass('s22bottle', s22bottle); #endinitclip } movieClip 690 s22trash { #initclip Object.registerClass('s22trash', s22trash); #endinitclip } movieClip 691 scene22boss { #initclip Object.registerClass('scene22boss', scene22boss); #endinitclip } movieClip 694 s23bubble { #initclip Object.registerClass('s23bubble', s23bubble); #endinitclip } movieClip 703 s23mouth { #initclip Object.registerClass('s23mouth', s23mouth); #endinitclip } movieClip 706 s23shield { #initclip Object.registerClass('s23shield', s23shield); #endinitclip } movieClip 709 s23tear { #initclip Object.registerClass('s23tear', s23tear); #endinitclip } movieClip 712 s23text { #initclip Object.registerClass('s23text', s23text); #endinitclip } movieClip 713 scene23boss { #initclip Object.registerClass('scene23boss', scene23boss); #endinitclip } movieClip 726 s24chocolate { #initclip Object.registerClass('s24chocolate', s24chocolate); #endinitclip } movieClip 729 s24collision { #initclip Object.registerClass('s24collision', s24collision); #endinitclip } movieClip 732 s24maze { #initclip Object.registerClass('s24maze', s24maze); #endinitclip } movieClip 749 s24muncher { #initclip Object.registerClass('s24muncher', s24muncher); #endinitclip } movieClip 750 scene24boss { #initclip Object.registerClass('scene24boss', scene24boss); #endinitclip } movieClip 753 s25cake { #initclip Object.registerClass('s25cake', s25cake); #endinitclip } movieClip 756 s25icecream { #initclip Object.registerClass('s25icecream', s25icecream); #endinitclip } movieClip 781 s25muncher { #initclip Object.registerClass('s25muncher', s25muncher); #endinitclip } movieClip 784 s25pizza { #initclip Object.registerClass('s25pizza', s25pizza); #endinitclip } movieClip 787 s25text { #initclip Object.registerClass('s25text', s25text); #endinitclip } movieClip 788 scene25boss { #initclip Object.registerClass('scene25boss', scene25boss); #endinitclip } movieClip 791 s26boobs { #initclip Object.registerClass('s26boobs', s26boobs); #endinitclip } movieClip 798 s26collision { #initclip Object.registerClass('s26collision', s26collision); #endinitclip } movieClip 807 s26razor { #initclip Object.registerClass('s26razor', s26razor); #endinitclip } movieClip 810 s26stubble { #initclip Object.registerClass('s26stubble', s26stubble); #endinitclip } movieClip 813 s26text { #initclip Object.registerClass('s26text', s26text); #endinitclip } movieClip 814 scene26boss { #initclip Object.registerClass('scene26boss', scene26boss); #endinitclip } movieClip 815 s27body { #initclip Object.registerClass('s27body', s27body); #endinitclip } movieClip 818 s27bodypart { #initclip Object.registerClass('s27bodypart', s27bodypart); #endinitclip } movieClip 821 s27text { #initclip Object.registerClass('s27text', s27text); #endinitclip } movieClip 824 s27wall { #initclip Object.registerClass('s27wall', s27wall); #endinitclip } movieClip 825 scene27boss { #initclip Object.registerClass('scene27boss', scene27boss); #endinitclip } movieClip 832 s28burning { #initclip Object.registerClass('s28burning', s28burning); #endinitclip } movieClip 837 s28text { #initclip Object.registerClass('s28text', s28text); #endinitclip } movieClip 838 scene28boss { #initclip Object.registerClass('scene28boss', scene28boss); #endinitclip } movieClip 841 s29bg { #initclip Object.registerClass('s29bg', s29bg); #endinitclip } movieClip 844 s29checkout { #initclip Object.registerClass('s29checkout', s29checkout); #endinitclip } movieClip 847 s29collision { #initclip Object.registerClass('s29collision', s29collision); #endinitclip } movieClip 852 s29cursor { #initclip Object.registerClass('s29cursor', s29cursor); #endinitclip } movieClip 855 s29frame { #initclip Object.registerClass('s29frame', s29frame); #endinitclip } movieClip 856 scene29boss { #initclip Object.registerClass('scene29boss', scene29boss); #endinitclip } movieClip 859 s30boobs { #initclip Object.registerClass('s30boobs', s30boobs); #endinitclip } movieClip 862 s30mouth { #initclip Object.registerClass('s30mouth', s30mouth); #endinitclip } movieClip 871 s30razor { #initclip Object.registerClass('s30razor', s30razor); #endinitclip } movieClip 874 s30stubble { #initclip Object.registerClass('s30stubble', s30stubble); #endinitclip } movieClip 879 s30text { #initclip Object.registerClass('s30text', s30text); #endinitclip } movieClip 898 s30twinkle { #initclip Object.registerClass('s30twinkle', s30twinkle); #endinitclip } movieClip 899 scene30boss { #initclip Object.registerClass('scene30boss', scene30boss); #endinitclip } movieClip 910 s31present { #initclip Object.registerClass('s31present', s31present); #endinitclip } movieClip 915 s31text { #initclip Object.registerClass('s31text', s31text); #endinitclip } movieClip 916 scene31boss { #initclip Object.registerClass('scene31boss', scene31boss); #endinitclip } movieClip 919 s32path { #initclip Object.registerClass('s32path', s32path); #endinitclip } movieClip 944 s32reflection { #initclip Object.registerClass('s32reflection', s32reflection); #endinitclip } movieClip 945 s32spy { #initclip Object.registerClass('s32spy', s32spy); #endinitclip } movieClip 946 scene32boss { #initclip Object.registerClass('scene32boss', scene32boss); #endinitclip } movieClip 951 s33bubble { #initclip Object.registerClass('s33bubble', s33bubble); #endinitclip } movieClip 960 s33mouth { #initclip Object.registerClass('s33mouth', s33mouth); #endinitclip } movieClip 963 s33shield { #initclip Object.registerClass('s33shield', s33shield); #endinitclip } movieClip 966 s33text { #initclip Object.registerClass('s33text', s33text); #endinitclip } movieClip 967 scene33boss { #initclip Object.registerClass('scene33boss', scene33boss); #endinitclip } movieClip 970 s34ball { #initclip Object.registerClass('s34ball', s34ball); #endinitclip } movieClip 973 s34paddle { #initclip Object.registerClass('s34paddle', s34paddle); #endinitclip } movieClip 976 s34wall { #initclip Object.registerClass('s34wall', s34wall); #endinitclip } movieClip 977 scene34boss { #initclip Object.registerClass('scene34boss', scene34boss); #endinitclip } movieClip 986 s35collision { #initclip Object.registerClass('s35collision', s35collision); #endinitclip } movieClip 987 s35spike { #initclip Object.registerClass('s35spike', s35spike); #endinitclip } movieClip 992 s35text { #initclip Object.registerClass('s35text', s35text); #endinitclip } movieClip 1001 s35tits { #initclip Object.registerClass('s35tits', s35tits); #endinitclip } movieClip 1002 scene35boss { #initclip Object.registerClass('scene35boss', scene35boss); #endinitclip } movieClip 1019 s36eye { #initclip Object.registerClass('s36eye', s36eye); #endinitclip } movieClip 1022 s36person { #initclip Object.registerClass('s36person', s36person); #endinitclip } movieClip 1027 s36player { #initclip Object.registerClass('s36player', s36player); #endinitclip } movieClip 1030 s36text { #initclip Object.registerClass('s36text', s36text); #endinitclip } movieClip 1031 scene36boss { #initclip Object.registerClass('scene36boss', scene36boss); #endinitclip } movieClip 1034 s37arrow { #initclip Object.registerClass('s37arrow', s37arrow); #endinitclip } movieClip 1041 s37phone { #initclip Object.registerClass('s37phone', s37phone); #endinitclip } movieClip 1042 scene37boss { #initclip Object.registerClass('scene37boss', scene37boss); #endinitclip } movieClip 1045 s38arrow { #initclip Object.registerClass('s38arrow', s38arrow); #endinitclip } movieClip 1048 s38phone { #initclip Object.registerClass('s38phone', s38phone); #endinitclip } movieClip 1049 scene38boss { #initclip Object.registerClass('scene38boss', scene38boss); #endinitclip } movieClip 1054 s39asshole { #initclip Object.registerClass('s39asshole', s39asshole); #endinitclip } movieClip 1057 s39path { #initclip Object.registerClass('s39path', s39path); #endinitclip } movieClip 1060 s39text { #initclip Object.registerClass('s39text', s39text); #endinitclip } movieClip 1061 s39walk { #initclip Object.registerClass('s39walk', s39walk); #endinitclip } movieClip 1062 scene39boss { #initclip Object.registerClass('scene39boss', scene39boss); #endinitclip } movieClip 1073 s40butterfly { #initclip Object.registerClass('s40butterfly', s40butterfly); #endinitclip } movieClip 1074 s40cloud { #initclip Object.registerClass('s40cloud', s40cloud); #endinitclip } movieClip 1075 s40sun { #initclip Object.registerClass('s40sun', s40sun); #endinitclip } movieClip 1088 s40text { #initclip Object.registerClass('s40text', s40text); #endinitclip } movieClip 1091 s40trees { #initclip Object.registerClass('s40trees', s40trees); #endinitclip } movieClip 1092 scene40boss { #initclip Object.registerClass('scene40boss', scene40boss); #endinitclip } movieClip 1109 s41body { #initclip Object.registerClass('s41body', s41body); #endinitclip } movieClip 1110 scene41boss { #initclip Object.registerClass('scene41boss', scene41boss); #endinitclip } movieClip 1113 s42dot { #initclip Object.registerClass('s42dot', s42dot); #endinitclip } movieClip 1114 scene42boss { #initclip Object.registerClass('scene42boss', scene42boss); #endinitclip } movieClip 1115 StatiqueBox { #initclip Object.registerClass('StatiqueBox', StatiqueBox); #endinitclip } movieClip 1116 Statique { #initclip Object.registerClass('Statique', Statique); #endinitclip } movieClip 1123 title_credit { #initclip Object.registerClass('title_credit', title_credit); #endinitclip } movieClip 1128 title_arrow { #initclip Object.registerClass('title_arrow', title_arrow); #endinitclip } movieClip 1131 title_disclaimer { #initclip Object.registerClass('title_disclaimer', title_disclaimer); #endinitclip } movieClip 1148 title_letter { #initclip Object.registerClass('title_letter', title_letter); #endinitclip } movieClip 1149 titleboss { #initclip Object.registerClass('titleboss', titleboss); #endinitclip } movieClip 1152 s30body { #initclip Object.registerClass('s30body', s30body); #endinitclip } movieClip 1155 s26body { #initclip Object.registerClass('s26body', s26body); #endinitclip } movieClip 1191 { frame 1 { stop(); } } frame 3 { stop(); }




http://swfchan.com/22/105815/info.shtml
Created: 17/3 -2019 04:51:31 Last modified: 17/3 -2019 04:51:31 Server time: 02/05 -2024 04:31:25