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

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

522607_replayingthegame.swf

This is the info page for
Flash #168710

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 107 // unknown tag 88 length 64 frame 1 { _root.API_Settings = {'movie_id': 10362, 'enc_key': 'IQVcVfl0Vqe6KBiIFc4FZeGW5W7cakL2', 'debug_mode': false, 'movie_version': ''}; } frame 1 { function gotoMySite() { getURL('http://www.nutcasenightmare.com', '_blank'); } function deaderClick() {} function deadClick() { getURL('http://twitter.com/home?status=Don't worry, you didn't miss a THING last decade. http://bit.ly/4s0GAE', '_blank'); } function downloadClick() { getURL('http://thegame.nutcasenightmare.com/downloads', '_blank'); } var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); myMenu.builtInItems.quality = true; var copyrightNotice = new ContextMenuItem('Tweet this game', deadClick); var mySiteLink = new ContextMenuItem('Visit Site', gotoMySite); var downloadLink = new ContextMenuItem('Download Levels and Music', downloadClick); var logo = new ContextMenuItem('REPLAYING :the game:', deaderClick); myMenu.customItems.push(logo, mySiteLink, downloadLink, copyrightNotice); mySiteLink.separatorBefore = true; _root.menu = myMenu; } frame 1 { function blankSlate(i) { thegame.data.gameArray[i].icon = ['0x' + (random(255)).toString(16) + (random(255)).toString(16) + (random(255)).toString(16), 0, 0, 0, 100]; thegame.data.gameArray[i].word = ['UNTITLED', 'substandard subtitle', 'I HAVE NO NAME', 'I DON\'T NEED', 'YOUR LABELS', 'you have to one-up this one-liner']; thegame.data.gameArray[i].char = [1, 1, 1, 1, 1]; thegame.data.gameArray[i].info = ['anonymous', 'no comment.']; } _global.levelArray = new Array('REPLAY', 'ART', 'APOCALYPSE', 'CHRISTIANITY', 'GUNS', 'PERVERTS', 'DIGITAL', 'STOCK', 'CALCULUS', 'MINDBODY', 'OPEN SOURCE', 'MACROECON', 'EDUCATION', 'IRAQ', 'UTILITARIANISM', 'FREUD', 'NP-COMPLETE', 'HAMLET', 'PALIN', 'INTELLIGENT DESIGN', 'CHEMISTRY', 'CANADA', 'EPICROLL', 'CULTURAL', 'LOVE', 'ATHEISM', 'AIG', 'CULT', 'NARCISSISM', 'THE END'); _global.ORIGINAL_ARRAY = _global.levelArray; thegame = SharedObject.getLocal('thegame_profile'); alreadyExists = thegame.data.existence; if (!alreadyExists) { thegame.data.existence = true; } if (!alreadyExists) { thegame.data.playedThrough = new Array(); thegame.data.playedThrough.push('REPLAY'); } _global.fuck = function (string) { number = -1; i = 0; while (i < _global.playedThrough.length) { if (_global.playedThrough[i] == string) { return i; } ++i; } return number; }; _global.hasItBeenPlayed = function (string) { tmpHIBPvalue = fuck(string); if (tmpHIBPvalue == -1) { return false; } else { return true; } }; _global.playedThrough = thegame.data.playedThrough; thegame.data.flush(); if (!alreadyExists) { thegame.data.playlistArray = new Array(3); i = 0; while (i < 3) { thegame.data.playlistArray[i] = new Object(); ++i; } thegame.data.playlistArray[0].name = 'The Best of The Game'; thegame.data.playlistArray[1].name = 'The Sound of Violence'; thegame.data.playlistArray[2].name = 'Political Tickles'; thegame.data.playlistArray[0].series = new Array('APOCALYPSE', 'GUNS', 'MACROECON', 'STOCK', 'UTILITARIANISM', 'NP-COMPLETE', 'EPICROLL', 'THE END'); thegame.data.playlistArray[1].series = new Array('ART', 'APOCALYPSE', 'GUNS', 'UTILITARIANISM', 'AFGHANISTAN'); thegame.data.playlistArray[2].series = new Array('GUNS', 'MACROECON', 'IRAQ', 'AFGHANISTAN', 'PALIN', 'AIG'); } _global.playlistArray = thegame.data.playlistArray; thegame.data.flush(); if (!alreadyExists) { thegame.data.gameArray = new Array(); i = 0; while (i < 3) { thegame.data.gameArray[i] = new Object(); thegame.data.gameArray[i].icon = new Array(5); thegame.data.gameArray[i].word = new Array(6); thegame.data.gameArray[i].char = new Array(5); thegame.data.gameArray[i].info = new Array(2); ++i; } thegame.data.gameArray[0].icon = ['0xE6DA77', 0, 0, 30, 200]; thegame.data.gameArray[0].word = ['NEWGROUNDS', 'yayomg', 'FIRST', 'FLASH PORTAL', '', 'in both chronology and awesomeness.']; thegame.data.gameArray[0].char = [76, 1, 1, 105, 106]; thegame.data.gameArray[0].info = ['nutcasenightmare', 'really nice guys, ya know?']; thegame.data.gameArray[1].icon = ['0x760101', 0, -30, 180, 200]; thegame.data.gameArray[1].word = ['DISNEY', 'dissin disney, mockey mouse', 'BUY MARVEL', '???', 'PROFIT', 'why not dc comics? coz of the GODDAMN BATMAN.']; thegame.data.gameArray[1].char = [76, 1, 1, 105, 106]; thegame.data.gameArray[1].info = ['nutcasenightmare', 'oh screw this, let\'s just go see what\'s up with Warners.']; thegame.data.gameArray[2].icon = ['0x000000', 0, -10, -20, 200]; thegame.data.gameArray[2].word = ['HEALTHCARE', 'mortality is a pre-existing condition', 'TWO THINGS ARE', 'INEVITABLE;', 'DEATH AND TAXES', 'both due to the third: lobbyists']; thegame.data.gameArray[2].char = [76, 1, 1, 105, 106]; thegame.data.gameArray[2].info = ['nutcasenightmare', 'complex issue is complex. simple game is simple. hence, crappy.']; } _global.gameArray = thegame.data.gameArray; thegame.data.flush(); if (!alreadyExists) { thegame.data.unlockables = new Object(); thegame.data.unlockables.end = false; thegame.data.unlockables.cake = false; thegame.data.unlockables.no = false; thegame.data.unlockables.blood = false; thegame.data.unlockables.all = false; thegame.data.unlockables.tweet = false; thegame.data.unlockables.mona = false; } _global.unlockables = thegame.data.unlockables; thegame.data.flush(); if (!alreadyExists) { thegame.data.highscores = new Object(); thegame.data.highscores.aig = 0; thegame.data.highscores.stock = 0; thegame.data.highscores.education = 0; thegame.data.highscores.utilitarianism = 0; thegame.data.highscores.macroecon = 0; } _global.highscores = thegame.data.highscores; thegame.data.flush(); if (!alreadyExists) { thegame.data.censorOff = false; } _global.censorOff = thegame.data.censorOff; thegame.data.flush(); } movieClip 30 { frame 4 { stop(); } } button 33 { on (release) { this._visible = false; } } // unknown tag 88 length 68 // unknown tag 88 length 62 movieClip 42 { frame 1 { _visible = false; var checkConnection = function (event) { if (!event.success) { _visible = true; gotoAndStop(3); } }; if (com.Newgrounds.NewgroundsAPI.isNewgrounds() || _root.API_Settings.debug_mode) { com.Newgrounds.NewgroundsAPI.addEventListener(com.Newgrounds.NewgroundsAPI.events.MOVIE_CONNECTED, checkConnection); if (!com.Newgrounds.NewgroundsAPI.hasUserSession() && !_root.API_Settings.debug_mode) { _visible = true; gotoAndStop(2); } } com.Newgrounds.NewgroundsAPI.setMovieVersion(_root.API_Settings.movie_version); com.Newgrounds.NewgroundsAPI.connectMovie(_root.API_Settings.movie_id, _root.API_Settings.enc_key, _root.API_Settings.debug_mode); com.Newgrounds.NewgroundsAPI.loadMedals(); stop(); } } movieClip 3378 __Packages.com.Newgrounds.BaseN { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.BaseN) { var v1 = function (hash) { this.ceiling = 100000000000000.0; if (hash) { this.hashIndex = hash; } else { this.hashIndex = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/'; } this.bitSize = this.hashIndex.length; this.hashVal = new Object(); this.i = 0; while (this.i < this.bitSize) { this.hashVal[this.hashIndex.charAt(this.i)] = this.i; ++this.i; } }; com.Newgrounds.BaseN = v1; var v2 = v1.prototype; v2.verify = function (s) { if (this.hashVal[s] != undefined) { return true; } else { return false; } }; v2.encode = function (n, minchars) { this.debug.lastencode = ''; if (typeof this.i != 'string') { n = n.toString(); } if (n.charAt(0) == '-') { var v3 = '-'; n = n.substring(1); } else { var v3 = ''; } if ((String(n)).indexOf('.') > -1) { var v4 = (String(n)).split('.', 2); return v3 + this.baseNEncoder(v4[0], minchars) + '.' + this.baseNEncoder(v4[1]); } else { this.debug.lastencode += '\tNo decimal\r'; return v3 + this.baseNEncoder(n, minchars); } }; v2.decode = function (s) { var v4 = 1; if (s.charAt(0) == '-') { v4 = -1; s = s.substring(1, s.length); } var v3 = s.indexOf('.'); if (v3 > -1) { var v5 = Math.pow(10, this.baseNDecoder(s.substring(v3 + 1, s.length))); return (this.baseNDecoder(s.substring(0, v3)) / v5) * v4; } else { return this.baseNDecoder(s) * v4; } }; v2.baseNEncoder = function (n, minchars) { if (!minchars) { minchars = 1; } var v4 = ''; while (n != 0) { n = Math.round(n); var v3 = n % this.bitSize; if (Math.round(v3) != v3) { trace('BaseN failed on ' + n + '%' + this.bitSize + ' = ' + v3 + ' ' + int(n) + ' ' + int(this.bitSize)); } v4 = this.hashIndex.charAt(v3) + v4; this.debug.lastencode += '\t-> n:' + n + ' % bitSize:' + this.bitSize + ' = ' + v3 + ', final char=' + v4 + '\n'; n -= v3; n /= this.bitSize; } if (minchars) { while (v4.length < minchars) { v4 = this.hashIndex.charAt(0) + v4; } } return v4; }; v2.baseNDecoder = function (s) { var v2 = 0; var v6 = 0; this.i = 0; while (this.i < s.length) { var v3 = s.charAt(s.length - this.i - 1); if (v3 == this.hashIndex.charAt(0)) { var v5 = 0; } else { var v5 = this.hashVal[v3] * Math.pow(this.bitSize, this.i); } v2 += v5; if (v2 >= this.ceiling) { v6 += (v2 - v2 % this.ceiling) / this.ceiling; v2 %= this.ceiling; } ++this.i; } if (v6 > 0) { v2 = '' + v2; while (v2.length < (this.ceiling.toString()).length - 1) { v2 = '0' + v2; } v2 = '' + v6 + v2; } return v2; }; v2.debug = new Object(); ASSetPropFlags(com.Newgrounds.BaseN.prototype, null, 1); } #endinitclip } movieClip 3379 __Packages.com.Newgrounds.NewgroundsAPIError { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.NewgroundsAPIError) { var v1 = function (error, msg) { if ((Number(error)).toString() == String(error)) { error = Number(error); } else { if (com.Newgrounds.NewgroundsAPIError.error_codes[String(error)]) { error = com.Newgrounds.NewgroundsAPIError.error_codes[String(error)]; } else { error = 0; } } this.code = error; this.message = msg; this.name = com.Newgrounds.NewgroundsAPIError.error_names[error]; this.alias = com.Newgrounds.NewgroundsAPIError.aliases[error]; }; com.Newgrounds.NewgroundsAPIError = v1; var v2 = v1.prototype; v1.init_codes = function () { var v2 = new Object(); var v1 = 0; while (v1 < com.Newgrounds.NewgroundsAPIError.aliases.length) { v2[com.Newgrounds.NewgroundsAPIError.aliases[v1]] = v1; ++v1; } return v2; }; v1.init_names = function () { var v5 = new Array(); var v3 = 0; while (v3 < com.Newgrounds.NewgroundsAPIError.aliases.length) { var v2 = (com.Newgrounds.NewgroundsAPIError.aliases[v3].toLowerCase()).split('_'); var v1 = 0; while (v1 < v2.length) { v2[v1] = (v2[v1].substr(0, 1)).toUpperCase() + v2[v1].substr(1, v2[v1].length); for (var v4 in com.Newgrounds.NewgroundsAPIError.always_caps) { if (v2[v1].toUpperCase() == com.Newgrounds.NewgroundsAPIError.always_caps[v4]) { v2[v1] = v2[v1].toUpperCase(); } } ++v1; } v5[v3] = v2.join(' '); ++v3; } return v5; }; v2.isError = function () { return true; }; v1.aliases = new Array('UNKNOWN_ERROR', 'INVALID_API_ID', 'MISSING_PARAM', 'INVALID_STAT_ID', 'INVALID_COMMAND_ID', 'FLASH_ADS_NOT_APPROVED', 'PERMISSION_DENIED', 'IDENTIFICATION_REQUIRED', 'INVALID_EMAIL_ADDRESS', 'BANNED_USER', 'SESSION_EXPIRED', 'INVALID_SCORE', 'INVALID_MEDAL', 'INVALID_FOLDER', 'FILE_NOT_FOUND', 'SITE_ID_REQUIRED', 'UPLOAD_IN_PROGRESS', 'USER_CANCELLED', 'CONFIRM_REQUEST', 'CONNECTION_FAILED'); v1.always_caps = new Array('API', 'URL', 'ID'); v1.error_codes = com.Newgrounds.NewgroundsAPIError.init_codes(); v1.error_names = com.Newgrounds.NewgroundsAPIError.init_names(); v2.code = 0; ASSetPropFlags(com.Newgrounds.NewgroundsAPIError.prototype, null, 1); } #endinitclip } movieClip 3380 __Packages.com.Newgrounds.NewgroundsAPI { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.NewgroundsAPI) { var v1 = function () {}; com.Newgrounds.NewgroundsAPI = v1; var v2 = v1.prototype; v1.setMovieVersion = function (v) { if (v) { com.Newgrounds.NewgroundsAPI.version = String(v); } }; v1.setUserEmail = function (e) { com.Newgrounds.NewgroundsAPI.user_email = e; }; v1.getOfficialVersionURL = function () { var v1 = com.Newgrounds.NewgroundsAPI.GATEWAY_URL + '?tracker_id=' + com.Newgrounds.NewgroundsAPI.movie_id + '&command_id=' + com.Newgrounds.NewgroundsAPI.getCommandID('loadOfficalVersion') + '&seed=' + Math.random(); if (com.Newgrounds.NewgroundsAPI.debug) { v1 += '&debug=1'; } return v1; }; v1.hasUserSession = function () { if (com.Newgrounds.NewgroundsAPI.session_id && com.Newgrounds.NewgroundsAPI.publisher_id) { return true; return false; } if (_root.NewgroundsAPI_PublisherID && _root.NewgroundsAPI_SessionID) { return true; } return false; }; v1.isNewgrounds = function () { return com.Newgrounds.NewgroundsAPI.publisher_id == 1 || _root.NewgroundsAPI_PublisherID == 1 || ((com.Newgrounds.NewgroundsAPI.getHost()).toLowerCase()).indexOf('ungrounded.net') > -1; }; v1.hasPublisher = function () { return com.Newgrounds.NewgroundsAPI.publisher_id || _root.NewgroundsAPI_PublisherID; }; v1.hasUserEmail = function () { if (com.Newgrounds.NewgroundsAPI.user_email) { return true; } return false; }; v1.connectionTimeOut = function () { clearInterval(com.Newgrounds.NewgroundsAPI.timeout); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MOVIE_CONNECTED, false, new com.Newgrounds.NewgroundsAPIError('CONNECTION_FAILED', 'Connection to NewgroundsAPI gateway timed out.')); }; v1.connectMovie = function (m_id, encrypt_key, debug_mode) { if (com.Newgrounds.NewgroundsAPI.connected) { return undefined; } var v2 = function () { com.Newgrounds.NewgroundsAPI.connectionTimeOut(); }; com.Newgrounds.NewgroundsAPI.timeout = setInterval(v2, 8000, null); if (!m_id) { com.Newgrounds.NewgroundsAPI.fatalError('NewgroundsAPI.connectMovie() - missing required movie_id parameter', 'connectMovie'); } com.Newgrounds.NewgroundsAPI.movie_id = String(m_id); com.Newgrounds.NewgroundsAPI.tracker_id = Number(com.Newgrounds.NewgroundsAPI.movie_id.substring(0, com.Newgrounds.NewgroundsAPI.movie_id.indexOf(':'))); com.Newgrounds.NewgroundsAPI.encryption_key = encrypt_key; com.Newgrounds.NewgroundsAPI.debug = debug_mode; if (_root.NewgroundsAPI_PublisherID) { com.Newgrounds.NewgroundsAPI.publisher_id = _root.NewgroundsAPI_PublisherID; if (_root.NewgroundsAPI_SessionID) { com.Newgrounds.NewgroundsAPI.session_id = _root.NewgroundsAPI_SessionID; } } else { com.Newgrounds.NewgroundsAPI.publisher_id = 1; com.Newgrounds.NewgroundsAPI.session_id = null; com.Newgrounds.NewgroundsAPI.user_id = 0; com.Newgrounds.NewgroundsAPI.user_name = 'Guest'; } if (_root.NewgroundsAPI_UserName) { com.Newgrounds.NewgroundsAPI.user_name = _root.NewgroundsAPI_UserName; } if (_root.NewgroundsAPI_UserID) { com.Newgrounds.NewgroundsAPI.user_id = _root.NewgroundsAPI_UserID; } com.Newgrounds.NewgroundsAPI.connected = true; com.Newgrounds.NewgroundsAPI.sendCommand('connectMovie', {'host': com.Newgrounds.NewgroundsAPI.getHost(), 'movie_version': com.Newgrounds.NewgroundsAPI.version}); }; v1.getHost = function () { if (!com.Newgrounds.NewgroundsAPI.host) { var v1 = _url; if (v1.indexOf('http://') > -1 or v1.indexOf('https://') > -1) { com.Newgrounds.NewgroundsAPI.host = (v1.split('/'))[2].toLowerCase(); return com.Newgrounds.NewgroundsAPI.host; } com.Newgrounds.NewgroundsAPI.host = 'localhost'; } return com.Newgrounds.NewgroundsAPI.host; }; v1.loadNewgrounds = function () { com.Newgrounds.NewgroundsAPI.sendCommand('loadNewgrounds', {'host': com.Newgrounds.NewgroundsAPI.getHost()}, true); }; v1.loadMySite = function () { com.Newgrounds.NewgroundsAPI.sendCommand('loadMySite', {'host': com.Newgrounds.NewgroundsAPI.getHost()}); }; v1.loadCustomLink = function (link) { com.Newgrounds.NewgroundsAPI.sendCommand('loadCustomLink', {'host': com.Newgrounds.NewgroundsAPI.getHost(), 'link': link}, true); }; v1.logCustomEvent = function (event) { com.Newgrounds.NewgroundsAPI.sendCommand('logCustomEvent', {'host': com.Newgrounds.NewgroundsAPI.getHost(), 'event': event}); }; v1.postScore = function (score, value, get_best) { if (!score or value == undefined) { com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('postScore')}, new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', 'missing required parameter(s)')); return undefined; } com.Newgrounds.NewgroundsAPI.sendSecureCommand('postScore', {'score': score, 'value': value, 'get_best': get_best}); }; v1.getTodaysScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 't', params, 'getTodaysScores'); }; v1.getYesterdaysScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'y', params, 'getYesterdaysScores'); }; v1.getThisWeeksScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'w', params, 'getThisWeeksScores'); }; v1.getThisMonthsScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'm', params, 'getThisMonthsScores'); }; v1.getThisYearsScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'y', params, 'getThisYearsScores'); }; v1.getAlltimeScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'a', params, 'getAlltimeScores'); }; v1.getScores = function (score, period, params, command_name) { if (!score) { com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID(command_name)}, new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', 'missing required score name')); return undefined; } if (!params) { params = new Object(); } if (!com.Newgrounds.NewgroundsAPI.hasUserSession()) { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.SCORES_LOADED, false, new com.Newgrounds.NewgroundsAPIError('SITE_ID_REQUIRED', 'Host \'' + com.Newgrounds.NewgroundsAPI.getHost() + '\' does not have high scores enabled')); return undefined; } params.publisher_id = com.Newgrounds.NewgroundsAPI.publisher_id; params.period = period; params.score = score; if (params.user_id) { var v3 = period; } else { var v3 = period + '-u'; } if (com.Newgrounds.NewgroundsAPI.score_page_counts[v3] == undefined) { params.request_page_count = true; } com.Newgrounds.NewgroundsAPI.sendCommand('getScores', params); }; v1.unlockMedal = function (medal, get_score) { if (!medal) { com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('unlockMedal')}, new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', 'missing required medal name')); return undefined; } var v1 = new Object(); v1.medal = medal; if (get_score) { v1.get_score = get_score; } com.Newgrounds.NewgroundsAPI.sendSecureCommand('unlockMedal', v1); }; v1.loadMedals = function () { if (com.Newgrounds.NewgroundsAPI.medals) { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MEDALS_LOADED, true, {'medals': com.Newgrounds.NewgroundsAPI.medals}); return undefined; } var v1 = new Object(); if (com.Newgrounds.NewgroundsAPI.hasUserSession()) { v1.publisher_id = com.Newgrounds.NewgroundsAPI.publisher_id; v1.user_id = com.Newgrounds.NewgroundsAPI.user_id; } com.Newgrounds.NewgroundsAPI.sendCommand('getMedals', v1); }; v1.getMedals = function () { return com.Newgrounds.NewgroundsAPI.medals; }; v1.saveLocal = function (save_id, save_data, size_allocation) { if (!com.Newgrounds.NewgroundsAPI.sharedObjects[save_id]) { com.Newgrounds.NewgroundsAPI.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.Newgrounds.NewgroundsAPI.movie_id + '_' + save_id); } com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].data[save_id] = com.Newgrounds.NewgroundsAPI.encodeData(save_data); com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].flush(); }; v1.loadLocal = function (save_id) { if (!com.Newgrounds.NewgroundsAPI.sharedObjects[save_id]) { com.Newgrounds.NewgroundsAPI.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.Newgrounds.NewgroundsAPI.movie_id + '_' + save_id); } com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].flush(); if (com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].data[save_id]) { return com.Newgrounds.NewgroundsAPI.decodeData(com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].data[save_id]); } else { return null; } }; v1.encodeData = function (data) { return com.Newgrounds.NewgroundsAPI.compressHex(com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(data), com.Newgrounds.NewgroundsAPI.encryption_key)); }; v1.decodeData = function (base) { return com.Newgrounds.JSON.decode(com.Newgrounds.RC4.decrypt(com.Newgrounds.NewgroundsAPI.uncompressHex(base), com.Newgrounds.NewgroundsAPI.encryption_key)); }; v1.compressHex = function (hex_value) { var v5 = hex_value.length % 6; var v4 = ''; var v1 = 0; while (v1 < hex_value.length) { var v2 = Number('0x' + hex_value.substr(v1, 6)); v4 += com.Newgrounds.NewgroundsAPI.compressor.encode(v2, 4); v1 += 6; } return v5 + v4; }; v1.uncompressHex = function (base_value) { var v8 = Number(base_value.charAt(0)); var v7 = ''; var v3; var v2 = 1; while (v2 < base_value.length) { var v6 = base_value.substr(v2, 4); var v5 = com.Newgrounds.NewgroundsAPI.compressor.decode(v6); var v1 = com.Newgrounds.NewgroundsAPI.dec2hex(v5); if (v2 + 4 < base_value.length) { v3 = 6; } else { v3 = v8; } while (v1.length < v3) { v1 = '0' + v1; } v7 += v1; v2 += 4; } return v7; }; v1.dec2hex = function (dec) { var v4 = '0123456789ABCDEF'; var v3 = ''; while (dec > 0) { var v2 = dec % 16; v3 = v4.charAt(v2) + v3; dec = (dec - v2) / 16; } return v3; }; v1.saveFile = function (folder, filename, contents, thumbnail_source) { if (!com.Newgrounds.NewgroundsAPI.save_file) { com.Newgrounds.NewgroundsAPI.save_file = new com.Newgrounds.NewgroundsAPISaveFile(com.Newgrounds.NewgroundsAPI.movie_id, folder, filename); com.Newgrounds.NewgroundsAPI.save_file.setContents(contents); if (thumbnail_source) { com.Newgrounds.NewgroundsAPI.save_file.setThumbnail(thumbnail_source); } com.Newgrounds.NewgroundsAPI.save_file.onError = function (msg) { var v1 = new com.Newgrounds.NewgroundsAPIError('PERMISSION_DENIED', msg); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('saveFile')}, v1); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, v1); }; com.Newgrounds.NewgroundsAPI.save_file.onCancel = function (msg) { var v1 = new com.Newgrounds.NewgroundsAPIError('USER_CANCELLED', msg); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, v1); }; com.Newgrounds.NewgroundsAPI.save_file.submit(); } else { var v1 = new com.Newgrounds.NewgroundsAPIError('UPLOAD_IN_PROGRESS', 'Please wait for the previous file to finish uploading'); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('saveFile')}, v1); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, v1); } }; v1.checkFilePrivs = function (folder, filename) { if (com.Newgrounds.NewgroundsAPI.user_id) { var v1 = com.Newgrounds.NewgroundsAPI.user_id; } else { var v1 = 0; } var v2 = {'folder': folder, 'filename': filename, 'user_id': v1, 'publisher_id': com.Newgrounds.NewgroundsAPI.publisher_id}; com.Newgrounds.NewgroundsAPI.sendCommand('checkFilePrivs', v2); }; v1.finishFileSave = function (folder, filename, description, share, file, thumbnail) { var v2; v2 = {'folder': folder, 'filename': filename, 'description': description, 'share': share}; var v1; v1 = {'file': file, 'thumbnail': thumbnail}; com.Newgrounds.NewgroundsAPI.sendSecureCommand('saveFile', v2, null, v1); }; v1.getFiles = function (folder, options) { var v7 = {'name': 1, 'date': 2, 'score': 3}; var v2 = {'user_only': false, 'sort_on': 'date', 'page': 1, 'results_per_page': 20, 'sort_descending': true}; var v6 = new Array(); for (var v10 in v7) { v6.push('\'' + v10 + '\''); } var v4 = new Array(); for (var v9 in v2) { v4.push('\'' + v9 + '\''); } if (options.sort_descending && !v7[options.sort_descending]) { var v3 = new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', '\'' + options.sort_descending + '\' is not a valid sort_on value. Valid values are: ' + v6.join(', ')); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('getFiles')}, v3); delete options.sort_descending; } var v8; if (options) { for (v10 in options) { if (v2[v10] == undefined) { v3 = new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', '\'' + v10 + '\' is not a valid option. Valid options are: ' + v4.join(', ')); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('getFiles')}, v3); delete options[v10]; } else { if (typeof options[v10] != typeof v2[v10]) { v3 = new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', 'option \'' + v10 + '\' should be the following type: ' + typeof v2[v10]); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('getFiles')}, v3); delete options[v10]; } } } v8 = options; } else { v8 = new Object(); } if (com.Newgrounds.NewgroundsAPI.hasUserSession()) { v8.publisher_id = com.Newgrounds.NewgroundsAPI.publisher_id; v8.user_id = com.Newgrounds.NewgroundsAPI.user_id; } v8.folder = folder; com.Newgrounds.NewgroundsAPI.sendCommand('getFiles', v8); }; v1.getConfirmation = function (command_name, event, msg, target, confirm, cancel) { var v1 = new com.Newgrounds.NewgroundsAPIError('CONFIRM_REQUEST', msg); v1.confirm = function () { target[confirm](); }; v1.cancel = function () { target[cancel](); }; v1.command = com.Newgrounds.NewgroundsAPI.getCommandID(command_name); com.Newgrounds.NewgroundsAPI.callListener(event, false, v1); }; v1.doBlockHost = function (event) { _root.stop(); com.Newgrounds.NewgroundsAPI.initTextFormats(); _root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var v2 = 'This movie has not been approved for use on ' + com.Newgrounds.NewgroundsAPI.getHost() + '.'; v2 += '\r\rFor an aproved copy, please visit:\r'; var v4 = v2.length; v2 += event.data.movie_url; var v3 = v2.length; _root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = 'ERROR!'; _root.NGAPI_deny_host_overlay.error.setTextFormat(com.Newgrounds.NewgroundsAPI.error_format); _root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = v2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(com.Newgrounds.NewgroundsAPI.normal_format); com.Newgrounds.NewgroundsAPI.link_format.url = event.data.redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, com.Newgrounds.NewgroundsAPI.link_format); }; v1.onNewVersionAvailable = function (event) { _root.stop(); com.Newgrounds.NewgroundsAPI.initTextFormats(); var v2 = new Object(); v2.x = Stage.width / 2; v2.y = Stage.height / 2; _root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var v3 = 'Version ' + event.data.movie_version + ' is now available at:' + '\n'; var v6 = v3.length; v3 += event.data.movie_url; var v4 = v3.length; _root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!'; _root.NGAPI_new_version_overlay.newversion.setTextFormat(com.Newgrounds.NewgroundsAPI.header_format); _root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = v3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(com.Newgrounds.NewgroundsAPI.normal_format); com.Newgrounds.NewgroundsAPI.link_format.url = event.data.redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(v6, v4, com.Newgrounds.NewgroundsAPI.link_format); }; v1.initTextFormats = function () { if (!com.Newgrounds.NewgroundsAPI.error_format) { com.Newgrounds.NewgroundsAPI.error_format = new TextFormat(); com.Newgrounds.NewgroundsAPI.error_format.font = 'Arial Black'; com.Newgrounds.NewgroundsAPI.error_format.size = 48; com.Newgrounds.NewgroundsAPI.error_format.color = 16711680; } if (!com.Newgrounds.NewgroundsAPI.header_format) { com.Newgrounds.NewgroundsAPI.header_format = new TextFormat(); com.Newgrounds.NewgroundsAPI.header_format.font = 'Arial Black'; com.Newgrounds.NewgroundsAPI.header_format.size = 24; com.Newgrounds.NewgroundsAPI.header_format.color = 16777215; } if (!com.Newgrounds.NewgroundsAPI.normal_format) { com.Newgrounds.NewgroundsAPI.normal_format = new TextFormat(); com.Newgrounds.NewgroundsAPI.normal_format.font = 'Arial'; com.Newgrounds.NewgroundsAPI.normal_format.bold = true; com.Newgrounds.NewgroundsAPI.normal_format.size = 12; com.Newgrounds.NewgroundsAPI.normal_format.color = 16777215; } if (!com.Newgrounds.NewgroundsAPI.link_format) { com.Newgrounds.NewgroundsAPI.link_format = new TextFormat(); com.Newgrounds.NewgroundsAPI.link_format.color = 16776960; com.Newgrounds.NewgroundsAPI.link_format.underline = true; } }; v1.doEvent = function (e) { switch (com.Newgrounds.NewgroundsAPI.getCommandName(e.command_id)) { case 'connectMovie': clearInterval(com.Newgrounds.NewgroundsAPI.timeout); com.Newgrounds.NewgroundsAPI.sendMessage('You have successfully connected to the Newgrounds API Gateway'); com.Newgrounds.NewgroundsAPI.sendMessage('Movie identified as "' + e.movie_name + '"'); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MOVIE_CONNECTED, e.success, {'movie_name': e.movie_name}); var v4 = false; if (e.ad_status === -1) { var v6 = 'This movie was not approved to run Flash Ads.'; com.Newgrounds.NewgroundsAPI.sendWarning(v6); com.Newgrounds.NewgroundsAPI.sendWarning('visit ' + com.Newgrounds.NewgroundsAPI.AD_TERMS_URL + ' to view our approval guidelines'); if (!e.ad_url) { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError('FLASH_ADS_NOT_APPROVED', v6)); } else { v4 = true; } } else { if (e.ad_status === 0) { var v6 = 'Flash Ads are currently awaiting approval.'; com.Newgrounds.NewgroundsAPI.sendNotice(v6); if (!e.ad_url) { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError('FLASH_ADS_NOT_APPROVED', v6)); } else { v4 = true; } } } if (e.ad_url) { com.Newgrounds.NewgroundsAPI.ad_url = unescape(e.ad_url); if (!v4) { com.Newgrounds.NewgroundsAPI.sendMessage('This movie has been approved to run Flash Ads!'); } com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.ADS_APPROVED, true); } if (e.deny_host) { v6 = com.Newgrounds.NewgroundsAPI.getHost() + ' does not have permission to run this movie!'; com.Newgrounds.NewgroundsAPI.sendWarning(v6); com.Newgrounds.NewgroundsAPI.sendWarning('\tUpdate your API configuration to unblock ' + com.Newgrounds.NewgroundsAPI.getHost()); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.HOST_BLOCKED, true, {'movie_url': unescape(e.movie_url), 'redirect_url': com.Newgrounds.NewgroundsAPI.getOfficialVersionURL()}); } if (e.movie_version) { com.Newgrounds.NewgroundsAPI.sendWarning('According to your API Configuration, this version is out of date.'); if (com.Newgrounds.NewgroundsAPI.version) { com.Newgrounds.NewgroundsAPI.sendWarning('\tThe this movie is version ' + com.Newgrounds.NewgroundsAPI.version); } com.Newgrounds.NewgroundsAPI.sendWarning('\tThe most current version is ' + e.movie_version); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.NEW_VERSION_AVAILABLE, true, {'movie_version': e.movie_version, 'movie_url': unescape(e.movie_url), 'redirect_url': com.Newgrounds.NewgroundsAPI.getOfficialVersionURL()}); } if (e.request_portal_url) { com.Newgrounds.NewgroundsAPI.sendCommand('setPortalID', {'portal_url': _url}); } break; case 'logCustomEvent': if (e.success) { com.Newgrounds.NewgroundsAPI.sendMessage('Event \'' + e.event + '\' was logged.'); } com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.EVENT_LOGGED, e.success, {'event': e.event}); break; case 'postScore': var v7; if (e.success) { var v3 = 'User'; if (com.Newgrounds.NewgroundsAPI.user_email) { v3 = com.Newgrounds.NewgroundsAPI.user_email; } else { if (com.Newgrounds.NewgroundsAPI.user_name) { v3 = com.Newgrounds.NewgroundsAPI.user_name; } } com.Newgrounds.NewgroundsAPI.sendMessage(v3 + ' posted ' + e.value + ' to \'' + e.score + '\''); v7 = {'score': e.score, 'value': e.value, 'username': v3}; } com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.SCORE_POSTED, e.success, v7); break; case 'getScores': var v7 = new Object(); if (e.user_id) { var v5 = e.period; } else { var v5 = e.period + '-u'; } if (e.total_pages) { com.Newgrounds.NewgroundsAPI.score_page_counts[v5] = e.total_pages; } v7.user_id = e.user_id; v7.current_page = e.current_page; v7.total_pages = com.Newgrounds.NewgroundsAPI.score_page_counts[v5]; v7.scores = e.scores; v7.period = com.Newgrounds.NewgroundsAPI.getPeriodName(e.period); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.SCORES_LOADED, e.success, v7); break; case 'unlockMedal': if (com.Newgrounds.NewgroundsAPI.medals) { var v2 = 0; while (v2 < com.Newgrounds.NewgroundsAPI.medals.length) { if (com.Newgrounds.NewgroundsAPI.medals[v2].medal_name === e.medal_name) { com.Newgrounds.NewgroundsAPI.medals[v2].medal_unlocked = true; break; } ++v2; } } var v7 = {'medal_name': e.medal_name, 'medal_value': e.medal_value, 'medal_difficulty': e.medal_difficulty}; com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MEDAL_UNLOCKED, e.success, v7); break; case 'getMedals': com.Newgrounds.NewgroundsAPI.medals = e.medals; var v7 = {'medals': e.medals}; com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MEDALS_LOADED, e.success, v7); break; break; case 'getFiles': case 'getSystemFiles': break; case 'saveFile': com.Newgrounds.NewgroundsAPI.save_file = null; var v7 = {'file_id': e.file_id, 'filename': e.filename, 'file_url': e.file_url, 'thumbnail': e.thumbnail, 'icon': e.icon}; com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, e.success, v7); break; case 'checkFilePrivs': if (com.Newgrounds.NewgroundsAPI.save_file) { com.Newgrounds.NewgroundsAPI.save_file.checkPrivs(e); } else { var v7 = {'filename': e.filename, 'folder': e.folder, 'can_read': e.can_read, 'can_write': e.can_write}; com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_PRIVS_LOADED, e.success, v7); } } }; v1.setDefaultListeners = function () { var v1 = new Array(); v1[com.Newgrounds.NewgroundsAPI.events.HOST_BLOCKED] = {'listener': com.Newgrounds.NewgroundsAPI.doBlockHost}; v1[com.Newgrounds.NewgroundsAPI.events.NEW_VERSION_AVAILABLE] = {'listener': com.Newgrounds.NewgroundsAPI.onNewVersionAvailable}; return v1; }; v1.addEventListener = function (event, listener, params) { com.Newgrounds.NewgroundsAPI.listeners[event] = {'listener': listener, 'params': params}; }; v1.removeEventListener = function (event) { delete com.Newgrounds.NewgroundsAPI.listeners[event]; }; v1.getEventName = function (event) { for (var v2 in com.Newgrounds.NewgroundsAPI.events) { if (com.Newgrounds.NewgroundsAPI.events[v2] == event) { return v2; } } return undefined; }; v1.callListener = function (event, success, data, target) { com.Newgrounds.NewgroundsAPI.echo('Fired Event: ' + com.Newgrounds.NewgroundsAPI.getEventName(event)); if (com.Newgrounds.NewgroundsAPI.listeners[event]) { if (data.isError()) { com.Newgrounds.NewgroundsAPI.listeners[event].listener({'event': event, 'success': success, 'error': data, 'target': target}, com.Newgrounds.NewgroundsAPI.listeners[event].params); } else { com.Newgrounds.NewgroundsAPI.listeners[event].listener({'event': event, 'success': success, 'data': data, 'target': target}, com.Newgrounds.NewgroundsAPI.listeners[event].params); } } }; v1.getCommandName = function (id) { return id; }; v1.getCommandID = function (name) { return name; }; v1.getPeriodAliases = function () { var v1 = new Object(); for (var v2 in com.Newgrounds.NewgroundsAPI.period_aliases) { v1[com.Newgrounds.NewgroundsAPI.period_aliases[v2].alias] = v2; } return v1; }; v1.getPeriodName = function (p) { for (var v2 in com.Newgrounds.NewgroundsAPI.period_aliases) { if (v2 == p) { return com.Newgrounds.NewgroundsAPI.period_aliases[v2].name; } } return null; }; v1.getPeriodAlias = function (p) { for (var v2 in com.Newgrounds.NewgroundsAPI.period_aliases) { if (v2 == p) { return com.Newgrounds.NewgroundsAPI.period_aliases[v2].alias; } } return null; }; v1.sendError = function (c, e) { trace('[NewgroundsAPI ERROR] :: ' + com.Newgrounds.NewgroundsAPI.getCommandName(c.command_id) + '() - ' + e.name + ':' + '\n' + '\t\t\t\t' + e.message); }; v1.sendWarning = function (m, c) { if (c) { m += '\r[NewgroundsAPI WARNING] :: \tSee ' + com.Newgrounds.NewgroundsAPI.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } trace('[NewgroundsAPI WARNING] :: ' + m); }; v1.sendNotice = function (m, c) { if (c) { m += '\r[NewgroundsAPI NOTICE] :: \tSee ' + com.Newgrounds.NewgroundsAPI.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } trace('[NewgroundsAPI NOTICE] :: ' + m); }; v1.fatalError = function (m, c) { if (c) { m += '\r\tSee ' + com.Newgrounds.NewgroundsAPI.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } throw '***ERROR*** frame=' + _root._currentframe + ', class=NewgroundsAPI' + '\n' + '\n' + m; }; v1.sendSecureCommand = function (command, secure_params, unsecure_params, files) { if (!com.Newgrounds.NewgroundsAPI.debug && !com.Newgrounds.NewgroundsAPI.hasUserSession() && !com.Newgrounds.NewgroundsAPI.hasUserEmail()) { com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID(command)}, new com.Newgrounds.NewgroundsAPIError('IDENTIFICATION_REQUIRED', 'You must be logged in or provide an e-mail address ( using NewgroundsAPI.setUserEmail("name@domain.com"); ) to use ' + command + '().')); return undefined; } if (!command) { com.Newgrounds.NewgroundsAPI.fatalError('Missing command', 'sendSecureCommand'); } if (!secure_params) { com.Newgrounds.NewgroundsAPI.fatalError('Missing secure_params', 'sendSecureCommand'); } if (!unsecure_params) { unsecure_params = new Object(); } var v2 = ''; var v1 = 0; while (v1 < 16) { v2 += com.Newgrounds.NewgroundsAPI.compression_radix.charAt(Math.floor(Math.random() * com.Newgrounds.NewgroundsAPI.compression_radix.length)); ++v1; } if (com.Newgrounds.NewgroundsAPI.debug) { secure_params.session_id = ''; } else { secure_params.session_id = com.Newgrounds.NewgroundsAPI.session_id; } secure_params.as_version = 2; secure_params.user_email = com.Newgrounds.NewgroundsAPI.user_email; secure_params.publisher_id = com.Newgrounds.NewgroundsAPI.publisher_id; secure_params.seed = v2; secure_params.command_id = com.Newgrounds.NewgroundsAPI.getCommandID(command); var v8 = com.Newgrounds.MD5.calculate(v2); var v6 = com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(secure_params), com.Newgrounds.NewgroundsAPI.encryption_key); var v7 = v8 + v6; unsecure_params.secure = com.Newgrounds.NewgroundsAPI.compressHex(v7); com.Newgrounds.NewgroundsAPI.sendCommand('securePacket', unsecure_params, false, files); }; v1.sendCommand = function (command, params, open_browser, files) { if (!com.Newgrounds.NewgroundsAPI.connected and command != 'connectMovie') { var v11 = 'NewgroundsAPI.' + command + '() - NewgroundsAPI.connectMovie() must be called before this command can be called' + '\n'; com.Newgrounds.NewgroundsAPI.fatalError(v11, 'connectMovie'); } if (open_browser) { var v1 = new Object(); } else { var v1 = new LoadVars(); } v1.command_id = com.Newgrounds.NewgroundsAPI.getCommandID(command); v1.tracker_id = com.Newgrounds.NewgroundsAPI.movie_id; if (com.Newgrounds.NewgroundsAPI.debug) { v1.debug = com.Newgrounds.NewgroundsAPI.debug; } if (params) { for (var v8 in params) { v1[v8] = params[v8]; } } if (files) { for (v8 in files) { v1[v8] = files[v8]; } } com.Newgrounds.NewgroundsAPI.echo('OUTPUT: \r' + com.Newgrounds.JSON.encode(v1) + '\n'); if (open_browser) { var v5 = com.Newgrounds.NewgroundsAPI.GATEWAY_URL + '?seed=' + Math.random(); for (v8 in v1) { v5 += '&' + escape(v8) + '=' + escape(v1[v8]); } getURL(v5, '_blank'); v1.removeMovieClip(); } else { var v9 = new LoadVars(); v9.onData = function (data) { com.Newgrounds.NewgroundsAPI.echo('INPUT: \r' + data + '\n'); if (data) { var v1 = com.Newgrounds.JSON.decode(data); } else { var v1 = {'success': false}; } if (!v1.success) { var v3 = new com.Newgrounds.NewgroundsAPIError(v1.error_code, v1.error_msg); com.Newgrounds.NewgroundsAPI.sendError(v1, v3); } else { com.Newgrounds.NewgroundsAPI.doEvent(v1); } }; var v4 = new Array(); for (var v7 in v1) { v4.push(v7 + '=' + escape(v1[v7])); } com.Newgrounds.NewgroundsAPI.echo('POST ' + com.Newgrounds.NewgroundsAPI.GATEWAY_URL + '?' + v4.join('&')); v1.sendAndLoad(com.Newgrounds.NewgroundsAPI.GATEWAY_URL + '?seed=' + Math.random(), v9, 'POST'); } }; v1.renderAd = function (target) { if (com.Newgrounds.NewgroundsAPI.ad_swf_url) { target.background = target.createEmptyMovieClip('background', 100); target.background.beginFill(0); target.background.moveTo(0, 0); target.background.lineTo(300, 0); target.background.lineTo(300, 250); target.background.lineTo(0, 250); target.background.lineTo(0, 0); target.background.endFill(); target.mask = target.createEmptyMovieClip('mask', 101); target.mask.beginFill(0); target.mask.moveTo(0, 0); target.mask.lineTo(300, 0); target.mask.lineTo(300, 250); target.mask.lineTo(0, 250); target.mask.lineTo(0, 0); target.mask.endFill(); target.clip = target.createEmptyMovieClip('clip', 102); target.clip.ad = target.clip.createEmptyMovieClip('ad', 100); target.clip.setMask(target.mask); loadMovie(com.Newgrounds.NewgroundsAPI.ad_swf_url, target.clip.ad); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.AD_ATTACHED, true, null, target); } else { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.AD_ATTACHED, false, new com.Newgrounds.NewgroundsAPIError('FLASH_ADS_NOT_APPROVED', 'Unable to render ad')); } }; v1.attachFlashAd = function (target) { System.security.allowDomain('http://server.cpmstar.com'); System.security.allowDomain('http://www.cpmstar.com'); System.security.allowDomain('https://server.cpmstar.com'); System.security.allowDomain('https://www.cpmstar.com'); System.security.allowInsecureDomain('http://server.cpmstar.com'); System.security.allowInsecureDomain('http://www.cpmstar.com'); System.security.allowInsecureDomain('https://server.cpmstar.com'); System.security.allowInsecureDomain('https://www.cpmstar.com'); com.Newgrounds.NewgroundsAPI.sendMessage('You may get a security sandbox violation from this ad. This is nothing to worry about!'); if (com.Newgrounds.NewgroundsAPI.resetAdTimer()) { if (com.Newgrounds.NewgroundsAPI.ad_url) { var v1 = new LoadVars(); v1.onData = function (data) { if (data) { com.Newgrounds.NewgroundsAPI.ad_swf_url = data; } else { com.Newgrounds.NewgroundsAPI.ad_swf_url = null; } com.Newgrounds.NewgroundsAPI.renderAd(target); }; if (com.Newgrounds.NewgroundsAPI.ad_url.indexOf('?') > -1) { v1.load(com.Newgrounds.NewgroundsAPI.ad_url + '&random=' + Math.random()); } else { v1.load(com.Newgrounds.NewgroundsAPI.ad_url + '?random=' + Math.random()); } } } else { com.Newgrounds.NewgroundsAPI.renderAd(target); } }; v1.resetAdTimer = function () { if (!com.Newgrounds.NewgroundsAPI.ad_url) { return false; } var v1 = new Date(); if (v1.getTime() >= com.Newgrounds.NewgroundsAPI.ad_reset) { com.Newgrounds.NewgroundsAPI.ad_reset = v1.getTime() + 300000; return true; } return false; }; v1.sendMessage = function (m, r) { var v1 = '[NewgroundsAPI] :: ' + m; if (r) { return v1; } else { trace(v1); } }; v1.echo = function (m) { if (com.Newgrounds.NewgroundsAPI.do_echo) { trace(m); } }; v1.do_echo = false; v1.GATEWAY_URL = 'http://www.ngads.com/gateway_v2.php'; v1.AD_TERMS_URL = 'http://www.newgrounds.com/wiki/flashads/terms/'; v1.COMMANDS_WIKI_URL = 'http://www.newgrounds.com/wiki/flashapi/commands/'; v1.ad_reset = 0; v1.save_file = null; v1.medals = null; v1.score_page_counts = new Object(); v1.compression_radix = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X'; v1.compressor = new com.Newgrounds.BaseN(com.Newgrounds.NewgroundsAPI.compression_radix); v1.errors = com.Newgrounds.NewgroundsAPIError.init_codes(); v1.sharedObjects = new Object(); v1.events = {'MOVIE_CONNECTED': 1, 'ADS_APPROVED': 2, 'AD_ATTACHED': 3, 'HOST_BLOCKED': 4, 'NEW_VERSION_AVAILABLE': 5, 'EVENT_LOGGED': 6, 'SCORE_POSTED': 7, 'SCORES_LOADED': 8, 'MEDAL_UNLOCKED': 9, 'MEDALS_LOADED': 10, 'FILE_PRIVS_LOADED': 11, 'FILE_SAVED': 12}; v1.listeners = com.Newgrounds.NewgroundsAPI.setDefaultListeners(); v1.periods = com.Newgrounds.NewgroundsAPI.getPeriodAliases(); v1.period_aliases = {'t': {'name': 'Today', 'alias': 'TODAY'}, 'p': {'name': 'Yesterday', 'alias': 'YESTERDAY'}, 'w': {'name': 'This Week', 'alias': 'THIS_WEEK'}, 'm': {'name': 'This Month', 'alias': 'THIS_MONTH'}, 'y': {'name': 'This Year', 'alias': 'THIS_YEAR'}, 'a': {'name': 'All-Time', 'alias': 'ALL_TIME'}}; ASSetPropFlags(com.Newgrounds.NewgroundsAPI.prototype, null, 1); } #endinitclip } movieClip 3381 __Packages.com.Newgrounds.NewgroundsAPISaveFile { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.NewgroundsAPISaveFile) { var v1 = function (tracker_id, folder, filename) { this.tracker_id = tracker_id; this.folder = folder; this.filename = filename; this.contents = null; this.thumbnail = null; this.icon_url = null; this.thumbnail_url = null; }; com.Newgrounds.NewgroundsAPISaveFile = v1; var v2 = v1.prototype; v2.setDescription = function (description) { this.description = description; }; v2.setShared = function (share) { this.share = share; }; v2.setContents = function (contents) { this.contents = contents; }; v2.setThumbnail = function (thumb) { if (thumb) { this.thumbnail = thumb; } else { this.thumbnail = null; } }; v2.onError = function (msg) { trace('[NewgroundsAPISaveFile ERROR] :: ' + msg); }; v2.onCancel = function (msg) { trace('[NewgroundsAPISaveFile] :: ' + msg); }; v2.submit = function () { this.scan = null; com.Newgrounds.NewgroundsAPI.checkFilePrivs(this.folder, this.filename); }; v2.checkPrivs = function (p) { if (p.success) { if (p.can_write) { this.can_write = p.can_write; if (p.exists) { com.Newgrounds.NewgroundsAPI.getConfirmation('saveFile', com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, 'File \'' + this.filename + '\' exists, overwrite?', this, 'startFile', 'cancelFile'); } else { this.startFile(); } } else { this.onError('This filename is owned by another user.'); } } else { this.onError('There was a problem looking up your file\'s details'); } }; v2.cancelFile = function () { this.onCancel('Overwrite was cancelled'); }; v2.startFile = function () { if (this.can_write) { if (this.thumbnail) { this.scanner = new com.Newgrounds.ImageScanner(this.thumbnail); this.scanner.setCallback(this, 'writeFile'); this.scanner.startScan(100, 100, true); } else { this.writeFile(); } } else { this.onError('You cannot write to filename "' + this.filename + '"'); } }; v2.writeFile = function (img) { trace('FINISHED'); com.Newgrounds.NewgroundsAPI.finishFileSave(this.folder, this.filename, this.description, this.share, com.Newgrounds.JSON.encode(this.contents), img); }; v2.can_write = false; v2.share = true; ASSetPropFlags(com.Newgrounds.NewgroundsAPISaveFile.prototype, null, 1); } #endinitclip } movieClip 3382 __Packages.com.Newgrounds.ImageScanner { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.ImageScanner) { var v1 = function (the_source) { if (the_source) { this.image_source = the_source; } else { this.image_source = _root; } this.reset(); if (typeof this.image_source == 'movieclip') { if (this.image_source == _root) { this.source_width = Stage.width; this.source_height = Stage.height; } else { this.source_width = Math.floor(this.image_source._width); this.source_height = Math.floor(this.image_source._height); } this.sourceBitmap = new flash.display.BitmapData(this.source_width, this.source_height, false, 4294967295.0); this.sourceBitmap.draw(_root); } else { if (this.image_source.width) { this.source_width = this.image_source.width; this.source_height = this.image_source.height; this.sourceBitmap = this.image_source; } else { this.error('You can only use BitMaptData and MovieClip objects to create images'); } } }; com.Newgrounds.ImageScanner = v1; var v2 = v1.prototype; v2.setCallback = function (target, funct) { if (target && funct) { this.callback_target = target; this.callback_function = funct; } }; v2.reset = function () { this.callback_target = null; this.callback_function = null; this.debug.bad_pixels = 0; this.hash = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&'; var v3 = Math.pow(this.hash.length, 2); trace('MAX COLORS: ' + v3); var v2 = Math.floor(Math.pow(v3, 0.3333333333333333)) - 1; var v4 = Math.pow(v2, 3); this.cube = v2; this.basen = new com.Newgrounds.BaseN(this.hash); this.xpos = 0; this.ypos = 0; this.pixels = 0; this.busy = false; }; v2.startScan = function (w, h, s) { if (w) { this.image_width = w; } if (h) { this.image_height = h; } if (s != undefined) { this.crop = s; } var v7 = _root.getNextHighestDepth(); var v6 = _root.createEmptyMovieClip('API_image_container_' + v7, v7); var v5 = v6.createEmptyMovieClip('canvas', 100); v5.attachBitmap(this.sourceBitmap, 100); if (this.crop) { if (this.image_width / this.source_width > this.image_height / this.source_height) { this.canvas_width = this.image_width; this.canvas_height = Math.ceil(this.source_height * (this.image_width / this.source_width)); } else { this.canvas_height = this.image_height; this.canvas_width = Math.ceil(this.source_width * (this.image_height / this.source_height)); } } else { this.canvas_width = this.image_width; this.canvas_height = this.image_height; } v5._x = Math.round((this.image_width - this.canvas_width) / 2); v5._width = this.canvas_width; v5._height = this.canvas_height; this.resizedBitmap = new flash.display.BitmapData(this.image_width, this.image_height, false, 4294967295.0); this.resizedBitmap.draw(v6); v6.removeMovieClip(); this.copyBitmap = new flash.display.BitmapData(this.image_width, this.image_height, false, 4294967295.0); var v3 = '' + this.image_width; while (v3.length < 3) { v3 = '0' + v3; } var v4 = '' + this.image_height; while (v4.length < 3) { v4 = '0' + v4; } this.output = v3 + v4; this.draw_interval = setInterval(this, 'drawChunk', 10); this.busy = false; return this.resizedBitmap; }; v2.getBitmapData = function () { return this.copyBitmap; }; v2.getBytesTotal = function () { return this.image_width * this.image_height * 2; }; v2.getBytesScanned = function () { return this.pixels * 2; }; v2.drawChunk = function () { if (!this.busy) { this.busy = true; var v2 = 0; while (v2 < 250) { if (!this.nextPixel()) { clearInterval(this.draw_interval); this.callback_interval = setInterval(this, 'doCallback', 25); this.busy = true; break; } ++v2; } this.busy = false; } }; v2.doCallback = function () { this.busy = false; clearInterval(this.callback_interval); if (this.callback_target and this.callback_function) { this.callback_target[this.callback_function](this.output); } else { this.onScanComplete(this.output); } }; v2.onScanComplete = function (packet) { this.sendMessage('packet size: ' + this.output.length + ' bytes', 'onScanComplete'); }; v2.nextPixel = function () { var v15 = this.xpos; var v14 = this.ypos; var v7 = this.resizedBitmap.getPixel(v15, v14); var v17 = v7 >> 16 & 255; var v20 = v7 >> 8 & 255; var v16 = v7 >> 0 & 255; var v11 = Math.round(((v17 + 1) / 256) * this.cube); var v10 = Math.round(((v20 + 1) / 256) * this.cube); var v13 = Math.round(((v16 + 1) / 256) * this.cube); var v12 = v11 * (this.cube + 1) * (this.cube + 1) + v10 * (this.cube + 1) + v13; var v6 = this.basen.encode(v12, 2); this.output += v6; if (v6.length != 2) { trace('bad pixel ' + v6); } var v5 = this.basen.decode(v6); var v18 = v5; var v8 = v5 % (this.cube + 1); v5 = (v5 - v8) / (this.cube + 1); var v9 = v5 % (this.cube + 1); var v19 = (v5 - v9) / (this.cube + 1); if (v13 != v8 and v10 != v9 and v11 != v10) { ++this.debug.bad_pixels; trace('BAD PIXEL ' + this.debug.bad_pixels + ') ' + v12 + ' != ' + v18 + ' ' + v6); trace(this.basen.debug.lastencode); } var v2 = (Math.round((v19 / this.cube) * 255)).toString(16); var v4 = (Math.round((v9 / this.cube) * 255)).toString(16); var v3 = (Math.round((v8 / this.cube) * 255)).toString(16); while (v2.length < 2) { v2 = '0' + v2; } while (v4.length < 2) { v4 = '0' + v4; } while (v3.length < 2) { v3 = '0' + v3; } this.copyBitmap.setPixel(v15, v14, Number('0x' + v2 + v4 + v3)); ++this.pixels; if (this.pixels >= this.image_width * this.image_height) { return false; } ++this.xpos; if (this.xpos >= this.image_width) { this.xpos = 0; ++this.ypos; } return true; }; v2.error = function (e, f) { this.sendMessage(e, f, 'ERROR'); }; v2.sendMessage = function (msg, func, type) { var v1 = 'ImageScanner'; if (func) { v1 += '.' + func + '()'; } if (type) { v1 = type + ' in ' + v1; } v1 += ' :: ' + msg; trace(v1); }; v2.image_width = 100; v2.image_height = 100; v2.crop = true; v2.debug = new Object(); ASSetPropFlags(com.Newgrounds.ImageScanner.prototype, null, 1); } #endinitclip } movieClip 3383 __Packages.com.Newgrounds.JSON { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.JSON) { var v1 = function () {}; com.Newgrounds.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.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.JSON.encode(v4); if (v1) { v1 += ','; } v1 += com.Newgrounds.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.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(); }; ASSetPropFlags(com.Newgrounds.JSON.prototype, null, 1); } #endinitclip } movieClip 3384 __Packages.com.Newgrounds.RC4 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.RC4) { var v1 = function () {}; com.Newgrounds.RC4 = v1; var v2 = v1.prototype; v1.encrypt = function (src, key) { var v3 = com.Newgrounds.RC4.strToChars(src); var v1 = com.Newgrounds.RC4.strToChars(key); var v2 = com.Newgrounds.RC4.calculate(v3, v1); return com.Newgrounds.RC4.charsToHex(v2); }; v1.encryptbin = function (src, key) { var v3 = com.Newgrounds.RC4.strToChars(src); var v1 = com.Newgrounds.RC4.strToChars(key); var v2 = com.Newgrounds.RC4.calculate(v3, v1); return v2; }; v1.decrypt = function (src, key) { var v3 = com.Newgrounds.RC4.hexToChars(src); var v1 = com.Newgrounds.RC4.strToChars(key); var v2 = com.Newgrounds.RC4.calculate(v3, v1); return com.Newgrounds.RC4.charsToStr(v2); }; v1.initialize = function (pwd) { var v2 = 0; var v3; var v4 = pwd.length; var v1 = 0; while (v1 <= 255) { com.Newgrounds.RC4.mykey[v1] = pwd[v1 % v4]; com.Newgrounds.RC4.sbox[v1] = v1; ++v1; } v1 = 0; while (v1 <= 255) { v2 = (v2 + com.Newgrounds.RC4.sbox[v1] + com.Newgrounds.RC4.mykey[v1]) % 256; v3 = com.Newgrounds.RC4.sbox[v1]; com.Newgrounds.RC4.sbox[v1] = com.Newgrounds.RC4.sbox[v2]; com.Newgrounds.RC4.sbox[v2] = v3; ++v1; } }; v1.calculate = function (plaintxt, psw) { com.Newgrounds.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.RC4.sbox[v1]) % 256; v5 = com.Newgrounds.RC4.sbox[v1]; com.Newgrounds.RC4.sbox[v1] = com.Newgrounds.RC4.sbox[v2]; com.Newgrounds.RC4.sbox[v2] = v5; var v4 = (com.Newgrounds.RC4.sbox[v1] + com.Newgrounds.RC4.sbox[v2]) % 256; v7 = com.Newgrounds.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.RC4.prototype, null, 1); } #endinitclip } movieClip 3385 __Packages.com.Newgrounds.MD5 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.MD5) { var v1 = function () {}; com.Newgrounds.MD5 = v1; var v2 = v1.prototype; v1.calculate = function (src) { return com.Newgrounds.MD5.hex_md5(src); }; v1.hex_md5 = function (src) { return com.Newgrounds.MD5.binl2hex(com.Newgrounds.MD5.core_md5(com.Newgrounds.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.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936); v1 = com.Newgrounds.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586); v2 = com.Newgrounds.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819); v3 = com.Newgrounds.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330); v4 = com.Newgrounds.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897); v1 = com.Newgrounds.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426); v2 = com.Newgrounds.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341); v3 = com.Newgrounds.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983); v4 = com.Newgrounds.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416); v1 = com.Newgrounds.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417); v2 = com.Newgrounds.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063); v3 = com.Newgrounds.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162); v4 = com.Newgrounds.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682); v1 = com.Newgrounds.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101); v2 = com.Newgrounds.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290); v3 = com.Newgrounds.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329); v4 = com.Newgrounds.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510); v1 = com.Newgrounds.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632); v2 = com.Newgrounds.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713); v3 = com.Newgrounds.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302); v4 = com.Newgrounds.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691); v1 = com.Newgrounds.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083); v2 = com.Newgrounds.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335); v3 = com.Newgrounds.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848); v4 = com.Newgrounds.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438); v1 = com.Newgrounds.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690); v2 = com.Newgrounds.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961); v3 = com.Newgrounds.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501); v4 = com.Newgrounds.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467); v1 = com.Newgrounds.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784); v2 = com.Newgrounds.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473); v3 = com.Newgrounds.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734); v4 = com.Newgrounds.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558); v1 = com.Newgrounds.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463); v2 = com.Newgrounds.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562); v3 = com.Newgrounds.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556); v4 = com.Newgrounds.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060); v1 = com.Newgrounds.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353); v2 = com.Newgrounds.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632); v3 = com.Newgrounds.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640); v4 = com.Newgrounds.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174); v1 = com.Newgrounds.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222); v2 = com.Newgrounds.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979); v3 = com.Newgrounds.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189); v4 = com.Newgrounds.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487); v1 = com.Newgrounds.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835); v2 = com.Newgrounds.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520); v3 = com.Newgrounds.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651); v4 = com.Newgrounds.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844); v1 = com.Newgrounds.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415); v2 = com.Newgrounds.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905); v3 = com.Newgrounds.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055); v4 = com.Newgrounds.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571); v1 = com.Newgrounds.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606); v2 = com.Newgrounds.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523); v3 = com.Newgrounds.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799); v4 = com.Newgrounds.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359); v1 = com.Newgrounds.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744); v2 = com.Newgrounds.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380); v3 = com.Newgrounds.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649); v4 = com.Newgrounds.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070); v1 = com.Newgrounds.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379); v2 = com.Newgrounds.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259); v3 = com.Newgrounds.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551); v4 = com.Newgrounds.MD5.safe_add(v4, v10); v3 = com.Newgrounds.MD5.safe_add(v3, v9); v2 = com.Newgrounds.MD5.safe_add(v2, v8); v1 = com.Newgrounds.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.MD5.safe_add(com.Newgrounds.MD5.bit_rol(com.Newgrounds.MD5.safe_add(com.Newgrounds.MD5.safe_add(a, q), com.Newgrounds.MD5.safe_add(x, t)), s), b); }; v1.md5_ff = function (a, b, c, d, x, s, t) { return com.Newgrounds.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.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.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.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.MD5.prototype, null, 1); } #endinitclip } movieClip 3386 __Packages.NewgroundsAPI { #initclip if (!_global.NewgroundsAPI) { var v1 = function () {}; _global.NewgroundsAPI = v1; var v2 = v1.prototype; v1.connectMovie = function (id) { if (!id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)'); } else { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendMessage('Connecting to API gateway...'); NewgroundsAPI.tracker_id = id; NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase(); if (NewgroundsAPI.host.length < 1) { NewgroundsAPI.host = 'localhost'; } var v2 = new Object(); NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS); } } }; v1.setMovieVersion = function (movie_version) { if (!movie_version) { NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)'); } else { NewgroundsAPI.version = movie_version; } }; v1.debugMode = function () { NewgroundsAPI.debug = true; }; v1.addCustomEvent = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom event: ' + stat_name); } } }; v1.addCustomLink = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name); } } }; v1.loadMySite = function () { NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE); }; v1.loadNewgrounds = function (special) { if (special) { var v1 = {'page': special}; } NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1); }; v1.logCustomEvent = function (event_name) { if (!event_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)'); } else { if (!NewgroundsAPI.custom_events[event_name]) { NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name); } else { NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]); } } }; v1.loadCustomLink = function (link_name) { if (!link_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)'); } else { if (!NewgroundsAPI.custom_links[link_name]) { NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name); } else { NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]); } } }; v1.getAdURL = function () { return NewgroundsAPI.movie_options.ad_url; }; v1.getMovieURL = function () { if (NewgroundsAPI.movie_options.movie_url) { return NewgroundsAPI.movie_options.movie_url; } else { return 'Newgrounds.com'; } }; v1.getNewVersionURL = function () { return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION; }; v1.SendEvent = function (id) { NewgroundsAPI.SendStat(id, false); }; v1.SendLink = function (id, extra) { NewgroundsAPI.SendStat(id, true, extra); }; v1.ReadGatewayData = function (params) { for (var v2 in params) { params[v2] = unescape(params[v2]); NewgroundsAPI.movie_options[v2] = params[v2]; } if (params.settings_loaded) { NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!'); NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\''); if (NewgroundsAPI.movie_options.message) { NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message); } if (NewgroundsAPI.movie_options.ad_url) { NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads'); NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url); } if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) { NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!'); NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.deny_host) { NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.'); NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.'); NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.request_portal_url == 1) { var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url); var v3 = new XML(); v3.ignoreWhite = true; v3.load(v4); } } else { if (!NewgroundsAPI.movie_options.settings_loaded) { NewgroundsAPI.SendError('Could not establish connection to the API gateway.'); } } }; v1.SendStat = function (stat_id, open_in_browser, extra) { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.'); NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?'); } else { var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id; for (var v9 in extra) { v7 += '&' + escape(v9) + '=' + escape(extra[v9]); } trace(v7); if (NewgroundsAPI.debug) { v7 += '&debug=1'; } if (open_in_browser) { getURL(v7, '_blank'); } else { var v10 = new XML(); v10.ignoreWhite = true; v10.onLoad = function (success) { var v6 = new Object(); var v3 = 0; while (v3 < this.firstChild.childNodes.length) { var v4 = this.firstChild.childNodes[v3]; var v5 = v4.nodeName; var v2 = v4.attributes.value; if (v2 == Number(v2)) { v2 = Number(v2); } v6[v5] = v2; ++v3; } NewgroundsAPI.ReadGatewayData(v6); }; v10.load(v7); } } }; v1.SendError = function (msg) { trace('[NEWGROUNDS API ERROR] :: ' + msg); }; v1.SendMessage = function (msg) { trace('[NEWGROUNDS API] :: ' + msg); }; v1.InitTextFormats = function () { if (!NewgroundsAPI.error_format) { NewgroundsAPI.error_format = new TextFormat(); NewgroundsAPI.error_format.font = 'Arial Black'; NewgroundsAPI.error_format.size = 48; NewgroundsAPI.error_format.color = 16711680; } if (!NewgroundsAPI.header_format) { NewgroundsAPI.header_format = new TextFormat(); NewgroundsAPI.header_format.font = 'Arial Black'; NewgroundsAPI.header_format.size = 24; NewgroundsAPI.header_format.color = 16777215; } if (!NewgroundsAPI.normal_format) { NewgroundsAPI.normal_format = new TextFormat(); NewgroundsAPI.normal_format.font = 'Arial'; NewgroundsAPI.normal_format.bold = true; NewgroundsAPI.normal_format.size = 12; NewgroundsAPI.normal_format.color = 16777215; } if (!NewgroundsAPI.link_format) { NewgroundsAPI.link_format = new TextFormat(); NewgroundsAPI.link_format.color = 16776960; NewgroundsAPI.link_format.underline = true; } }; v1.onNewVersionAvailable = function (version, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); var v2 = new Object(); v2.x = Stage.width / 2; v2.y = Stage.height / 2; _root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var v3 = 'Version ' + version + ' is now available at:' + '\n'; var v5 = v3.length; v3 += movie_url; var v4 = v3.length; _root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!'; _root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format); _root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = v3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format); }; v1.onDenyHost = function (hostname, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); _root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var v2 = 'This movie has not been approved for use on ' + hostname + '.'; v2 += '\r\rFor an aproved copy, please visit:\r'; var v4 = v2.length; v2 += movie_url; var v3 = v2.length; _root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = 'ERROR!'; _root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format); _root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = v2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format); }; v1.isInstalled = function () { return true; }; v1.onAdsApproved = function (ad_url) {}; v1.movie_options = new Object(); v1.custom_events = new Object(); v1.custom_links = new Object(); v1.MOVIE_VIEWS = 1; v1.AUTHOR_SITE = 2; v1.NEWGROUNDS = 3; v1.NEW_VERSION = 4; v1.CUSTOM_STATS = 50; v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php'; ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1); } #endinitclip } frame 2 { NewgroundsAPI.connectMovie(10362); stop(); } movieClip 48 { } movieClip 51 { frame 40 { _parent.playnow._visible = true; } } movieClip 58 { frame 8 { stop(); } } movieClip 64 { frame 8 { stop(); } } movieClip 65 { instance of movieClip 58 { onClipEvent (load) { _rotation = random(360); } } instance of movieClip 64 { onClipEvent (load) { _rotation = random(360); } } } movieClip 66 { instance blood of movieClip 65 { onClipEvent (load) { if (_name != 'blood') { _visible = true; gotoAndStop(random(2) + 1); _rotation = random(360); _yscale = scale * 2; _xscale = scale * 2; } else { _visible = false; gotoAndStop(3); } } } } movieClip 68 { } movieClip 104 { } movieClip 108 { instance of movieClip 104 { onClipEvent (load) { _parent.gotoAndStop(random(4) + 1); if (_global.censorsOff) { _parent._visible = false; } else { _parent._visible = true; } } onClipEvent (enterFrame) { if (_global.censorsOff) { _parent._visible = false; } else { _parent._visible = true; } } } } movieClip 112 { } movieClip 113 { frame 1 { stop(); } } movieClip 127 { } movieClip 128 { } button 132 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 133 { } movieClip 136 { } movieClip 137 { frame 1 { com.Newgrounds.NewgroundsAPI.attachFlashAd(_parent[_name]); var attachAd = function () { com.Newgrounds.NewgroundsAPI.attachFlashAd(_parent[_name]); }; com.Newgrounds.NewgroundsAPI.addEventListener(com.Newgrounds.NewgroundsAPI.events.ADS_APPROVED, attachAd); background._visible = false; } } movieClip 138 { } button 145 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 153 { } movieClip 158 { } movieClip 193 { } movieClip 219 { } movieClip 223 { } movieClip 296 { instance of movieClip 158 { onClipEvent (load) { if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) { _xscale = _xscale * -1; } } } } movieClip 297 { instance of movieClip 296 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 3 { if (_parent._parent._name == 'player') { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } } frame 8 { _parent._parent.soft_step.start(0, 0); } frame 11 { if (_parent._parent._name == 'player') { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } } frame 16 { _parent._parent.soft_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 298 { frame 1 { stop(); } } movieClip 299 { instance player of movieClip 298 { onClipEvent (load) { function hittyTest() { if (_y > 356) { it_hit_it = true; } else { it_hit_it = false; } } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.6 + random(40) / 100; grav = 2; this.standing_frame = random(113) + 1; walkDirection = random(2); if (_name != 'player' && _visible) { initscale = _xscale; _xscale = Math.abs(initscale) * 1.4; _yscale = initscale * 0.6; _x = random(640); } } onClipEvent (enterFrame) { if (_name != 'player' && _visible) { _xscale = Math.abs(_xscale); if (Math.abs(_xscale - initscale) > 0.01) { _xscale = initscale + (initscale - Math.abs(_xscale)) * 0.9; } else { _xscale = initscale; } if (Math.abs(_yscale - initscale) > 0.01) { _yscale = initscale + (initscale - _yscale) * 0.9; } else { _yscale = initscale; } } } onClipEvent (enterFrame) { if (_name != 'player' && _visible) { if (!fall_off_edge) { hittyTest(); up_ground(); hittyTest(); } } } onClipEvent (enterFrame) { if (_name != 'player' && _visible) { if (walkDirection == 0) { left_key_pressed = true; right_key_pressed = false; } else { right_key_pressed = true; left_key_pressed = false; } if (_x < -100) { _x = 740; } if (_x > 740) { _x = -100; } } } onClipEvent (enterFrame) { if (_name != 'player' && _visible) { if (!fall_off_edge) { if (left_key_pressed && right_key_pressed) { } else { if (left_key_pressed) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_pressed) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (press) { if (_name != 'player' && _visible) { _visible = false; _parent._parent.toss.addMore(_x, _y - _height / 2 - 5, x_speed, 0, standing_frame, true, Math.abs(_xscale) / _xscale, 5); ++_parent.countRemaining; } } onClipEvent (enterFrame) { if (_name != 'player' && _visible) { if (_parent._parent.toss.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent._parent.toss.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent._parent.toss.hitTest((getBounds(_parent)).xMax, _y, true) || _parent._parent.toss.hitTest((getBounds(_parent)).xMin, _y, true)) { _visible = false; _parent._parent.toss.addMore(_x, _y - _height / 2 - 5, random(20) - 10, random(10) + 20, standing_frame, false, Math.abs(_xscale) / _xscale, random(3)); ++_parent.countRemaining; } } } } } movieClip 300 { instance toss of movieClip 296 { onClipEvent (load) { if (_name != 'toss') { gotoAndStop(frame); _visible = true; } else { gotoAndStop(1); _visible = false; } rotateSpeed = random(20) - 10; if (flip < 0) { _xscale = _xscale * -1; } DidIHit = function () { iDidHit = false; if (_y < 137.5 + 122.5 * Math.abs(_x - 320) / 130 && _y > 137.5 - 122.5 * Math.abs(_x - 320) / 130) { if (_x > 190 && _x < 320) { _x = 190; x_speed = Math.abs(x_speed); rotateSpeed = -_rotation / 3; _rotation = 0; iDidHit = true; } if (_x > 320 && _x < 450) { _x = 450; x_speed = -Math.abs(x_speed); rotateSpeed = -_rotation / 3; _rotation = 0; iDidHit = true; } } if (_x < 320 + 130 * Math.abs(_y - 137.5) / 122.5 && _x > 320 - 130 * Math.abs(_y - 137.5) / 122.5) { if (_y > 15 && _y < 137.5) { _y = 15; y_speed = Math.abs(y_speed); tmp = 90 * Math.abs(_rotation) / _rotation; rotateSpeed = -(_rotation - tmp) / 3; _rotation = tmp; iDidHit = true; } if (_y > 137.5 && _y < 260) { _y = 260; y_speed = -Math.abs(y_speed); tmp = 90 * Math.abs(_rotation) / _rotation; rotateSpeed = -(_rotation - tmp) / 3; _rotation = tmp; iDidHit = true; } } if (_y + _height / 2 > 365) { _y = 365 - _height / 2; y_speed *= -0.7; x_speed *= 0.6; tmp = 90 * Math.abs(_rotation) / _rotation; rotateSpeed = -(_rotation - tmp) / 3; _rotation = tmp; iDidHit = true; } if (_x < 0 || _x > 640) { if (_x < 0) { _x = 0; } else { _x = 640; } x_speed *= -0.8; rotateSpeed = -_rotation / 3; _rotation = 0; iDidHit = true; } if (iDidHit) { --bounce; _parent._parent.smack.start(0, 0); } }; } onClipEvent (mouseUp) { if (attached) { attached = false; } } onClipEvent (enterFrame) { if (_name != 'toss' && _visible) { if (attached) { x_speed -= (_parent._xmouse - _x) / 8; y_speed -= (_parent._ymouse - _y) / 8; rotateSpeed += (_parent._xmouse - _x) / 8; x_speed *= 0.8; y_speed *= 0.8; rotateSpeed *= 0.8; DidIHit(); if (iDidHit) { fullSpeed = Math.sqrt(x_speed * x_speed + y_speed * y_speed); if (fullSpeed > 15) { _parent._parent.blood.addMore(_x + x_speed, _y + y_speed, fullSpeed); _parent._parent.blood2.addMore(_x + x_speed, _y + y_speed, fullSpeed); } rotateSpeed *= -1; attached = false; } } else { if (!pointAwarded) { pointAwarded = true; ++_parent._parent.score.score; } y_speed -= 2; if (bounce > 0) { DidIHit(); if (iDidHit) { fullSpeed = Math.sqrt(x_speed * x_speed + y_speed * y_speed); if (fullSpeed > 15) { _parent._parent.blood.addMore(_x + x_speed, _y + y_speed, fullSpeed); _parent._parent.blood2.addMore(_x + x_speed, _y + y_speed, fullSpeed); } } } } _x = _x - x_speed; _y = _y - y_speed; _rotation = _rotation + rotateSpeed; if (_y > 450) { _visible = false; } } } } } movieClip 301 { frame 1 { stop(); } instance of movieClip 51 { onClipEvent (load) { stop(); waitAndHaveFun = 0; PercentLoaded = 1 + Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 31 * waitAndHaveFun); if (PercentLoaded != 31) { gotoAndStop(PercentLoaded); } else { gotoAndStop('lastframe'); } } onClipEvent (enterFrame) { if (waitAndHaveFun <= 1) { waitAndHaveFun += 0.01111111111111111; } PercentLoaded = 1 + Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 31 * waitAndHaveFun); if (PercentLoaded != 31) { gotoAndStop(PercentLoaded); } else { gotoAndStop('lastframe'); } } } instance blood2 of movieClip 66 { onClipEvent (load) { function addMore(xxx, yyy, myScale) { if (myScale > 5 * i && i < 26) { newname = 'blood' + i; newdepth = blood.getDepth() + i + 1; this.blood.duplicateMovieClip(newname, newdepth, {'scale': myScale}); eval(newname)._x = xxx; eval(newname)._y = yyy; ++i; } if (i > 18) { cacheAsBitmap = true; } } _y = 0; _x = 0; initdepth = blood.getDepth(); i = 10; } } instance playnow of movieClip 68 { onClipEvent (load) { inity = _y; initx = _x; _visible = false; _y = 800; } onClipEvent (enterFrame) { if (_visible) { _y = inity + random(5) - 2; _x = initx + random(10) - 5; _rotation = (random(5) - 2) / 3; if (Key.isDown(32)) { _root.play(); } if (this.hitTest(_root._xmouse, _root._ymouse)) { wanted_alpha = 30; } else { wanted_alpha = 100; } _alpha = (_alpha * 5 + wanted_alpha) / 6; } } } instance maintext of movieClip 113 { onClipEvent (load) { _parent.score._alpha = 100 - _alpha; lulzArray = new Array(lengthOfThing); lengthOfThing = 32; i = 0; while (i < lengthOfThing) { lulzArray[i] = i; ++i; } i = 0; while (i < lengthOfThing) { tmp_i = random(lengthOfThing); tmp_value = lulzArray[tmp_i]; lulzArray[tmp_i] = lulzArray[i]; lulzArray[i] = tmp_value; ++i; } n = 0; } onClipEvent (enterFrame) { if (!begin && _parent.toss.i > 0) { begin = true; secondsCycle = 0; } } onClipEvent (enterFrame) { _parent.score._alpha = 100 - _alpha; if (begin) { ++secondsCycle; if (secondsCycle > 180) { secondsCycle = 0; } if (secondsCycle > 0 && secondsCycle < 60) { if (_currentframe == 2 && _alpha >= 90) { gotoAndStop(3); } if (_alpha > 0) { _alpha = _alpha - 5; } } if (secondsCycle > 60 && secondsCycle < 180) { if (_currentframe != 2 && _alpha <= 10) { gotoAndStop(2); words.gotoAndStop(lulzArray[n] + 1); ++n; if (n >= lengthOfThing) { n = 0; } } if (_alpha < 100) { _alpha = _alpha + 5; } } } } } instance score of movieClip 128 { onClipEvent (load) { score = 0; } onClipEvent (enterFrame) { frame = int(score / 15) + 1; youare.gotoAndStop(frame); if (frame >= 11 && !alerted) { alerted = true; _root.alert.newUnlock = 'bloodbath'; _global.unlockables.blood = true; thegame.data.unlockables = _global.unlockables; thegame.data.flush(); } } } instance blood of movieClip 66 { onClipEvent (load) { function addMore(xxx, yyy, myScale) { if (i < 45) { if (i < 45 && (yyy > 300 || xxx > 100 && xxx < 540)) { if (myScale > 1.8 * i || myScale > i && yyy < 190) { _parent.splat.start(0, 0); _parent.smack.start(0, 0); newname = 'blood' + i; newdepth = blood.getDepth() + i + 1; this.blood.duplicateMovieClip(newname, newdepth, {'scale': myScale}); eval(newname)._x = xxx; eval(newname)._y = yyy; ++i; } else { _parent.smack.start(0, 0); } } else { _parent.smack.start(0, 0); } } else { _parent.smack.start(0, 0); } if (i > 30) { cacheAsBitmap = true; } } _y = 0; _x = 0; initdepth = blood.getDepth(); i = 10; } } instance of movieClip 299 { onClipEvent (load) { function addMore() { newname = 'player' + i; newdepth = player.getDepth() + i + 1; duplicateMovieClip(this.player, newname, newdepth); ++i; } countRemaining = 5; initdepth = player.getDepth(); i = 0; } onClipEvent (enterFrame) { if (countRemaining > 0 && random(10) == 0) { addMore(); --countRemaining; } } } instance toss of movieClip 300 { onClipEvent (load) { function addMore(xxx, yyy, xSpeed, ySpeed, theframe, grabbed, ohFlip, myBounce) { newname = 'toss' + i; newdepth = toss.getDepth() + i + 1; this.toss.duplicateMovieClip(newname, newdepth, {'x_speed': xSpeed, 'y_speed': ySpeed, 'frame': theframe, 'attached': grabbed, 'flip': ohFlip, 'bounce': myBounce}); eval(newname)._x = xxx; eval(newname)._y = yyy; ++i; } initdepth = toss.getDepth(); i = 0; } } } instance of movieClip 301 { onClipEvent (load) { splat = new Sound(); splat.attachSound('Level_Bloodsplode'); smack = new Sound(); smack.attachSound('Level_Loud_Step'); } } movieClip 306 { frame 1 { stop(); } } instance alert of movieClip 306 { onClipEvent (load) { initx = _x; hidex = _x - 300; _x = hidex; count = 0; unlocked.embedFonts = true; var gong = new Sound(); gong.attachSound('alert'); } onClipEvent (enterFrame) { if (count > 0) { wantedx = initx; --count; } else { wantedx = hidex; } _x = (_x * 2 + wantedx) / 3; if (_x < -100) { _visible = false; } else { _visible = true; } if (newUnlock != undefined) { unlocked.text = newUnlock; newUnlock = undefined; gong.start(0, 0); count = 60; _root.medal_popup.unlockMedal('Bloodbath'); } if (newScore != undefined) { newScore = undefined; gong.start(0, 0); count = 60; } _visible = false; } } // unknown tag 88 length 67 // unknown tag 88 length 62 movieClip 312 { } // unknown tag 88 length 67 movieClip 317 { } movieClip 318 { frame 1 { function unlockMedal(m_name) { clearInterval(pop_delay); var v1 = com.Newgrounds.NewgroundsAPI.getMedals(); var v2 = null; for (i in v1) { if (v1[i].medal_name == m_name) { v2 = v1[i]; medal_name = v2.medal_name; medal_value = v2.medal_value + 'pts'; com.Newgrounds.NewgroundsAPI.unlockMedal(medal_name); pop_delay = setInterval(endDelay, 3000); _visible = true; gotoAndPlay(2); break; } } } function endDelay(params) { gotoAndPlay(10); clearInterval(pop_delay); } var pop_delay; var medal_name = '?????'; var medal_value = '???'; _visible = false; } frame 10 { var myBitmapData = flash.display.BitmapData.loadBitmap(medal_name + '.gif'); medal_icon.attachBitmap(myBitmapData, 111); stop(); } } frame 3 { stop(); } movieClip 320 { } movieClip 329 { } movieClip 331 { } movieClip 335 { } movieClip 336 { } movieClip 339 { } movieClip 343 { } movieClip 346 { } movieClip 347 { } movieClip 349 { } movieClip 350 { } movieClip 351 { } movieClip 360 { } movieClip 361 { } movieClip 370 { frame 278 { _root.gotoAndStop('mainmenu'); } } button 374 { on (press) { _root.gotoAndStop('mainmenu'); } } frame 4 { stop(); } movieClip 376 { instance toss of movieClip 296 { onClipEvent (load) { if (_name != 'toss') { gotoAndStop(frame); _visible = true; } else { gotoAndStop(1); _visible = false; } rotateSpeed = random(20) - 10; if (flip < 0) { _xscale = _xscale * -1; } DidIHit = function () { iDidHit = false; if (_y + _height / 2 > 365) { _y = 365 - _height / 2; y_speed *= -0.7; x_speed *= 0.6; tmp = 90 * Math.abs(_rotation) / _rotation; rotateSpeed = -(_rotation - tmp) / 3; _rotation = tmp; iDidHit = true; } if (_x < 0 || _x > 640) { if (_x < 0) { _x = 0; } else { _x = 640; } x_speed *= -0.8; rotateSpeed = -_rotation / 3; _rotation = 0; iDidHit = true; } if (iDidHit) { --bounce; _parent.smack.start(0, 0); } }; } onClipEvent (mouseUp) { if (attached) { attached = false; } } onClipEvent (enterFrame) { if (_name != 'toss' && _visible) { if (attached) { x_speed -= (_parent._xmouse - _x) / 8; y_speed -= (_parent._ymouse - _y) / 8; rotateSpeed += (_parent._xmouse - _x) / 8; x_speed *= 0.8; y_speed *= 0.8; rotateSpeed *= 0.8; DidIHit(); if (iDidHit) { fullSpeed = Math.sqrt(x_speed * x_speed + y_speed * y_speed); if (fullSpeed > 15) { _parent._parent.blood.addMore(_x + x_speed, _y + y_speed, fullSpeed); _parent._parent.blood2.addMore(_x + x_speed, _y + y_speed, fullSpeed); } rotateSpeed *= -1; attached = false; } } else { if (!pointAwarded) { pointAwarded = true; ++_parent._parent.score.score; } y_speed -= 2; if (bounce > 0) { DidIHit(); if (iDidHit) { fullSpeed = Math.sqrt(x_speed * x_speed + y_speed * y_speed); if (fullSpeed > 15) { _parent._parent.blood.addMore(_x + x_speed, _y + y_speed, fullSpeed); _parent._parent.blood2.addMore(_x + x_speed, _y + y_speed, fullSpeed); } } } } _x = _x - x_speed; _y = _y - y_speed; _rotation = _rotation + rotateSpeed; if (_y > 450) { _visible = false; } } } } } movieClip 389 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 390 { } movieClip 393 { } movieClip 397 { } movieClip 398 { frame 1 { stop(); } instance of movieClip 390 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Play the main game, a series of completely disconnected levels starring faceless hopping amputees! \n\nFUN.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndPlay('STARTGAME'); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'select level'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Replay any level you wish, just as long as you\'ve suffered it before.\n\n(or the level two levels before... it.)'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('LevelSelect'); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'level editor'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Create your own levels or play usermade levels created by others! \n\nAs they say... give a man a fish, something something, nom nom, human capital.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('LevelEditor'); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'achievements'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'View your highscores and unlocked items. The elders will be proud.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _parent.gotoAndStop(3); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'level playlists'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Create Level Playlists, and play all your favourite levels in succession! \n\nThe game has no unifying theme, so you might as well impose your own.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('LevelPlaylists'); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'download freebies'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Yes.\nDownload the whole game!\nDownload individual levels to place on your site!\nDownload music for your Facebook... or w/e.\nMaybe a wallpaper too?'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { getURL('http://thegame.nutcasenightmare.com/downloads', '_blank'); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'spread the game'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Readymade tweets, diggs, reddits, and stumbleupons. Just press the button, submit, and +5 Good Karma.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('SpreadTheGame'); } } instance back of movieClip 397 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent.gotoAndStop(1); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'highscores'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Challenge yourself! You can totally do better than that! YOU JUST GOTTA BELIEVE!!!'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('Highscores'); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'unlockables'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Unlockables: purposely locked in the first place so you\'ll stick around longer. So in a way, it\'s not the content that\'s locked, it is your MIND.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('Unlockables'); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'downloadables'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Download individual levels for your site, download wallpapers for your desktop, download songs for your iTunes. Freebies are awesome.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'spread the game'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Readymade tweets, diggs, reddits, and stumbleupons. Just press the button, submit, and attain good karma.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'commission me'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Because I don\'t feel like resorting to prostitution, (maybe) you can commission me to make an icon, create a banner, or sitelock a reskinned level... just click it.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('SpreadTheGame'); } } instance of movieClip 393 { onClipEvent (load) { command.embedFonts = true; command.text = 'links'; initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; if (highlight._currentframe == 1) { highlight.gotoAndPlay(2); } _parent.infotext.text = 'Wasting even more space on the internet.\n\nThe :the game: site, its blog, and the cutscenes on Youtube.'; } onClipEvent (rollOut) { wanted_scale = initscale; highlight.gotoAndStop(1); } onClipEvent (press) { _root.gotoAndStop('SpreadTheGame'); } } } button 404 { on (press) { getURL('http://www.newgrounds.com/refer/nutcasenightmare', '_blank'); } } movieClip 405 { instance blood2 of movieClip 66 { onClipEvent (load) { function addMore(xxx, yyy, myScale) { if (myScale > i && i < 36) { newname = 'blood' + i; newdepth = blood.getDepth() + i + 1; this.blood.duplicateMovieClip(newname, newdepth, {'scale': myScale}); eval(newname)._x = xxx; eval(newname)._y = yyy; ++i; } if (i > 18) { cacheAsBitmap = true; } } _y = 0; _x = 0; initdepth = blood.getDepth(); i = 10; } } instance blood of movieClip 66 { onClipEvent (load) { function addMore(xxx, yyy, myScale) { if (i < 45) { if (i < 45 && (yyy > 300 || xxx > 100 && xxx < 540)) { if (myScale > 1.8 * i || myScale > i && yyy < 190) { _parent.splat.start(0, 0); _parent.smack.start(0, 0); newname = 'blood' + i; newdepth = blood.getDepth() + i + 1; this.blood.duplicateMovieClip(newname, newdepth, {'scale': myScale}); eval(newname)._x = xxx; eval(newname)._y = yyy; ++i; } else { _parent.smack.start(0, 0); } } else { _parent.smack.start(0, 0); } } else { _parent.smack.start(0, 0); } if (i > 30) { cacheAsBitmap = true; } } _y = 0; _x = 0; initdepth = blood.getDepth(); i = 10; } } instance of movieClip 299 { onClipEvent (load) { function addMore() { newname = 'player' + i; newdepth = player.getDepth() + i + 1; duplicateMovieClip(this.player, newname, newdepth); ++i; } countRemaining = 8; initdepth = player.getDepth(); i = 0; } onClipEvent (enterFrame) { if (countRemaining > 0 && random(10) == 0) { addMore(); --countRemaining; } } } instance toss of movieClip 376 { onClipEvent (load) { function addMore(xxx, yyy, xSpeed, ySpeed, theframe, grabbed, ohFlip, myBounce) { newname = 'toss' + i; newdepth = toss.getDepth() + i + 1; this.toss.duplicateMovieClip(newname, newdepth, {'x_speed': xSpeed, 'y_speed': ySpeed, 'frame': theframe, 'attached': grabbed, 'flip': ohFlip, 'bounce': myBounce}); eval(newname)._x = xxx; eval(newname)._y = yyy; ++i; } initdepth = toss.getDepth(); i = 0; } } instance of movieClip 398 { onClipEvent (load) { doing = new Sound(); doing.attachSound('doing'); infotext.embedFonts = true; infotext.text = 'Welcome to REPLAYING :the game:, and let our warm pretentious greeting help you enjoy your stay. \n\nRoll over the buttons on the left to see info about them.'; lastCurrentframe = _currentframe; } onClipEvent (enterFrame) { if (Math.abs(_rotation) > 0.01) { _rotation = _rotation * -0.8; } else { _rotation = 0; } if (_currentframe != lastCurrentframe) { _rotation = 20; doing.start(0, 0); } lastCurrentframe = _currentframe; } } } instance of movieClip 405 { onClipEvent (load) { _global.levelArray = _global.ORIGINAL_ARRAY; splat = new Sound(); splat.attachSound('Level_Bloodsplode'); smack = new Sound(); smack.attachSound('Level_Loud_Step'); } } movieClip 406 { } instance music of movieClip 406 { onClipEvent (load) { gotoAndPlay(738); } } movieClip 407 { } instance of movieClip 407 { onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 10; } else { _visible = false; } } } movieClip 409 { } instance of movieClip 409 { onClipEvent (load) { colour = new Color(this); colour.setRGB('0x' + (random(255)).toString(16) + (random(255)).toString(16) + (random(255)).toString(16)); } } movieClip 459 { } movieClip 492 { } movieClip 495 { } movieClip 497 { frame 1 { stop(); } instance pic of movieClip 492 { onClipEvent (load) { stop(); } } instance highlight of movieClip 495 { onClipEvent (load) { _alpha = 0; } } } movieClip 498 { instance icon of movieClip 497 { onClipEvent (load) { if (_currentframe != 2) { if (_name != 'icon') { scale_it = function (x) { wut_x = Math.abs(x) * 90 / 600; scale = Math.cos(wut_x * Math.PI / 180); _yscale = scale * 100; _xscale = scale * 100; }; scale_it(_parent._x + _x); } else { _visible = false; } } } onClipEvent (enterFrame) { if (_currentframe != 2) { if (_name != 'icon') { if (Math.abs(_parent._x + _x) < 450) { _visible = true; } else { _visible = false; } scale_it(_parent._x + _x); } } } onClipEvent (press) { if (_currentframe != 2) { foundIt = false; index = 0; for (;;) { if (!(!foundIt && index < _global.levelArray.length)) break; ++index; if (_global.levelArray[index] == myFrame) { foundIt = true; } } _root.levelIndex = index; if (myFrame == 'REPLAY') { _root.levelIndex = 0; } _root.fromLvlSelect = true; _root.gotoAndPlay('STARTGAME'); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { if (_currentframe != 2) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } } } } movieClip 499 { instance of movieClip 498 { onClipEvent (load) { var frame; i = 0; while (i < _global.levelArray.length) { newname = 'icon' + i; newdepth = icon.getDepth() + i + 1; duplicateMovieClip(this.icon, newname, newdepth); eval(newname)._x = 110 * i; frame = _global.levelArray[i]; tellTarget ('newname') { myFrame = _parent.frame; if (hasItBeenPlayed(myFrame)) { pic.gotoAndStop(myFrame); } else { gotoAndStop(2); } } ++i; } x_speed = 0; end = -110 * (_global.levelArray.length - 1); } onClipEvent (enterFrame) { if (Math.abs(_parent._ymouse) < 65) { if (_parent._xmouse > 160) { x_speed -= 2; } if (_parent._xmouse < -160) { x_speed += 2; } } _x = _x + x_speed; x_speed *= 0.8; if (_x > 0) { _x = 0; x_speed *= -0.9; } if (_x < end) { _x = end; x_speed *= -0.9; } } } } movieClip 501 { } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } movieClip 504 { } movieClip 506 { } movieClip 524 { } movieClip 529 { frame 1 { stop(); } instance of movieClip 506 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { if (_parent._currentframe == 1) { _parent.play(); _yscale = initscale; _xscale = initscale; } } } instance forw of movieClip 397 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { if (_parent._currentframe == 20) { ++_parent.page_number; _yscale = initscale; _xscale = initscale; } } } instance back of movieClip 397 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { if (_parent._currentframe == 20) { --_parent.page_number; _yscale = initscale; _xscale = initscale; } } } instance of movieClip 524 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { if (_parent._currentframe == 20) { _parent.play(); _yscale = initscale; _xscale = initscale; } } } frame 20 { stop(); } frame 40 { gotoAndStop(1); } } instance of movieClip 529 { onClipEvent (load) { text = new Array(); page_number = 0; i = 0; text[i] = new Array(); text[i].push(' LEVEL SELECT'); text[i].push(''); text[i].push('~ Move cursor to the left and right on the white bar'); text[i].push(' to scroll through the levels.'); text[i].push(''); text[i].push('~ Completing one level unlocks the next two, allowing'); text[i].push(' you to skip some levels. Pft.'); page = new Array(text.length); i = 0; while (i < page.length) { page[i] = new String(''); line = 0; while (line < text[i].length) { page[i] += text[i][line] + '\n'; ++line; } ++i; } } onClipEvent (enterFrame) { infoclip.info.text = page[page_number]; if (page_number <= 0) { page_number = 0; back._visible = false; } else { back._visible = true; } if (page_number >= page.length - 1) { page_number = page.length - 1; forw._visible = false; } else { forw._visible = true; } } } movieClip 533 { } movieClip 539 { } movieClip 540 { instance thing of movieClip 539 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (load) { highlight._alpha = 0; } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (press) { with (_parent) { redirect(); } } } } button 549 { on (press) { getURL('http://pastebin.ca/', '_blank'); } } movieClip 552 { } button 560 { on (press) { _global.gameArray.unshift(decipherAndCreate(code.text)); _global.viewNumber = undefined; _parent.select.last_chosen = undefined; _parent.select.last_x = 0; gotoAndStop(1); } } button 568 { on (press) { trash = new Sound(); trash.attachSound('trash'); trash.start(0, 0); _global.gameArray.splice(_global.viewNumber, 1); _global.viewNumber = undefined; _parent.select.last_chosen = undefined; gotoAndStop(1); } } button 570 { on (press) { gotoAndStop(2); } } movieClip 573 { } movieClip 574 { } movieClip 575 { instance playlist of movieClip 574 { onClipEvent (press) { _parent._parent.viewNumber = viewNumber; _parent._parent.gotoAndStop(2); } onClipEvent (load) { if (_name == 'playlist') { _visible = false; } } onClipEvent (load) { highlight._alpha = 0; } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } } } movieClip 577 { frame 1 { stop(); } instance of movieClip 540 { onClipEvent (load) { thing.gotoAndStop(3); redirect = function () { _parent._parent.fade.goTo = 2; _parent._parent.fade.viewTo = 0; thegame.data.gameArray.unshift(new Object()); _parent._parent.blankSlate(0); }; } } instance of movieClip 540 { onClipEvent (load) { thing.gotoAndStop(4); redirect = function () { _parent.afterLoadingGoWhere = 1; _parent.gotoAndStop(4); }; } } instance of movieClip 540 { onClipEvent (load) { thing.gotoAndStop(1); redirect = function () { _parent._parent.fade.goTo = 3; }; } } instance of movieClip 540 { onClipEvent (load) { thing.gotoAndStop(2); redirect = function () { _parent._parent.fade.goTo = 2; }; } } instance of movieClip 540 { onClipEvent (load) { thing.gotoAndStop(6); redirect = function () { _parent.gotoAndStop(5); }; } } instance of movieClip 540 { onClipEvent (load) { thing.gotoAndStop(3); redirect = function () { _parent._parent.fade.goTo = 2; _parent._parent.fade.viewTo = 0; thegame.data.gameArray.unshift(new Object()); _parent._parent.blankSlate(0); }; } } instance of movieClip 540 { onClipEvent (load) { thing.gotoAndStop(4); redirect = function () { _parent.afterLoadingGoWhere = 2; _parent.gotoAndStop(4); }; } } instance of movieClip 540 { onClipEvent (load) { thing.gotoAndStop(5); redirect = function () { _parent.generatedCode = _parent.generateCode(_global.gameArray[_global.viewNumber]); _parent.gotoAndStop(3); }; } } instance forw of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent.gotoAndStop(2); } } instance forw of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent.gotoAndStop(_parent.afterLoadingGoWhere); } } instance of movieClip 575 { onClipEvent (enterFrame) { if (_parent._parent.select.clicked != undefined) { _parent._parent.select.clicked = undefined; } } } instance resetLight of movieClip 573 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha / 2; } } } movieClip 579 { frame 1 { stop(); } } movieClip 580 { } movieClip 599 { } movieClip 735 { instance of movieClip 158 { onClipEvent (load) { if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) { _xscale = _xscale * -1; } } } instance of movieClip 158 { onClipEvent (load) { if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) { _xscale = _xscale * -1; } } } } movieClip 736 { instance char of movieClip 735 { onClipEvent (load) { stop(); } } } movieClip 738 { } movieClip 739 { frame 1 { stop(); } instance chosen of movieClip 579 { onClipEvent (load) { gotoAndStop(1); } onClipEvent (enterFrame) { if (_parent._parent.chosen == _parent._name) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance bg of movieClip 580 { onClipEvent (load) { } } instance highlight of movieClip 738 { onClipEvent (load) { _alpha = 0; } } } movieClip 740 { instance icon of movieClip 739 { onClipEvent (load) { if (_name != 'icon') { scale_it = function (x) { wut_x = Math.abs(x) * 90 / 600; scale = Math.cos(wut_x * Math.PI / 180); _yscale = scale * 100; _xscale = scale * 100; }; scale_it(_parent._x + _x); colour = new Color(bg); colour.setRGB(rgb); thing._x = x; thing._y = y; thing._rotation = rotation; thing._yscale = thing._xscale * thingscale / 100; thing._xscale = thing._yscale; } else { _visible = false; } } onClipEvent (enterFrame) { if (_name != 'icon') { if (Math.abs(_parent._x + _x) < 450) { _visible = true; } else { _visible = false; } scale_it(_parent._x + _x); } } onClipEvent (press) { _parent.chosen = _name; } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } } } movieClip 741 { frame 1 { stop(); } instance chooser of movieClip 740 { onClipEvent (load) { var frame; i = 0; while (i < _global.gameArray.length) { newname = 'icon' + i; newdepth = icon.getDepth() + i + 1; duplicateMovieClip(this.icon, newname, newdepth); eval(newname)._x = 110 * i; tellTarget ('newname') { rgb = _global.gameArray[_parent.i].icon[0]; x = _global.gameArray[_parent.i].icon[1]; y = _global.gameArray[_parent.i].icon[2]; rotation = _global.gameArray[_parent.i].icon[3]; thingscale = _global.gameArray[_parent.i].icon[4]; thing.char.gotoAndStop(_global.gameArray[_parent.i].char[0]); title.text = _global.gameArray[_parent.i].word[0]; } ++i; } x_speed = 0; end = -110 * (_global.gameArray.length - 1); } onClipEvent (enterFrame) { if (Math.abs(_parent._ymouse) < 65) { if (_parent._xmouse > 160) { x_speed -= 2; } if (_parent._xmouse < -160) { x_speed += 2; } } _x = _x + x_speed; x_speed *= 0.8; if (_x > 0) { _x = 0; x_speed *= -0.9; } if (_x < end) { _x = end; x_speed *= -0.9; } parsedChosen = parseInt(chosen.charAt(4)); if (chosen != undefined && _global.viewNumber != parsedChosen) { _parent._parent.editor.gotoAndStop(1); _parent._parent.editor.gotoAndStop(2); _global.viewNumber = parsedChosen; } } onClipEvent (enterFrame) { _parent.last_x = _x; _parent.last_chosen = chosen; } } } movieClip 743 { } movieClip 744 { } movieClip 745 { } movieClip 746 { frame 1 { stop(); } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance of movieClip 744 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { if (_parent._currentframe == 1) { _parent.play(); _yscale = initscale; _xscale = initscale; } } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance forw of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { if (_parent._currentframe == 20) { ++_parent.page_number; _yscale = initscale; _xscale = initscale; } } } instance back of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { if (_parent._currentframe == 20) { --_parent.page_number; _yscale = initscale; _xscale = initscale; } } } instance of movieClip 745 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { if (_parent._currentframe == 20) { _parent.play(); _yscale = initscale; _xscale = initscale; } } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } frame 20 { stop(); } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } instance infoclip of movieClip 743 { onClipEvent (load) { info.embedFonts = true; } } frame 40 { gotoAndStop(1); } } movieClip 747 { } movieClip 750 { } movieClip 754 { } movieClip 756 { instance icon of movieClip 750 { onClipEvent (load) { colour = new Color(bg); colourString = _global.gameArray[_global.viewNumber].icon[0]; _parent.red._y = 290 - 240 * (parseInt(colourString.substr(2, 2), 16) / 255); _parent.green._y = 290 - 240 * (parseInt(colourString.substr(4, 2), 16) / 255); _parent.blue._y = 290 - 240 * (parseInt(colourString.substr(6, 2), 16) / 255); thing._x = 1.46 * _global.gameArray[_global.viewNumber].icon[1]; thing._y = 1.46 * _global.gameArray[_global.viewNumber].icon[2]; thing._rotation = _global.gameArray[_global.viewNumber].icon[3]; initxscale = thing._xscale; thing._yscale = 1.1 * initxscale * _global.gameArray[_global.viewNumber].icon[4] / 100; thing._xscale = thing._yscale; thing.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[0]); title.text = _global.gameArray[_global.viewNumber].word[0]; } onClipEvent (enterFrame) { colourString = '0x' + redness + greeness + blueness; colour.setRGB(colourString); _global.gameArray[_global.viewNumber].icon[0] = colourString; } onClipEvent (load) { shuffle = function () { thing._rotation = random(360); thing._x = random(100) - 50; thing._y = random(100) - 50; thing._yscale = 80 + random(100); thing._xscale = thing._yscale; _global.gameArray[_global.viewNumber].icon[1] = thing._x / 1.46; _global.gameArray[_global.viewNumber].icon[2] = thing._y / 1.46; _global.gameArray[_global.viewNumber].icon[3] = thing._rotation; _global.gameArray[_global.viewNumber].icon[4] = 100 * (thing._xscale / 1.1) / initxscale; }; } onClipEvent (press) { shuffle(); } } instance red of movieClip 754 { onClipEvent (press) { startDrag(this, true, _x, 50, _x, 290); } onClipEvent (mouseUp) { stopDrag(); } onClipEvent (load) { colour = new Color(bg); changeColour = function () { ness = 255 * (1 - (_y - 50) / 240); ness = ness.toString(16); if (ness.length == 1) { ness = '0' + ness; } _parent.icon.redness = ness; }; } onClipEvent (enterFrame) { changeColour(); colour.setRGB('0x' + ness + '0000'); } } instance green of movieClip 754 { onClipEvent (press) { startDrag(this, true, _x, 50, _x, 290); } onClipEvent (mouseUp) { stopDrag(); } onClipEvent (load) { colour = new Color(bg); changeColour = function () { ness = 255 * (1 - (_y - 50) / 240); ness = ness.toString(16); if (ness.length == 1) { ness = '0' + ness; } _parent.icon.greeness = ness; }; } onClipEvent (enterFrame) { changeColour(); colour.setRGB('0x00' + ness + '00'); } } instance blue of movieClip 754 { onClipEvent (press) { startDrag(this, true, _x, 50, _x, 290); } onClipEvent (mouseUp) { stopDrag(); } onClipEvent (load) { colour = new Color(bg); changeColour = function () { ness = 255 * (1 - (_y - 50) / 240); ness = ness.toString(16); if (ness.length == 1) { ness = '0' + ness; } _parent.icon.blueness = ness; }; } onClipEvent (enterFrame) { changeColour(); colour.setRGB('0x0000' + ness); } } } movieClip 758 { } movieClip 766 { } movieClip 770 { instance of movieClip 158 { onClipEvent (load) { if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) { _xscale = _xscale * -1; } } } } button 773 { on (press) { _parent.editMe = _name; _parent.selector.arrow._x = position * 500 - 250; _parent.options = options; flashit._alpha = 100; } } movieClip 775 { } movieClip 776 { frame 1 { stop(); } instance char of movieClip 770 { onClipEvent (load) { stop(); options = 114; _parent.options = options; _parent.position = (_global.gameArray[_global.viewNumber].char[_parent.iii] - 1) / (options - 1); n = 0; } onClipEvent (enterFrame) { if (_parent._parent.editMe == _parent._name && _parent.position != _parent._parent.position) { _parent.position = _parent._parent.position; gotoAndStop(1 + Math.round(_parent.position * (options - 1))); } } } instance flashit of movieClip 580 { onClipEvent (load) { _alpha = 100; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 10; } } } instance glow of movieClip 775 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_parent._parent.editMe == _parent._name) { _visible = true; } else { _visible = false; } } } instance char of movieClip 735 { onClipEvent (load) { stop(); options = 26; _parent.options = options; _parent.position = (_global.gameArray[_global.viewNumber].char[0] - 1) / 3 / (options - 1); n = 0; with (_parent) { _parent.editMe = _name; _parent.selector.arrow._x = position * 500 - 250; _parent.options = options; flashit._alpha = 100; } } onClipEvent (enterFrame) { if (_parent._parent.editMe == _parent._name && _parent.position != _parent._parent.position) { _parent.position = _parent._parent.position; gotoAndStop(1 + 3 * Math.round(_parent.position * (options - 1))); if (_currentframe == 61) { _x = 26; } else { _x = 5.8; } } } } instance flashit of movieClip 580 { onClipEvent (load) { _alpha = 100; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 10; } } } } button 780 { on (press) { arrow._x -= 500 / (_parent.options - 1); if (arrow._x < -250) { arrow._x = -250; } } } button 781 { on (press) { arrow._x += 500 / (_parent.options - 1); if (arrow._x > 250) { arrow._x = 250; } } } movieClip 783 { } movieClip 784 { instance arrow of movieClip 783 { onClipEvent (press) { startDrag(this, true, -250, _y, 250, _y); } onClipEvent (mouseUp) { stopDrag(); } onClipEvent (enterFrame) { whatsEdited = _parent._parent.editMe; with (_parent._parent) { position = (this._x + 250) / 500; } } } } movieClip 785 { instance walker1 of movieClip 776 { onClipEvent (load) { iii = 1; } } instance walker2 of movieClip 776 { onClipEvent (load) { iii = 2; } } instance follower1 of movieClip 776 { onClipEvent (load) { iii = 3; } } instance follower2 of movieClip 776 { onClipEvent (load) { iii = 4; } } } movieClip 789 { } movieClip 790 { frame 1 { stop(); } instance forw of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent.nextFrame(); } } instance of movieClip 758 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent._parent.fade.goTo = 1; _global.viewNumber = undefined; } } instance of movieClip 746 { onClipEvent (load) { text = new Array(); page_number = 0; i = 0; text[i] = new Array(); text[i].push(' ICON MAKER'); text[i].push(''); text[i].push('~ Click and drag sliders to change the colour of icon.'); text[i].push(''); text[i].push('~ Click the icon for lulz.'); text[i].push(' (ok fine. it randomizes the position and rotation.)'); text[i].push(''); text[i].push('~ You can edit the character and the title in the'); text[i].push(' next few pages.'); page = new Array(text.length); i = 0; while (i < page.length) { page[i] = new String(''); line = 0; while (line < text[i].length) { page[i] += text[i][line] + '\n'; ++line; } ++i; } } onClipEvent (enterFrame) { infoclip.info.text = page[page_number]; if (page_number <= 0) { page_number = 0; back._visible = false; } else { back._visible = true; } if (page_number >= page.length - 1) { page_number = page.length - 1; forw._visible = false; } else { forw._visible = true; } } } instance of movieClip 766 { onClipEvent (load) { function fixRedText(string) { string = string.toUpperCase(); newString = ''; i = 0; while (i < string.length) { n = string.charCodeAt(i); if (n >= 65 && n <= 90 || n >= 48 && n <= 57 || n == 32 || n == 39 || n == 63 || n == 33 || n == 58 || n == 46 || n == 59 || n == 44) { newString += string.charAt(i); } ++i; } return newString; } title.embedFonts = true; sub.embedFonts = true; end1.embedFonts = true; end2.embedFonts = true; end3.embedFonts = true; oneliner.embedFonts = true; title.text = _global.gameArray[_global.viewNumber].word[0]; sub.text = _global.gameArray[_global.viewNumber].word[1]; end1.text = _global.gameArray[_global.viewNumber].word[2]; end2.text = _global.gameArray[_global.viewNumber].word[3]; end3.text = _global.gameArray[_global.viewNumber].word[4]; oneliner.text = _global.gameArray[_global.viewNumber].word[5]; } onClipEvent (enterFrame) { title.text = fixRedText(title.text); end1.text = fixRedText(end1.text); end2.text = fixRedText(end2.text); end3.text = fixRedText(end3.text); _global.gameArray[_global.viewNumber].word[0] = title.text; _global.gameArray[_global.viewNumber].word[1] = sub.text; _global.gameArray[_global.viewNumber].word[2] = end1.text; _global.gameArray[_global.viewNumber].word[3] = end2.text; _global.gameArray[_global.viewNumber].word[4] = end3.text; _global.gameArray[_global.viewNumber].word[5] = oneliner.text; } } instance back of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent.prevFrame(); } } instance of movieClip 746 { onClipEvent (load) { text = new Array(); page_number = 0; i = 0; text[i] = new Array(); text[i].push(' WORDS, WORDS, WORDS'); text[i].push(''); text[i].push('~ NOW you can change the title, and include your'); text[i].push(' own itty bitty witty subtitle.'); text[i].push(''); text[i].push('~ You can also create the endscreen text.'); text[i].push(' If not all lines are filled, that\'s ok.'); text[i].push(' You then just get one or two lines.'); text[i].push(' Add the final one-liner while you\'re at it.'); text[i].push(''); text[i].push('~ NOTE: the red text may contain only letters, numbers,'); text[i].push(' and punctuation marks. This is because life is'); text[i].push(' a twisted, sadistic carnival of pain.'); page = new Array(text.length); i = 0; while (i < page.length) { page[i] = new String(''); line = 0; while (line < text[i].length) { page[i] += text[i][line] + '\n'; ++line; } ++i; } } onClipEvent (enterFrame) { infoclip.info.text = page[page_number]; if (page_number <= 0) { page_number = 0; back._visible = false; } else { back._visible = true; } if (page_number >= page.length - 1) { page_number = page.length - 1; forw._visible = false; } else { forw._visible = true; } } } instance of movieClip 785 { onClipEvent (load) { editMe = 'main'; var options; var position; main.gotoAndStop(2); main.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[0]); walker1.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[1]); walker2.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[2]); follower1.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[3]); follower2.char.gotoAndStop(_global.gameArray[_global.viewNumber].char[4]); } onClipEvent (enterFrame) { _global.gameArray[_global.viewNumber].char[0] = main.char._currentframe; _global.gameArray[_global.viewNumber].char[1] = walker1.char._currentframe; _global.gameArray[_global.viewNumber].char[2] = walker2.char._currentframe; _global.gameArray[_global.viewNumber].char[3] = follower1.char._currentframe; _global.gameArray[_global.viewNumber].char[4] = follower2.char._currentframe; } } instance of movieClip 746 { onClipEvent (load) { text = new Array(); page_number = 0; i = 0; text[i] = new Array(); text[i].push(' CHARACTERS'); text[i].push(''); text[i].push('~ This is the MEAT of the game. The CHARACTERS.'); text[i].push(''); text[i].push('~ There is exactly one playable character,'); text[i].push(' you may pick up to two characters that just walk around,'); text[i].push('\t and up to two characters that follow you to your death.'); text[i].push(''); text[i].push('~ Click a box, and move the slider to scroll through'); text[i].push(' characters. Pressing the triangles on the left and'); text[i].push(' right changes the character slowly. Leaving a box blank'); text[i].push(' means no character for that role.'); text[i].push(''); text[i].push('~ P.S: There are many more characters for the supplementary'); text[i].push(' roles, because I don\'t have to draw them jumping and'); text[i].push(' squatting and stuff. SO HAVE FUN.'); page = new Array(text.length); i = 0; while (i < page.length) { page[i] = new String(''); line = 0; while (line < text[i].length) { page[i] += text[i][line] + '\n'; ++line; } ++i; } } onClipEvent (enterFrame) { infoclip.info.text = page[page_number]; if (page_number <= 0) { page_number = 0; back._visible = false; } else { back._visible = true; } if (page_number >= page.length - 1) { page_number = page.length - 1; forw._visible = false; } else { forw._visible = true; } } } instance of movieClip 789 { onClipEvent (load) { name.embedFonts = true; info.embedFonts = true; name.text = _global.gameArray[_global.viewNumber].info[0]; info.text = _global.gameArray[_global.viewNumber].info[1]; } onClipEvent (enterFrame) { _global.gameArray[_global.viewNumber].info[0] = name.text; _global.gameArray[_global.viewNumber].info[1] = info.text; } } instance of movieClip 746 { onClipEvent (load) { text = new Array(); page_number = 0; i = 0; text[i] = new Array(); text[i].push(' THE CREDITS'); text[i].push(''); text[i].push('~ This really is just for shameless self-promotion.'); text[i].push(' Hey, I dunno. You COULD, theoretically, create'); text[i].push(' a funny game for a charitable cause, and use this'); text[i].push(' feature to promote said charity. You might even give'); text[i].push(' credit to whoever inspired you!'); text[i].push(''); text[i].push(' But we both know you\'re just going to add a biturl to'); text[i].push(' a rickroll. Don\'t. Use the Epicroll instead. =D'); text[i].push(''); text[i].push(''); text[i].push(''); text[i].push('~ P.S: have fun, don\'t take anything here too seriously,'); text[i].push(' and if you\'re afraid someone already did your idea,'); text[i].push(' remember: Family Guy ALWAYS already did it.'); page = new Array(text.length); i = 0; while (i < page.length) { page[i] = new String(''); line = 0; while (line < text[i].length) { page[i] += text[i][line] + '\n'; ++line; } ++i; } } onClipEvent (enterFrame) { infoclip.info.text = page[page_number]; if (page_number <= 0) { page_number = 0; back._visible = false; } else { back._visible = true; } if (page_number >= page.length - 1) { page_number = page.length - 1; forw._visible = false; } else { forw._visible = true; } } } } movieClip 833 { } movieClip 834 { instance letter of movieClip 833 { onClipEvent (load) { if (_name == 'letter') { _visible = false; gotoAndStop(27); } else { if (frame < 0) { if (frame >= -16 && frame <= -7) { gotoAndStop(frame + 66); } else { switch (frame + 64) { case 32: gotoAndStop(27); break; case 39: gotoAndStop(28); break; case 63: gotoAndStop(29); break; case 33: gotoAndStop(30); break; case 58: gotoAndStop(31); break; case 46: gotoAndStop(31); break; case 59: gotoAndStop(32); break; case 44: gotoAndStop(33); } } } else { gotoAndStop(frame); } } } } } movieClip 838 { } movieClip 839 { frame 1 { next_level = false; } instance of movieClip 838 { onClipEvent (keyDown) { if (n > delay) { _parent.next_level = true; } } onClipEvent (press) { if (n > delay) { _parent.next_level = true; } } onClipEvent (load) { n = 0; delay = 20; scale = _xscale; } onClipEvent (enterFrame) { if (n <= delay) { ++n; } new_scale = scale; if (this.hitTest(_root._xmouse, _root._ymouse)) { new_scale = scale * 1.05; } } onClipEvent (enterFrame) { _xscale = (_xscale + new_scale) / 2; _yscale = (_xscale + new_scale) / 2; } } } movieClip 843 { } movieClip 845 { } movieClip 846 { frame 1 { stop(); } instance of movieClip 839 { onClipEvent (enterFrame) { if (next_level) { _global.viewNumber += 1; _global.viewNumber %= _global.gameArray.length; _parent._parent.gotoAndStop(2); } } } instance of movieClip 843 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; spin = false; rotation_speed = 0; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; if (spin) { rotation_speed += 1; } rotation_speed *= 0.95; _rotation = _rotation - rotation_speed; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; spin = true; } onClipEvent (rollOut) { wanted_scale = initscale; spin = false; } onClipEvent (press) { _parent._parent.gotoAndStop(2); } } instance of movieClip 845 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; spin = false; rotation_speed = 0; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; if (spin) { rotation_speed += 1; } rotation_speed *= 0.95; _rotation = _rotation + rotation_speed; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; spin = true; } onClipEvent (rollOut) { wanted_scale = initscale; spin = false; } onClipEvent (press) { _parent._parent._parent.gotoAndStop(1); } } } movieClip 864 { frame 1 { gotoAndStop(random(5) + 1); } } movieClip 865 { frame 1 { function cloud_position(thing) { rotation = random(360); distance = random(150); scale = random(50) + 25; with (thing) { _y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433); _x = distance * Math.sin(rotation * 0.0174532925199433); _yscale = scale; _xscale = _yscale; } } function cloud_move(thing) { with (thing) { edge = 150 * Math.sqrt(1 - _y * _y / 3600); y_edge = 60 * Math.sqrt(1 - _x * _x / 22500); _x += speed; _y += y_speed; _alpha = edge - Math.abs(_x); second_alpha = (y_edge - Math.abs(_y)) / 0.4; if (_alpha > second_alpha) { _alpha = second_alpha; } if (_alpha <= 0) { _x = -edge; _y = -y_edge; speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } } } denominator = 6; } frame 2 { stop(); } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } } movieClip 870 { } movieClip 873 { } movieClip 874 { instance of movieClip 735 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 5 { stop(); } } movieClip 875 { instance of movieClip 735 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 3 { if (_parent._parent._name == 'player') { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } } frame 8 { _parent._parent.soft_step.start(0, 0); } frame 11 { if (_parent._parent._name == 'player') { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } } frame 16 { _parent._parent.soft_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 876 { instance of movieClip 735 { onClipEvent (load) { gotoAndStop(_parent._parent.jumping_frame); } } frame 7 { stop(); } } movieClip 877 { instance of movieClip 735 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } instance of movieClip 735 { onClipEvent (load) { gotoAndStop(_parent._parent.squatting_frame); } } frame 6 { stop(); } } movieClip 878 { instance of movieClip 735 { onClipEvent (load) { gotoAndStop(_parent._parent.squatting_frame); } } frame 8 { _parent._parent.softer_step.start(0, 0); } frame 16 { _parent._parent.softer_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 879 { frame 1 { stop(); } } movieClip 881 { } movieClip 882 { instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 881 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } frame 20 { stop(); } } movieClip 884 { frame 1 { _alpha = 0; } } movieClip 886 { } movieClip 887 { instance of movieClip 886 { onClipEvent (load) { _alpha = 0; screen_width = 320; screen_length = 200; screen_diagonal = 377.359; init_angle = 32.00538321; } onClipEvent (enterFrame) { _root._x = _parent._x - screen_width; _root._y = _parent._y - screen_length; _root._rotation = -_parent._rotation; angle = _root._rotation + 90 + init_angle; _root._y += Math.cos(angle * 0.0174532925199433) * screen_diagonal; _root._x -= Math.sin(angle * 0.0174532925199433) * screen_diagonal; _root._x += screen_width; _root._y += screen_length; } } } movieClip 888 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player3 of movieClip 879 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[2]; if (standing_frame == 200) { _visible = false; _parent.player_shadow3._visible = false; } } onClipEvent (enterFrame) { if (_visible) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } } onClipEvent (enterFrame) { if (_visible) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (_visible) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (_visible) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow3._x = _x; _parent.player_shadow3._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow3._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } } } } } instance player2 of movieClip 879 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[1]; if (standing_frame == 200) { _visible = false; _parent.player_shadow2._visible = false; } } onClipEvent (enterFrame) { if (_visible) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } } onClipEvent (enterFrame) { if (_visible) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (_visible) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (_visible) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow2._x = _x; _parent.player_shadow2._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow2._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } } } } } instance player of movieClip 879 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = _global.gameArray[_global.viewNumber].char[0]; this.jumping_frame = standing_frame + 1; this.squatting_frame = standing_frame + 2; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { if (!iDiedForSure) { iDiedForSure = true; --_parent.deathCount; } } } } } } } } instance player4 of movieClip 879 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[3]; if (standing_frame == 200) { this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[4]; if (standing_frame == 200) { _visible = false; _parent.player_shadow4._visible = false; } } up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_visible) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player._y > _y + 10 && !FOREVERDRIVE) { FOREVERDRIVE = true; if (_parent.player._x > _x) { ForeverLeft = true; left_is_pressed = false; right_is_pressed = true; } else { ForeverRight = true; right_is_pressed = false; left_is_pressed = true; } } else { if (ForeverLeft) { left_is_pressed = false; right_is_pressed = true; } else { if (ForeverRight) { right_is_pressed = false; left_is_pressed = true; } } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow4._x = _x; _parent.player_shadow4._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow4._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { if (!iDiedForSure) { iDiedForSure = true; --_parent.deathCount; } } } } } } } } } } instance player5 of movieClip 879 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[3]; if (standing_frame == 200) { _visible = false; _parent.player_shadow5._visible = false; } this.standing_frame = 199 + _global.gameArray[_global.viewNumber].char[4]; if (standing_frame == 200) { _visible = false; _parent.player_shadow5._visible = false; } up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_visible) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player4._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player4._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player4._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player4._y > _y + 10) { if (_parent.player4._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow5._x = _x; _parent.player_shadow5._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow5._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { if (!iDiedForSure) { iDiedForSure = true; --_parent.deathCount; } } } } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } } movieClip 889 { frame 1 { stop(); } instance of movieClip 846 { onClipEvent (load) { var gong = new Sound(); gong.attachSound('gong'); gong.start(0, 0); n = 0; } onClipEvent (enterFrame) { ++n; if (n > 100) { _parent.nextFrame(); } } onClipEvent (load) { subtitle.embedFonts = true; subtitle.text = '(AKA ' + _global.gameArray[_global.viewNumber].word[1] + ')'; myTitle = _global.gameArray[_global.viewNumber].word[0]; initdepth = letter.letter.getDepth(); spacing = 0; i = 0; while (i < myTitle.length) { newName = 'letter' + i; newDepth = initdepth + i + 1; myFrame = myTitle.charCodeAt(i) - 64; this.letter.letter.duplicateMovieClip(newName, newDepth, {'_x': spacing, 'frame': myFrame}); this.letter.letter.myFrame = myFrame; with (this.letter.letter) { if (myFrame < 0) { if (myFrame >= -16 && myFrame <= -7) { gotoAndStop(myFrame + 66); } else { switch (myFrame + 64) { case 32: gotoAndStop(27); break; case 39: gotoAndStop(28); break; case 63: gotoAndStop(29); break; case 33: gotoAndStop(30); break; case 58: gotoAndStop(31); break; case 46: gotoAndStop(31); break; case 59: gotoAndStop(32); break; case 44: gotoAndStop(33); } } } else { gotoAndStop(myFrame); } } if (myFrame == -32) { spacing += 8; } else { spacing += this.letter.letter._width + 3; } ++i; } this.letter.letter._visible = false; this.letter._width = 580; this.letter._height = 160; } } instance of movieClip 888 { onClipEvent (load) { deathCount = 1; if (_global.gameArray[_global.viewNumber].char[4] + 199 != 200) { ++deathCount; } if (_global.gameArray[_global.viewNumber].char[3] + 199 != 200) { ++deathCount; } } onClipEvent (enterFrame) { if (deathCount == 0) { _parent.nextFrame(); } } } instance music of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } frame 4 { _root._x = 0; _root._y = 0; _root._rotation = 0; _root._yscale = 100; _root._xscale = 100; } instance of movieClip 846 { onClipEvent (load) { function omgtext(target) { with (target) { doesItHaveContent = false; myTitle = _parent.myTitle; initdepth = letter.getDepth(); spacing = 0; i = 0; while (i < myTitle.length) { newName = 'letter' + i; newDepth = initdepth + i + 1; myFrame = myTitle.charCodeAt(i) - 64; letter.duplicateMovieClip(newName, newDepth, {'_x': spacing, 'frame': myFrame}); letter.myFrame = myFrame; with (letter) { if (myFrame < 0) { if (myFrame >= -16 && myFrame <= -7) { gotoAndStop(myFrame + 66); } else { switch (myFrame + 64) { case 32: gotoAndStop(27); break; case 39: gotoAndStop(28); break; case 63: gotoAndStop(29); break; case 33: gotoAndStop(30); break; case 58: gotoAndStop(31); break; case 46: gotoAndStop(31); break; case 59: gotoAndStop(32); break; case 44: gotoAndStop(33); } } } else { gotoAndStop(myFrame); } } if (myFrame == -32) { spacing += 8; } else { spacing += letter._width + 3; doesItHaveContent = true; } ++i; } letter._visible = false; return doesItHaveContent; } } var gong = new Sound(); gong.attachSound('gong'); gong.start(0, 0); gotoAndStop(2); subtitle.embedFonts = true; subtitle.text = '(' + _global.gameArray[_global.viewNumber].word[5] + ')'; lineCount = 0; myTitle = _global.gameArray[_global.viewNumber].word[2]; if (!omgtext(this.letter)) { myTitle = _global.gameArray[_global.viewNumber].word[3]; if (!omgtext(this.letter)) { myTitle = _global.gameArray[_global.viewNumber].word[4]; if (omgtext(this.letter)) { ++lineCount; } } else { ++lineCount; myTitle = _global.gameArray[_global.viewNumber].word[4]; if (omgtext(this.letter2)) { ++lineCount; } } } else { ++lineCount; myTitle = _global.gameArray[_global.viewNumber].word[3]; if (!omgtext(this.letter2)) { myTitle = _global.gameArray[_global.viewNumber].word[4]; if (omgtext(this.letter2)) { ++lineCount; } } else { ++lineCount; myTitle = _global.gameArray[_global.viewNumber].word[4]; if (omgtext(this.letter3)) { ++lineCount; } } } this.letter3._width = 580; this.letter2._width = 580; this.letter._width = 580; switch (lineCount) { case 1: this.letter._height = 160; break; case 2: this.letter2._height = 68; this.letter._height = 68; this.letter2._y = -39; break; case 3: this.letter3._height = 45; this.letter2._height = 45; this.letter._height = 45; this.letter2._y += 3; this.letter3._y += 3; } } } } movieClip 890 { frame 1 { stop(); } frame 1 { function blankSlate(i) { thegame.data.gameArray[i].icon = ['0x' + (random(255)).toString(16) + (random(255)).toString(16) + (random(255)).toString(16), 0, 0, 0, 100]; thegame.data.gameArray[i].word = ['UNTITLED', 'substandard subtitle', 'I HAVE NO NAME', 'I DON\'T NEED', 'YOUR LABELS', 'you have to one-up this one-liner']; thegame.data.gameArray[i].char = [1, 1, 1, 1, 1]; thegame.data.gameArray[i].info = ['anonymous', 'no comment.']; _global.gameArray = thegame.data.gameArray; } thegame = SharedObject.getLocal('thegame_profile'); if (!thegame.data.existence) { thegame.data.existence = true; thegame.data.gameArray = new Array(); i = 0; while (i < 3) { thegame.data.gameArray[i] = new Object(); thegame.data.gameArray[i].icon = new Array(5); thegame.data.gameArray[i].word = new Array(6); thegame.data.gameArray[i].char = new Array(5); thegame.data.gameArray[i].info = new Array(2); blankSlate(i); ++i; } } _global.gameArray = thegame.data.gameArray; thegame.data.flush(); } instance editor of movieClip 577 { onClipEvent (load) { n = 0; last_currentframe = 1; stagger = 0; initscale = _xscale; } onClipEvent (enterFrame) { if (n % 30 == 29) { n = 0; _parent.thegame.data.gameArray = _global.gameArray; _parent.thegame.data.flush(); } ++n; } onClipEvent (load) { _y = 250; } onClipEvent (enterFrame) { if (_currentframe <= 3) { wanted_y = 250; } else { wanted_y = 170; } if (_currentframe != last_currentframe) { stagger = 20; } _y = (_y * 4 + wanted_y) / 5; scale = initscale + stagger; stagger *= -0.8; _yscale = scale; _xscale = scale; last_currentframe = _currentframe; } onClipEvent (enterFrame) { if (_currentframe == 2) { title.text = _global.gameArray[_global.viewNumber].word[0].toUpperCase() + ' :the game:'; name.text = _global.gameArray[_global.viewNumber].info[0]; info.text = _global.gameArray[_global.viewNumber].info[1]; } } onClipEvent (load) { function cryptify(string) { codeName = new String(''); i = 0; while (i < string.length) { codeName += String.fromCharCode(string.charCodeAt(i) + 2); ++i; } return codeName; } function generateCode(game) { GCicon = '&noci' + game.icon[0] + 'nl' + game.icon[1] + 'nl' + game.icon[2] + 'nl' + game.icon[3] + 'nl' + game.icon[4] + '%dnenoci'; GCdrow = '&drow' + cryptify(game.word[0]) + 'ilynpfyk' + cryptify(game.word[1]) + 'ilynpfyk' + cryptify(game.word[2]) + 'ilynpfyk' + cryptify(game.word[3]) + 'ilynpfyk' + cryptify(game.word[4]) + 'ilynpfyk' + cryptify(game.word[5]) + '%dnedrow'; GCchar = '&rahc' + game.char[0] + 'nl' + game.char[1] + 'nl' + game.char[2] + 'nl' + game.char[3] + 'nl' + game.char[4] + '%dnerahc'; GCinfo = '&ofni' + cryptify(game.info[0]) + 'ilynpfyk' + cryptify(game.info[1]) + '%dneofni'; return GCicon + GCdrow + GCchar + GCinfo; } function decryptify(string) { codeName = new String(''); j = 0; while (j < string.length) { codeName += String.fromCharCode(string.charCodeAt(j) - 2); ++j; } return codeName; } function decipherAndCreate(plaintext) { game = new Object(); game.icon = (plaintext.substring(plaintext.indexOf('&noci') + 5, plaintext.indexOf('%dnenoci'))).split('nl'); i = 1; while (i < game.icon.length) { game.icon[i] = parseInt(game.icon[i], 10); ++i; } game.word = (plaintext.substring(plaintext.indexOf('&drow') + 5, plaintext.indexOf('%dnedrow'))).split('ilynpfyk'); i = 0; while (i < game.word.length) { game.word[i] = decryptify(game.word[i]); ++i; } game.char = (plaintext.substring(plaintext.indexOf('&rahc') + 5, plaintext.indexOf('%dnerahc'))).split('nl'); i = 0; while (i < game.char.length) { game.char[i] = parseInt(game.char[i]); ++i; } game.info = (plaintext.substring(plaintext.indexOf('&ofni') + 5, plaintext.indexOf('%dneofni'))).split('ilynpfyk'); i = 0; while (i < 2) { game.info[i] = decryptify(game.info[i]); ++i; } return game; } } onClipEvent (enterFrame) { if (_currentframe != 3) { generatedCode = undefined; } else { code.text = generatedCode; } } } instance select of movieClip 741 { onClipEvent (load) { } onClipEvent (enterFrame) { frame = _parent.editor._currentframe; if (frame <= 3) { wanted_y = 93; } else { wanted_y = -100; } if (_y < -80) { _visible = false; gotoAndStop(2); } else { if (!_visible) { _visible = true; gotoAndStop(1); chooser._x = last_x; chooser.chosen = last_chosen; } } _y = (_y * 4 + wanted_y) / 5; } } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } instance of movieClip 746 { onClipEvent (load) { text = new Array(); page_number = 0; i = 0; text[i] = new Array(); text[i].push(' INTRO TO LEVEL EDITOR'); text[i].push(''); text[i].push('~ Yes. I know the levels aren\'t that complicated.'); text[i].push(' Which is why I overcompensated with:'); text[i].push(''); text[i].push('-> MAKING LEVELS'); text[i].push(' Wanna make a friend laugh? Think you\'re better'); text[i].push(' than me, PUNK? Then make your own level! JERK.'); text[i].push(''); text[i].push('-> SHARING LEVELS'); text[i].push(' GET your level\'s code and give!'); text[i].push(' LOAD someone else\'s code and receive!'); text[i].push(''); text[i].push('-> SAVING LEVELS'); text[i].push(' Wanna save lulz for a rainy day? All codes'); text[i].push(' loaded get stored, so you can play them again at'); text[i].push(' any time, without having to paste the code again.'); ++i; text[i] = new Array(); text[i].push(' INTRO TO LEVEL EDITOR part deux'); text[i].push(''); text[i].push('-> OPEN SOURCE'); text[i].push(' Is there really a point to protecting THESE levels.'); text[i].push(' No there isn\'t. Go wild and edit them.'); text[i].push(''); text[i].push('-> ATTRIBUTION'); text[i].push(' With this, you can spread your name, site,'); text[i].push(' or include some very insightful commentary.'); text[i].push(' You know, before people plagiarize off of you.'); ++i; text[i] = new Array(); text[i].push(' BUTTONS'); text[i].push(''); text[i].push('~CREATE NEW LEVEL:'); text[i].push(' makes a new level and brings you to its editing'); text[i].push(' screen.'); text[i].push(''); text[i].push('~LOAD CODE:'); text[i].push(' brings you to a screen where you may then paste'); text[i].push(' a code someone gave you, (aw. <3) press the \'+\''); text[i].push(' button, and now you have more to play with!'); text[i].push(''); ++i; text[i] = new Array(); text[i].push(' BUTTONS (after you select a level from the top shelf)'); text[i].push(''); text[i].push('~PLAY:'); text[i].push(' Plays selected level, and if you don\'t quit,'); text[i].push(' continues to play all the following levels too.'); text[i].push(''); text[i].push('~EDIT:'); text[i].push(' Goes to editing screen for the selected level.'); text[i].push(''); text[i].push('~DELETE:'); text[i].push(' If it\'s REALLY bad, you should put it out of its'); text[i].push(' misery.'); text[i].push(''); text[i].push('~GET CODE:'); text[i].push(' Retrieve code, select all, copy, click'); text[i].push(' notebook-looking button, paste it all, share!'); page = new Array(text.length); i = 0; while (i < page.length) { page[i] = new String(''); line = 0; while (line < text[i].length) { page[i] += text[i][line] + '\n'; ++line; } ++i; } } onClipEvent (enterFrame) { infoclip.info.text = page[page_number]; if (page_number <= 0) { page_number = 0; back._visible = false; } else { back._visible = true; } if (page_number >= page.length - 1) { page_number = page.length - 1; forw._visible = false; } else { forw._visible = true; } } } instance fade of movieClip 747 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (goTo != undefined) { _alpha = _alpha + 20; if (_alpha >= 100) { _parent.gotoAndStop(goTo); goTo = undefined; if (viewTo != undefined) { _global.viewNumber = viewTo; viewTo = undefined; } } } else { if (_alpha > 0) { _alpha = _alpha - 20; } else { if (_parent._currentframe == 3 && _parent.game._currentframe == 1) { _parent.game.nextFrame(); } } } } } instance of movieClip 790 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { if (n % 30 == 29) { n = 0; _parent.thegame.data.gameArray = _global.gameArray; _parent.thegame.data.flush(); } ++n; } } } instance of movieClip 890 { onClipEvent (enterFrame) { if (_currentframe == 3) { _parent.music.stop(); } else { if (lastframe == 3) { _parent.music.play(); } } lastframe = _currentframe; } } movieClip 891 { instance icon of movieClip 497 { onClipEvent (load) { if (_name != 'icon') { scale_it = function (x) { wut_x = Math.abs(x) * 90 / 600; scale = Math.cos(wut_x * Math.PI / 180); _yscale = scale * 100; _xscale = scale * 100; }; scale_it(_parent._x + _x); } else { _visible = false; } } onClipEvent (enterFrame) { if (_name != 'icon') { if (Math.abs(_parent._x + _x) < 450) { _visible = true; } else { _visible = false; } scale_it(_parent._x + _x); } } onClipEvent (press) { if (_currentframe == 1) { _parent._parent.clicked = myFrame; } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } } } movieClip 892 { instance of movieClip 891 { onClipEvent (load) { var frame; i = 0; while (i < _global.levelArray.length) { newname = 'icon' + i; newdepth = icon.getDepth() + i + 1; duplicateMovieClip(this.icon, newname, newdepth); eval(newname)._x = 110 * i; frame = _global.levelArray[i]; tellTarget ('newname') { myFrame = _parent.frame; if (hasItBeenPlayed(myFrame)) { pic.gotoAndStop(myFrame); } else { gotoAndStop(2); } myFrame = _parent.frame; } ++i; } x_speed = 0; end = -110 * (_global.levelArray.length - 1); } onClipEvent (enterFrame) { if (Math.abs(_parent._ymouse) < 65) { if (_parent._xmouse > 160) { x_speed -= 2; } if (_parent._xmouse < -160) { x_speed += 2; } } _x = _x + x_speed; x_speed *= 0.8; if (_x > 0) { _x = 0; x_speed *= -0.9; } if (_x < end) { _x = end; x_speed *= -0.9; } } } } button 895 { on (press) { _parent.addPlaylist = input.text; _parent.resetLight._alpha = 100; } } movieClip 898 { frame 1 { stop(); } instance of movieClip 573 { onClipEvent (load) { _alpha = 0; } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { _alpha = (_alpha * 2 + wanted_alpha) / 3; } onClipEvent (press) { _parent._parent.gotoAndStop(1); } } instance of movieClip 573 { onClipEvent (load) { _alpha = 0; } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { _alpha = (_alpha * 2 + wanted_alpha) / 3; } onClipEvent (press) { _parent._parent.gotoAndStop(3); } } instance of movieClip 573 { onClipEvent (load) { _alpha = 0; } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { _alpha = (_alpha * 2 + wanted_alpha) / 3; } onClipEvent (press) { _parent._parent.playlist_shuffle = true; } } instance of movieClip 573 { onClipEvent (load) { _alpha = 0; } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { _alpha = (_alpha * 2 + wanted_alpha) / 3; } onClipEvent (press) { _global.levelArray = _global.playlistArray[_parent._parent.viewNumber].series; _root.gotoAndPlay('STARTGAME'); } } } button 901 { on (press) { rawtext = code.text; decipheredNameArray = rawtext.split('ilynp'); decipheredName = new String(''); i = 0; while (i < decipheredNameArray.length - 1) { decipheredName += decipheredNameArray[i]; ++i; } codeName = new String(''); i = 0; while (i < decipheredName.length) { codeName += String.fromCharCode(decipheredName.charCodeAt(i) - 2); ++i; } _parent.addPlaylist = codeName; decipheredSeries = decipheredNameArray[decipheredNameArray.length - 1]; decipheredSeries = decipheredSeries.split('nl'); decipheredSeries.shift(); i = 0; while (i < decipheredSeries.length) { tmpValueSeries = ''; j = 0; while (j < decipheredSeries[i].length) { tmpValueSeries += String.fromCharCode(decipheredSeries[i].charCodeAt(j) - 2); ++j; } decipheredSeries[i] = tmpValueSeries; ++i; } _parent.addPlaylistSeries = decipheredSeries; _parent.resetLight._alpha = 100; } } button 903 { on (press) { getURL('http://pastebin.ca/', '_blank'); } } movieClip 906 { frame 1 { stop(); } } movieClip 907 { instance icon of movieClip 497 { onClipEvent (load) { if (_name != 'icon') { scale_it = function (x) { wut_x = Math.abs(x) * 90 / 800; scale = Math.cos(wut_x * Math.PI / 180); _yscale = scale * 100; _xscale = scale * 100; }; scale_it(_parent._x + _x); } else { _visible = false; } } onClipEvent (enterFrame) { if (_name != 'icon') { if (Math.abs(_parent._x + _x) < 450) { _visible = true; } else { _visible = false; } scale_it(_parent._x + _x); } } onClipEvent (load) { viewNumber = _parent._parent._parent.viewNumber; } onClipEvent (press) { _global.playlistArray[viewNumber].series.splice(itemNumber, 1); with (_parent) { viewArray = new Array(); viewArray = viewArray.concat(_global.playlistArray[viewNumber].series); refreshit(); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } } } movieClip 908 { instance of movieClip 907 { onClipEvent (load) { function refreshit() { _parent._parent.resetLight._alpha = 100; i = viewArray.length; while (i < biggest_number) { newname = 'icon' + i; tellTarget ('newname') { gotoAndStop(3); } ++i; } i = 0; while (i < viewArray.length) { newname = 'icon' + i; newdepth = icon.getDepth() + i + 1; duplicateMovieClip(this.icon, newname, newdepth); eval(newname)._x = 110 * i; frame = viewArray[i]; tellTarget ('newname') { itemNumber = this.i; gotoAndStop(1); pic.gotoAndStop(this.frame); } ++i; } end = -110 * (viewArray.length - 1); } function shuffle() { arrayLength = _global.playlistArray[viewNumber].series.length; i = 0; while (i < arrayLength) { random_value = random(arrayLength); tmp_value = _global.playlistArray[viewNumber].series[i]; _global.playlistArray[viewNumber].series[i] = _global.playlistArray[viewNumber].series[random_value]; _global.playlistArray[viewNumber].series[random_value] = tmp_value; ++i; } } var frame; var viewArray = new Array(); viewNumber = _parent._parent.viewNumber; viewArray = viewArray.concat(_global.playlistArray[viewNumber].series); biggest_number = viewArray.length; refreshit(); new_end = end; x_speed = 0; } onClipEvent (enterFrame) { if (_parent._parent._parent.select.clicked != undefined) { new_thing = _parent._parent._parent.select.clicked; _parent._parent._parent.select.clicked = undefined; _global.playlistArray[viewNumber].series.push(new_thing); viewArray = new Array(); viewArray = viewArray.concat(_global.playlistArray[viewNumber].series); refreshit(); _x = end; x_speed = 2; } if (_parent._parent.playlist_shuffle == true) { _parent._parent.playlist_shuffle = false; shuffle(); viewArray = new Array(); viewArray = viewArray.concat(_global.playlistArray[viewNumber].series); refreshit(); } if (Math.abs(_parent._ymouse) < 65) { if (_parent._xmouse < 390 && _parent._xmouse > 150) { x_speed -= 2; } if (_parent._xmouse > -390 && _parent._xmouse < -150) { x_speed += 2; } } _x = _x + x_speed; x_speed *= 0.8; if (_x > 0) { _x = 0; x_speed = -Math.abs(x_speed) * 0.9; } new_end = (new_end * 2 + end) / 3; if (_x < new_end) { _x = new_end; x_speed = Math.abs(x_speed) * 0.9; } if (biggest_number < _global.playlistArray[viewNumber].series.length) { biggest_number = _global.playlistArray[viewNumber].series.length; } } } } movieClip 912 { } button 914 { on (press) { trash = new Sound(); trash.attachSound('trash'); trash.start(0, 0); _global.playlistArray.splice(viewNumber, 1); viewNumber = undefined; gotoAndStop(1); } } button 915 { on (press) { gotoAndStop(2); } } movieClip 916 { frame 1 { stop(); } instance of movieClip 575 { onClipEvent (load) { function refreshit() { i = 0; while (i < _global.playlistArray.length) { newname = 'playlist' + i; newdepth = playlist.getDepth() + i + 1; duplicateMovieClip(this.playlist, newname, newdepth); eval(newname)._y = 50 * i; name = _global.playlistArray[i].name; series = _global.playlistArray[i].series; tellTarget ('newname') { name = this.name; series = this.series; viewNumber = this.i; play_name.text = name + ' (' + series.length + ')'; } ++i; } end = -inity - 50 * (_global.playlistArray.length - 1); } y_speed = 0; inity = _y; refreshit(); } onClipEvent (enterFrame) { if (Math.abs(_parent._xmouse) < 266) { if (_parent._ymouse > -69 && _parent._ymouse < -30) { y_speed += 1; } if (_parent._ymouse < 69 && _parent._ymouse > 30) { y_speed -= 1; } } _y = _y + y_speed; y_speed *= 0.85; if (_y < end) { _y = end; y_speed *= -0.9; } if (_y > inity) { _y = inity; y_speed *= -0.9; } } onClipEvent (enterFrame) { if (_parent._parent.select.clicked != undefined) { _parent._parent.select.clicked = undefined; } } onClipEvent (enterFrame) { if (_parent.addPlaylist != undefined) { newPlaylist = new Object(); newPlaylist.name = _parent.addPlaylist; newPlaylist.series = new Array(); if (_parent.addPlaylistSeries != undefined) { newPlaylist.series = _parent.addPlaylistSeries; } _global.playlistArray.push(newPlaylist); _parent.addPlaylist = undefined; _parent.addPlaylistSeries == undefined; refreshit(); _y = end; y_speed = 1; } } } instance resetLight of movieClip 573 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { _alpha = _alpha / 2; } } instance of movieClip 906 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 898 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 912 { onClipEvent (load) { highlight._alpha = 0; viewNumber = _parent.viewNumber; name = _global.playlistArray[viewNumber].name; series = _global.playlistArray[viewNumber].series; play_name.text = name; play_no.text = ' (' + series.length + ')'; } onClipEvent (enterFrame) { series = _global.playlistArray[viewNumber].series; _global.playlistArray[viewNumber].name = play_name.text; play_no.text = ' (' + series.length + ')'; } } instance of movieClip 906 { onClipEvent (load) { gotoAndStop(2); viewNumber = _parent.viewNumber; n = 0; } onClipEvent (enterFrame) { if (n % 10 == 0) { n = 0; playlist = _global.playlistArray[viewNumber]; name = playlist.name; codeName = new String(''); i = 0; while (i < name.length) { codeName += String.fromCharCode(name.charCodeAt(i) + 2); ++i; } series = playlist.series; seriesName = new String(''); i = 0; while (i < series.length) { seriesName += 'nl'; j = 0; while (j < series[i].length) { seriesName += String.fromCharCode(series[i].charCodeAt(j) + 2); ++j; } ++i; } fullCode = codeName + 'ilynp' + seriesName; code.text = fullCode; } ++n; } } instance of movieClip 575 { onClipEvent (enterFrame) { if (_parent._parent.select.clicked != undefined) { _parent._parent.select.clicked = undefined; } } } } movieClip 917 { instance select of movieClip 892 { onClipEvent (load) { _y = -100; } onClipEvent (enterFrame) { frame = _parent.playlist._currentframe; if (frame == 2) { wanted_y = 100; } else { wanted_y = -100; } if (_y < -80) { _visible = false; } else { _visible = true; } _y = (_y * 4 + wanted_y) / 5; } } instance playlist of movieClip 916 { onClipEvent (load) { n = 0; last_currentframe = 1; stagger = 0; initscale = _xscale; } onClipEvent (enterFrame) { if (n % 30 == 29) { n = 0; _parent.thegame.data.playlistArray = _global.playlistArray; _parent.thegame.data.flush(); } ++n; } onClipEvent (load) { _y = 180; } onClipEvent (enterFrame) { if (_currentframe == 1) { wanted_y = 170; } if (_currentframe == 2) { wanted_y = 236; } if (_currentframe == 3) { wanted_y = 200; } if (_currentframe != last_currentframe) { stagger = 20; } _y = (_y * 4 + wanted_y) / 5; scale = initscale + stagger; stagger *= -0.8; _yscale = scale; _xscale = scale; last_currentframe = _currentframe; } } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } instance of movieClip 529 { onClipEvent (load) { text = new Array(); page_number = 0; i = 0; text[i] = new Array(); text[i].push(' INTRO TO LEVEL PLAYLISTS'); text[i].push(''); text[i].push('~ Wanted to play only your favs?'); text[i].push(''); text[i].push('~ Wanted to recommend a list of levels to a friend?'); text[i].push(''); text[i].push('~ Wanted to go through all the Ron Paul levels in one sitting'); text[i].push(' for lulz?'); text[i].push(''); text[i].push('~ WELL NOW YOU CAN, with the LEVEL PLAYLIST.'); ++i; text[i] = new Array(); text[i].push('~ To add a new playlist, type in the name you want'); text[i].push(' for it and press the \'+\' button.'); text[i].push(''); text[i].push('~ To edit an existing playlist, click on its name.'); text[i].push(''); text[i].push(' -> Once that is done, to add a level you click'); text[i].push(' its icon in the top shelf. To remove a level you'); text[i].push(' click its icon in the bottom shelf.'); text[i].push(''); text[i].push(' -> You may also delete, shuffle, or play the'); text[i].push(' selected playlist.'); ++i; text[i] = new Array(); text[i].push('~ Wanna share playlists?'); text[i].push(''); text[i].push(' -> A playlist\'s code will appear at the bottom of its'); text[i].push(' playlist-editing screen. You may then share it at'); text[i].push(' PasteBin, which you can go to by clicking the'); text[i].push(' notepad-looking button on the bottom right.'); text[i].push(''); text[i].push(' (you *could* post your code in the comments/reviews...'); text[i].push(' but... uh... PASTEBIN HAS TWITTER. LOL.)'); text[i].push(''); text[i].push(' -> To use a playlist code someone gave you, (how sweet <3)'); text[i].push(' paste it into the box at the bottom of the playlist-'); text[i].push(' adding screen, and then press \'+\'.'); page = new Array(text.length); i = 0; while (i < page.length) { page[i] = new String(''); line = 0; while (line < text[i].length) { page[i] += text[i][line] + '\n'; ++line; } ++i; } } onClipEvent (enterFrame) { infoclip.info.text = page[page_number]; if (page_number <= 0) { page_number = 0; back._visible = false; } else { back._visible = true; } if (page_number >= page.length - 1) { page_number = page.length - 1; forw._visible = false; } else { forw._visible = true; } } } } movieClip 929 { frame 1 { stop(); } instance of movieClip 497 { onClipEvent (load) { theName = 'AIG'; myScore = _global.highscores.aig; myFrame = theName; if (hasItBeenPlayed(myFrame)) { pic.gotoAndStop(myFrame); } else { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _global.levelArray = [theName]; _root.gotoAndPlay('STARTGAME'); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.score.text = myScore; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { theName = 'EDUCATION'; myScore = _global.highscores.education; myFrame = theName; if (hasItBeenPlayed(myFrame)) { pic.gotoAndStop(myFrame); } else { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _global.levelArray = [theName]; _root.gotoAndPlay('STARTGAME'); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.score.text = myScore; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { theName = 'STOCK'; myScore = _global.highscores.stock; myFrame = theName; if (hasItBeenPlayed(myFrame)) { pic.gotoAndStop(myFrame); } else { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _global.levelArray = [theName]; _root.gotoAndPlay('STARTGAME'); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.score.text = myScore; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { theName = 'UTILITARIANISM'; myScore = _global.highscores.utilitarianism; myFrame = theName; if (hasItBeenPlayed(myFrame)) { pic.gotoAndStop(myFrame); } else { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _global.levelArray = [theName]; _root.gotoAndPlay('STARTGAME'); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.score.text = myScore; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { theName = 'MACROECON'; myScore = _global.highscores.macroecon; myFrame = theName; if (hasItBeenPlayed(myFrame)) { pic.gotoAndStop(myFrame); } else { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _global.levelArray = [theName]; _root.gotoAndPlay('STARTGAME'); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.score.text = myScore; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance test of movieClip 497 { onClipEvent (load) { tehFrame = 'UNLOCK_END'; tehTitle = 'THE END'; tehSaying = 'Finish the game. OBVIOUS ENOUGH.'; pic.gotoAndStop(tehFrame); if (!_global.unlockables.end) { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _root.gotoAndStop('UNLOCK_END'); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.info.text = tehSaying; if (_currentframe == 1) { myStatus = 'UNLOCKED'; } else { myStatus = 'LOCKED'; } _parent.title.text = myStatus + ': ' + tehTitle; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { tehFrame = 'UNLOCK_CAKE'; tehTitle = 'PIECE OF CAKE'; tehSaying = 'Click on the Cooking By the Book character in EPICROLL: the cutscene. She\'s got pink hair and a chef hat. She\'s not douchily hidden, don\'t worry.'; pic.gotoAndStop(tehFrame); if (!_global.unlockables.cake) { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _root.gotoAndStop(tehFrame); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.info.text = tehSaying; if (_currentframe == 1) { myStatus = 'UNLOCKED'; } else { myStatus = 'LOCKED'; } _parent.title.text = myStatus + ': ' + tehTitle; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { tehFrame = 'UNLOCK_NO'; tehTitle = 'THERE IS NO REPLAY'; tehSaying = 'Hint: it\'s in the level which isn\'t as intelligently designed.'; pic.gotoAndStop(tehFrame); if (!_global.unlockables.no) { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _root.gotoAndStop(tehFrame); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.info.text = tehSaying; if (_currentframe == 1) { myStatus = 'UNLOCKED'; } else { myStatus = 'LOCKED'; } _parent.title.text = myStatus + ': ' + tehTitle; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { tehFrame = 'UNLOCK_BLOOD'; tehTitle = 'BLOODBATH'; tehSaying = 'Kill 150 of those buggers in the preloader game. If you didn\'t already do that, now\'s a good time to hit F5.'; pic.gotoAndStop(tehFrame); if (!_global.unlockables.blood) { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _root.gotoAndStop(tehFrame); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.info.text = tehSaying; if (_currentframe == 1) { myStatus = 'UNLOCKED'; } else { myStatus = 'LOCKED'; } _parent.title.text = myStatus + ': ' + tehTitle; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { tehFrame = 'UNLOCK_MONA'; tehTitle = 'WHERE THE HELL IS MONA?'; tehSaying = 'In ART: the game, click on the correct Mona Lisa. OH YES, THIS ONE WILL SUCK.'; pic.gotoAndStop(tehFrame); if (!_global.unlockables.mona) { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _root.gotoAndStop(tehFrame); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.info.text = tehSaying; if (_currentframe == 1) { myStatus = 'UNLOCKED'; } else { myStatus = 'LOCKED'; } _parent.title.text = myStatus + ': ' + tehTitle; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance unlockallthings of movieClip 497 { onClipEvent (load) { tehFrame = 'UNLOCK_ALL'; tehTitle = 'UNLOCK-NESS MONSTER'; tehSaying = 'Unlock everything! Please? If you do I\'ll let you disable the censors. SCOUT\'S HONOUR.'; pic.gotoAndStop(tehFrame); if (!_global.unlockables.all) { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _root.gotoAndStop(tehFrame); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.info.text = tehSaying; if (_currentframe == 1) { myStatus = 'UNLOCKED'; } else { myStatus = 'LOCKED'; } _parent.title.text = myStatus + ': ' + tehTitle; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 497 { onClipEvent (load) { tehFrame = 'UNLOCK_TWEET'; tehTitle = 'A LITTLE BIRDIE TOLD ME'; tehSaying = 'TWEET DREAMS ARE MADE OF THESE. JUST TWEET IT. TWEETY WOMAN. Okay I\'m done. Sorry MJ.'; pic.gotoAndStop(tehFrame); if (!_global.unlockables.tweet) { gotoAndStop(2); } } onClipEvent (press) { if (_currentframe == 1) { _root.gotoAndStop(tehFrame); } } onClipEvent (rollOver, dragOver) { wanted_alpha = 50; } onClipEvent (rollOut, dragOut) { wanted_alpha = 0; } onClipEvent (enterFrame) { highlight._alpha = (highlight._alpha * 2 + wanted_alpha) / 3; } onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.1; _parent.info.text = tehSaying; if (_currentframe == 1) { myStatus = 'UNLOCKED'; } else { myStatus = 'LOCKED'; } _parent.title.text = myStatus + ': ' + tehTitle; } onClipEvent (rollOut) { wanted_scale = initscale; } } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } frame 3 { play(); } frame 134 { gotoAndStop(2); } } instance of movieClip 929 { onClipEvent (load) { score.embedFonts = true; } } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } instance of movieClip 929 { onClipEvent (load) { info.embedFonts = true; title.embedFonts = true; this.gotoAndStop(82); } onClipEvent (load) { n = 0; thegame = SharedObject.getLocal('thegame_profile'); awarded = thegame.data.GODFUCKINGDAMMIT; } onClipEvent (enterFrame) { if (n > 10) { if (!awarded) { awarded = true; if (_global.unlockables.end && _global.unlockables.mona && _global.unlockables.blood && _global.unlockables.tweet && _global.unlockables.cake && _global.unlockables.no) { thegame.data.GODFUCKINGDAMMIT = true; thegame.data.flush(); this.gotoAndPlay(3); _root.medal_popup.unlockMedal('Unlock-ness Monster'); if (!_global.unlockables.all) { _global.unlockables.all = true; thegame.data.unlockables = _global.unlockables; thegame.data.flush(); } unlockallthings.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { this.gotoAndStop(2); } } else { ++n; } } } instance alert of movieClip 306 { onClipEvent (load) { initx = _x; hidex = _x - 300; _x = hidex; count = 0; unlocked.embedFonts = true; var gong = new Sound(); gong.attachSound('alert'); } onClipEvent (enterFrame) { if (count > 0) { wantedx = initx; --count; } else { wantedx = hidex; } _x = (_x * 2 + wantedx) / 3; if (_x < -100) { _visible = false; } else { _visible = true; } if (newUnlock != undefined) { unlocked.text = newUnlock; newUnlock = undefined; gong.start(0, 0); count = 60; _root.medal_popup.unlockMedal('A Little Birdie Told Me.'); } if (newScore != undefined) { newScore = undefined; gong.start(0, 0); count = 60; } _visible = false; } } button 935 { on (press) { getURL('http://digg.com/submit?url=' + theFrigginURL + '&title=REPLAYING :the game:', '_blank'); } } button 940 { on (press) { getURL('http://www.stumbleupon.com/submit?url=' + theFrigginURL, '_blank'); } } button 945 { on (press) { getURL('http://www.reddit.com/submit?url=' + theFrigginURL, '_blank'); } } button 949 { on (press) { n -= 1; } } button 952 { on (press) { tmp_n = n; do { n = random(tweet.length); } while (tmp_n == n); } } button 953 { on (press) { n += 1; } } button 961 { on (press) { _root.alert.newUnlock = 'a little birdie told me'; _global.unlockables.tweet = true; thegame.data.unlockables = _global.unlockables; thegame.data.flush(); getURL('http://twitter.com/home?status=' + tweetIt.text + ' ' + _parent.theFrigginURL, '_blank'); } } movieClip 962 { } movieClip 963 { instance of movieClip 962 { onClipEvent (load) { urlol.text = 'url: ' + _parent.theFrigginURL; tweet = new Array(); tweet.push('Don\'t worry, you didn\'t miss a THING last decade.'); tweet.push('REPLAYING :the game: (AKA all\'s equal in the sequel)'); tweet.push('Disclaimer: the following opinions are not necessarily those of faceless hopping amputees.'); tweet.push('I can\'t believe someone would so blatantly whore out this crap:'); tweet.push('5 original tracks. 30 levels. 150 characters. limitless lulz.'); tweet.push('Make your own levels, level playlists, and lulz!'); tweet.push('i accidentally the goddamn batman. he and i are done professionally.'); tweet.push('Philosophical zombie craves minds. and soul food.'); tweet.push('You have the right to remain violent.'); tweet.push('Let\'s strike a bipartisan compromise. Obama is the Kenyan Messiah.'); tweet.push('What do sarah palin, freud, and ron paul have in common?'); tweet.push('What do canada, ben bernanke, and chuck norris have in common?'); lengthOfThing = tweet.length; i = 0; while (i < lengthOfThing) { tmp_i = random(lengthOfThing); tmp_value = tweet[tmp_i]; tweet[tmp_i] = tweet[i]; tweet[i] = tmp_value; ++i; } n = 0; tweetIt.text = tweet[n]; } onClipEvent (enterFrame) { tweetIt.text = tweet[n]; if (n < 0) { n = tweet.length - 1; } if (n >= tweet.length) { n = 0; } } } } instance of movieClip 963 { onClipEvent (load) { theFrigginURL = 'http://bit.ly/8Y5yUO'; } } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } frame 11 { function createNewPlaylist() { havePushedYet = true; newPlaylist = new Object(); newPlaylist.name = newName; newPlaylist.series = new Array(); _global.playlistArray.unshift(newPlaylist); } function addThisLevel() { _global.playlistArray[0].series.push(_global.levelArray[_root.levelIndex - 1]); _root.thegame.data.playlistArray = _global.playlistArray; _root.thegame.data.flush(); } function removeLastLevel() { _global.playlistArray[0].series.pop(); thegame.data.playlistArray = _global.playlistArray; thegame.data.flush(); } if (!fromLvlSelect) { _root.levelIndex = 0; } fromLvlSelect = false; startGameTime = getTimer(); newName = 'My Fav Levels ~ '; date = new Date(); switch (date.getDay()) { case 0: newName += 'Sun '; break; case 1: newName += 'Mon '; break; case 2: newName += 'Tues '; break; case 3: newName += 'Wed '; break; case 4: newName += 'Thur '; break; case 5: newName += 'Fri '; break; case 6: newName += 'Sat '; } if (date.getMinutes() < 10) { theFrigginMinutes = '0' + date.getMinutes(); } else { theFrigginMinutes = date.getMinutes(); } if (date.getHours() >= 12) { newName += date.getHours() - 12 + ':' + theFrigginMinutes + 'PM'; } else { if (date.getHours() != 0) { newName += date.getHours() + ':' + theFrigginMinutes + 'AM'; } else { newName += '12:' + theFrigginMinutes + 'AM'; } } havePushedYet = false; _global.all_around_hit = function (target, hitter) { with (target) { target.yes_all_around_hit = false; if (hitter.hitTest(_x, (getBounds(_parent)).yMax, true) || hitter.hitTest(_x, (getBounds(_parent)).yMin, true) || hitter.hitTest((getBounds(_parent)).xMax, _y, true) || hitter.hitTest((getBounds(_parent)).xMin, _y, true)) { target.yes_all_around_hit = true; } } }; _global.back_to_normal = function () { _root.quality = 'HIGH'; _root._rotation = 0; _root._x = 0; _root._y = 0; }; } frame 12 { stop(); } movieClip 1041 { } instance of movieClip 1041 { onClipEvent (load) { if (_root.levelIndex >= _global.levelArray.length || _root.levelIndex < 0) { _root.gotoAndStop('mainmenu'); } _root.level_name = _global.levelArray[_root.levelIndex]; this.gotoAndStop(_root.level_name); if (_root.level_name == 'THE END') { min.embedFonts = true; sec.embedFonts = true; timeDiff = Math.round((getTimer() - _root.startGameTime) / 1000); sec.text = timeDiff % 60; min.text = (timeDiff - timeDiff % 60) / 60; } n = 0; var gong = new Sound(); gong.attachSound('gong'); gong.start(0, 0); } onClipEvent (enterFrame) { ++n; if (n > 120) { _root.gotoAndStop(_root.level_name); } } } movieClip 1048 { frame 3 { gotoAndStop(1); } } movieClip 1049 { instance of movieClip 843 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; spin = false; rotation_speed = 0; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; if (spin) { rotation_speed += 1; } rotation_speed *= 0.95; _rotation = _rotation - rotation_speed; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; spin = true; } onClipEvent (rollOut) { wanted_scale = initscale; spin = false; } onClipEvent (press) { --_root.levelIndex; _root.gotoAndStop('Start'); } } instance of movieClip 1048 { onClipEvent (load) { stop(); jump = false; y_speed = 0; inity = _y; } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse)) { jump = true; } else { jump = false; } if (_y < inity - 0.02) { jump = false; } if (jump) { y_speed = -4; } y_speed += 1; _y = _y + y_speed; if (_y > inity) { _y = inity; y_speed *= -0.5; } } onClipEvent (press) { if (!_root.havePushedYet) { _root.createNewPlaylist(); } if (_currentframe == 1) { _root.addThisLevel(); } else { _root.removeLastLevel(); } this.nextFrame(); } } instance of movieClip 845 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; spin = false; rotation_speed = 0; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; if (spin) { rotation_speed += 1; } rotation_speed *= 0.95; _rotation = _rotation + rotation_speed; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; spin = true; } onClipEvent (rollOut) { wanted_scale = initscale; spin = false; } onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } } movieClip 1060 { } movieClip 1095 { frame 61 { _visible = false; stop(); } } movieClip 1127 { } movieClip 1128 { frame 1 { stop(); } } movieClip 1132 { instance of movieClip 1128 { onClipEvent (load) { gotoAndStop(_parent.shit); } } frame 180 { stop(); } } movieClip 1151 { instance of movieClip 839 { onClipEvent (enterFrame) { if (next_level) { _root.gotoAndStop('start'); } } } instance of movieClip 843 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; spin = false; rotation_speed = 0; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; if (spin) { rotation_speed += 1; } rotation_speed *= 0.95; _rotation = _rotation - rotation_speed; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; spin = true; } onClipEvent (rollOut) { wanted_scale = initscale; spin = false; } onClipEvent (press) { _visible = false; _parent.explosion.play(); _root.alert.newUnlock = 'there is no replay'; _global.unlockables.no = true; thegame.data.unlockables = _global.unlockables; thegame.data.flush(); } } instance of movieClip 1048 { onClipEvent (load) { stop(); jump = false; y_speed = 0; inity = _y; } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse)) { jump = true; } else { jump = false; } if (_y < inity - 0.02) { jump = false; } if (jump) { y_speed = -4; } y_speed += 1; _y = _y + y_speed; if (_y > inity) { _y = inity; y_speed *= -0.5; } } onClipEvent (press) { if (!_root.havePushedYet) { _root.createNewPlaylist(); } if (_currentframe == 1) { _root.addThisLevel(); } else { _root.removeLastLevel(); } this.nextFrame(); } } instance of movieClip 845 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; spin = false; rotation_speed = 0; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; if (spin) { rotation_speed += 1; } rotation_speed *= 0.95; _rotation = _rotation + rotation_speed; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; spin = true; } onClipEvent (rollOut) { wanted_scale = initscale; spin = false; } onClipEvent (press) { _root.gotoAndStop('MainMenu'); } } instance of movieClip 1132 { onClipEvent (load) { shit = 3; } } instance of movieClip 839 { onClipEvent (enterFrame) { if (next_level) { _root.gotoAndStop('mainmenu'); } } } } instance of movieClip 1151 { onClipEvent (load) { _root._x = 0; _root._y = 0; Mouse.show(); _root._rotation = 0; _root._quality = 'HIGH'; _root._yscale = 100; _root._xscale = 100; if (_root.level_name == 'THE END') { _global.unlockables.end = true; thegame.data.unlockables = _global.unlockables; thegame.data.flush(); } this.gotoAndStop(_root.level_name); _root.levelIndex += 1; if (!_global.hasItBeenPlayed(_global.levelArray[_root.levelIndex])) { _global.playedThrough.push(_global.levelArray[_root.levelIndex]); thegame.data.playedThrough = _global.playedThrough; thegame.data.flush(); } if (!_global.hasItBeenPlayed(_global.levelArray[_root.levelIndex + 1])) { _global.playedThrough.push(_global.levelArray[_root.levelIndex + 1]); thegame.data.playedThrough = _global.playedThrough; thegame.data.flush(); } var gong = new Sound(); if (_root.level_name == 'CHRISTIANITY') { gong.attachSound('jesus'); gong.start(0, 0); } else { gong.attachSound('gong'); } gong.start(0, 0); } } instance alert of movieClip 306 { onClipEvent (load) { initx = _x; hidex = _x - 300; _x = hidex; count = 0; unlocked.embedFonts = true; var gong = new Sound(); gong.attachSound('alert'); } onClipEvent (enterFrame) { if (count > 0) { wantedx = initx; --count; } else { wantedx = hidex; } _x = (_x * 2 + wantedx) / 3; if (_x < -100) { _visible = false; } else { _visible = true; } if (newUnlock != undefined) { this.gotoAndStop(1); unlocked.text = newUnlock; newUnlock = undefined; gong.start(0, 0); count = 60; } if (newScore != undefined) { this.gotoAndStop(2); unlocked.text = newScore; newScore = undefined; gong.start(0, 0); count = 60; } } } instance medal_popup of movieClip 318 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { if (n < 10) { if (!awarded && _root.level_name == 'THE END') { awarded = true; _root.medal_popup.unlockMedal('THE END'); } } else { ++n; } } } movieClip 1178 { instance of movieClip 158 { onClipEvent (load) { if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) { _xscale = _xscale * -1; } } } } movieClip 1179 { instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 5 { stop(); } } movieClip 1180 { instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 3 { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } frame 8 { _parent._parent.soft_step.start(0, 0); } frame 11 { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } frame 16 { _parent._parent.soft_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 1181 { instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.jumping_frame); } } frame 7 { stop(); } } movieClip 1182 { instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.squatting_frame); } } frame 6 { stop(); } } movieClip 1183 { instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.squatting_frame); } } frame 8 { _parent._parent.softer_step.start(0, 0); } frame 16 { _parent._parent.softer_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 1184 { frame 1 { stop(); } } movieClip 1185 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1184 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 1191 { } movieClip 1194 { } movieClip 1195 { } movieClip 1202 { } movieClip 1204 { } movieClip 1210 { } movieClip 1212 { } movieClip 1215 { frame 1 { } } movieClip 1228 { } movieClip 1229 { instance of movieClip 1228 { onClipEvent (load) { gotoAndStop(random(5) + 1); moving = Math.round(_width * 5); x_speed = (random(moving) - moving / 2) / 3; y_speed = (random(moving) - moving / 2) / 3; _x = _x + x_speed; _y = _y + y_speed; _alpha = random(25) + 75; alpha = random(5) + 5; _yscale = random(50) + 100; _xscale = random(50) + 100; } onClipEvent (enterFrame) { _x = _x + x_speed; _y = _y + y_speed; x_speed *= 0.9; y_speed *= 0.9; if (_alpha < 0) { this.gotoAndStop(6); } } } } movieClip 1231 { frame 1 { stop(); } frame 2 { _visible = false; } } movieClip 1232 { instance of movieClip 1231 { onClipEvent (load) { moving = Math.round(_width * 2 / 3); _x = _x + (random(moving) - moving / 2); _y = _y + (random(moving) - moving / 2); x_speed = (random(moving) - moving / 2) / 7; y_speed = (random(moving) - moving / 2) / 7; _alpha = random(25) + 75; alpha = random(5) + 5; _yscale = random(50) + 100; _xscale = random(50) + 100; } onClipEvent (enterFrame) { if (_currentframe == 1) { _x = _x + x_speed; _y = _y + y_speed; _alpha = _alpha - alpha; if (_alpha < 0) { this.gotoAndStop(2); } } } } } movieClip 1238 { frame 220 { _root.gotoAndStop('end'); } } movieClip 1239 { frame 1 { stop(); } instance of movieClip 1194 { onClipEvent (mouseDown) { lock = true; } onClipEvent (mouseUp) { if (this.hitTest(_root._xmouse, _root._ymouse) && lock) { if (_root._xmouse > 416 && _root._xmouse < 463 && _root._ymouse > 190 && _root._ymouse < 253) { _root.alert.newUnlock = 'where the hell is mona?'; _global.unlockables.mona = true; thegame.data.unlockables = _global.unlockables; thegame.data.flush(); } _parent.nextFrame(); } } } frame 2 { stop(); var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 1202 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 1202 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1184 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 4; this.jumping_frame = 5; this.squatting_frame = 6; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { if (Key.isDown(38) && y_speed < 0) { } _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 500) { _parent.player_shadow._alpha = 0; if (!past_screen) { _parent.nextFrame(); } } if (_x < 214) { _x = 214; } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } } movieClip 1240 { frame 1 { function cloud_position(thing) { rotation = random(360); distance = random(150); scale = random(50) + 25; with (thing) { _y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433); _x = distance * Math.sin(rotation * 0.0174532925199433); _yscale = scale; _xscale = _yscale; } } function cloud_move(thing) { with (thing) { edge = 150 * Math.sqrt(1 - _y * _y / 3600); y_edge = 60 * Math.sqrt(1 - _x * _x / 22500); _x += speed; _y += y_speed; fake_alpha = edge - Math.abs(_x); second_alpha = (y_edge - Math.abs(_y)) / 0.4; if (fake_alpha > second_alpha) { fake_alpha = second_alpha; } if (fake_alpha <= 0) { _x = -edge; _y = -y_edge; speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } } } denominator = 6; } frame 2 { stop(); _visible = true; } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } } movieClip 1245 { frame 1 { stop(); } } movieClip 1246 { instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } instance of movieClip 1245 { onClipEvent (load) { _yscale = 20 + random(30); _xscale = 20 + random(30); gotoAndStop(random(6)); _x = random(640); _y = random(400); } } } movieClip 1254 { } movieClip 1259 { } movieClip 1261 { frame 1 { stop(); } instance of movieClip 1259 { onClipEvent (load) { _rotation = 0; parent_x = _parent._x; parent_y = _parent._y; _rotation = _rotation + 12 / _parent.seconds; } onClipEvent (enterFrame) { if (go) { if (wait_til_black >= 30) { _parent._parent.blackout.end = true; } else { wait_til_black += 1; } _parent._x = parent_x + random(9) - 4; _parent._y = parent_y + random(9) - 4; } else { _rotation = _rotation + 12 / _parent.seconds; } if (last_rotation / _rotation < 0 && _rotation > 0 || _rotation == 0) { wait_til_black = 0; go = true; } last_rotation = _rotation; } } } movieClip 1276 { frame 1 { stop(); } frame 1170 { _parent._parent.black.gotoAndPlay(10); } frame 1201 { stop(); } } movieClip 1277 { instance of movieClip 1240 { onClipEvent (load) { _visible = false; } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1261 { onClipEvent (load) { seconds = 33; } onClipEvent (enterFrame) { _rotation = _rotation - 0.1; } } instance of movieClip 1276 { onClipEvent (load) { initx = _x; inity = _y; wait = 60; } onClipEvent (enterFrame) { if (wait == 0) { if (_currentframe == 1) { gotoAndPlay(2); } if (_currentframe > 700) { doom = Math.round(Math.pow(_currentframe - 700, 1.2) / 200); i = 0; while (i < doom) { nextFrame(); ++i; } _x = initx + Math.pow(doom, 3) * (random(10) - 5) / 80; _y = inity + Math.pow(doom, 3) * (random(10) - 5) / 80; _parent._parent.game._x = Math.pow(doom, 3) * (random(10) - 5) / 30; _parent._parent.game._y = Math.pow(doom, 3) * (random(10) - 5) / 30; } } else { wait -= 1; } if (this._currentframe > 559) { _parent._parent.flaree.gotoAndStop(_currentframe - 558); } } } } movieClip 1279 { } movieClip 1283 { } movieClip 1284 { instance splat of movieClip 1283 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } } movieClip 1285 { frame 1 { stop(); } } movieClip 1286 { } movieClip 1287 { instance goo of movieClip 1285 { onClipEvent (load) { if (_name == 'goo') { _alpha = 0; } } } } movieClip 1293 { frame 9 { _parent.gotoAndStop(3); } } movieClip 1294 { frame 1 { stop(); } frame 2 { this.cacheAsBitmap = false; } } movieClip 1295 { instance goo of movieClip 1294 { onClipEvent (load) { if (_name == 'goo') { _alpha = 0; back_scale = 1; } else { speed = random(10) + 10; rotation = random(360); _x = _x + (random(40) - 20); _y = _y + (random(40) - 20); gooname = '_parent._parent.back.' + _name; eval(gooname)._x = this._x; eval(gooname)._y = this._y; y_speed = -speed * Math.cos(rotation * 0.0174532925199433); x_speed = -speed * Math.sin(rotation * 0.0174532925199433); } } onClipEvent (enterFrame) { if (_name == 'goo') { } else { if (_currentframe == 1 && _y > -30 && _x > -30 && _x < 690 && _y < 430) { if (_parent._parent.walls.hitTest(_x, _y, true)) { gotoAndStop(2); bloodyname = 's' + _parent._parent.splat.s_number; initdepth = _parent._parent.splat.splat.getDepth() + _parent._parent.splat.s_number; _parent._parent.splat.splat.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y}); _parent._parent.splat.s_number += 1; } if (!stop_hit) { _x = _x + x_speed / 5; _y = _y + y_speed / 5; } gooname = '_parent._parent.back.' + _name; eval(gooname)._x = this._x; eval(gooname)._y = this._y; } else { gooname = '_parent._parent.back.' + _name; tellTarget ('gooname') { gotoAndStop(2); _visible = false; } if (_currentframe != 2) { this.gotoAndStop(3); this._visible = false; } } } } } } movieClip 1298 { } movieClip 1304 { instance of movieClip 1298 { onClipEvent (load) { x_speed = random(20) - 10; y_speed = -random(15) - 5; _parent._x += x_speed; _parent._y += y_speed; rot = random(20) - 10; alph = 5 + random(10); } onClipEvent (enterFrame) { if (_parent._currentframe < 7) { _parent._x += x_speed / 5; _parent._y += y_speed / 5; _parent._rotation += rot; if (_parent._y > 400 || _parent._y < -400 || _parent._x > 640 || _parent._x < -640) { _parent._visible = false; _parent.gotoAndStop(7); } } } } } movieClip 1306 { } movieClip 1307 { instance of movieClip 1306 { onClipEvent (load) { gotoAndStop(random(5) + 1); moving = Math.round(_width * 5); x_speed = (random(moving) - moving / 2) / 3; y_speed = (random(moving) - moving / 2) / 3; _x = _x + x_speed; _y = _y + y_speed; _alpha = random(25) + 75; alpha = random(5) + 5; _yscale = random(50) + 100; _xscale = random(50) + 100; } onClipEvent (enterFrame) { _x = _x + x_speed / 2; _y = _y + y_speed / 2; _rotation = _rotation + rot; if (_y > 400 || _y < -400 || _x > 640 || _x < -640) { _visible = false; } } } } movieClip 1316 { frame 17 { stop(); _visible = false; } } movieClip 1321 { instance of movieClip 1304 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 1304 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 1304 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 1304 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 1304 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 1304 { onClipEvent (load) { gotoAndStop(6); } } frame 20 { stop(); } } movieClip 1322 { instance boom of movieClip 1321 { onClipEvent (load) { if (_name != 'boom') { _visible = true; } else { _visible = false; } } } } movieClip 1323 { frame 1 { var bloodsplode = new Sound(); bloodsplode.attachSound('Level_Bloodsplode'); bloodsplode.setVolume(50); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); soft_step.setVolume(50); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(25); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(75); goo_number = 1; back_goo_number = 1; invisible_goo_number = 1; } instance splat of movieClip 1284 { onClipEvent (load) { s_number = 100; } } instance player of movieClip 1184 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_y > 277 && _x > 173 && _x < 463) { it_hit_it = true; } else { it_hit_it = false; } _xscale = my_scale; _yscale = my_y_scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; my_scale = _xscale; my_y_scale = _yscale; walking_speed = 0.8; grav = 1; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; init_x = _x; init_y = _y; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { if (Key.isDown(38) && y_speed < 0) { } _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300 || _x > 533 || _x < 103) { _parent.player_shadow._alpha = 0; with (_parent.boom) { bloodyname = 's' + s_number; initdepth = boom.getDepth() + s_number; boom.duplicateMovieClip(bloodyname, initdepth, {'_x': _parent.player._x, '_y': _parent.player._y}); s_number += 1; } with (_parent.front.goo) { i = 0; while (i <= 20) { scale = 20 + random(20); gooname = 'goo' + _parent._parent.goo_number; initdepth = _parent._parent.front.goo.getDepth() + _parent._parent.goo_number; _parent._parent.front.goo.duplicateMovieClip(gooname, initdepth, {'_alpha': 100, '_x': _parent._parent.player._x, '_y': _parent._parent.player._y, '_xscale': scale, '_yscale': scale}); _parent._parent.goo_number += 1; gooname = 'goo' + _parent._parent.back_goo_number; initdepth = _parent._parent.back.goo.getDepth() + _parent._parent.back_goo_number; _parent._parent.back.goo.duplicateMovieClip(gooname, initdepth, {'_alpha': 100, '_x': _parent._parent.player._x, '_y': _parent._parent.player._y, '_xscale': scale * back_scale, '_yscale': scale * back_scale}); _parent._parent.back_goo_number += 1; ++i; } } _parent.bloodsplode.start(0, 0); _x = init_x; _y = init_y; x_speed = 0; y_speed = 0; _rotation = 0; fall_off_edge = false; gotoAndStop(1); recovering = 6; } if (recovering == 6) { _xscale = _xscale * 1.5; _yscale = _yscale * 0.6; } if (recovering == 5) { _xscale = _xscale * 0.7; _yscale = _yscale * 1.3; } if (recovering == 4) { _xscale = _xscale * 1.3; _yscale = _yscale * 0.7; } if (recovering == 2) { _xscale = _xscale * 0.9; _yscale = _yscale * 1.1; } if (recovering > 0) { recovering -= 1; } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance invisible of movieClip 1286 { onClipEvent (load) { _x = 0; _y = 0; _alpha = 0; } } instance back of movieClip 1287 { onClipEvent (load) { _x = 0; _y = 0; } } instance front of movieClip 1295 { onClipEvent (load) { _x = 0; _y = 0; } } instance boom of movieClip 1322 { onClipEvent (load) { s_number = 100; } } } movieClip 1324 { frame 1 { stop(); } frame 328 { stop(); _visible = false; } } movieClip 1325 { } movieClip 1330 { frame 9 { stop(); } frame 30 { _parent.gotoAndStop(2); } } movieClip 1332 { frame 1 { _visible = false; } frame 614 { _parent.addy._alpha = 100; } frame 765 { _parent.addy._alpha = 60; } frame 920 { _parent.addy._alpha = 100; } frame 1288 { stop(); } } movieClip 1333 { frame 1 { stop(); } instance addy of movieClip 1325 { onClipEvent (load) { _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 1; _visible = true; } else { _visible = false; } } } frame 2 { play(); } frame 125 { _root.gotoAndStop('end'); } } movieClip 1334 { frame 1 { stop(); } } movieClip 1335 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 55; this.jumping_frame = 56; this.squatting_frame = 57; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 1338 { } movieClip 1344 { } movieClip 1347 { frame 250 { _parent.gotoAndStop(2); } } movieClip 1350 { instance brain of movieClip 1298 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; guncontrol_keyboard(this); } onClipEvent (enterFrame) { guncontrol_keyboard(this); } } } movieClip 1356 { } movieClip 1366 { instance of movieClip 1356 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } frame 24 { stop(); } } movieClip 1368 { } movieClip 1369 { instance shot3 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot2 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance of movieClip 1368 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; this.onPress = function () { n += 1; if (n % 3 == 0) { _parent.shot._x = _parent._xmouse; _parent.shot._y = _parent._ymouse; _parent.shot.gotoAndPlay(1); } else { if (n % 3 == 1) { _parent.shot2._x = _parent._xmouse; _parent.shot2._y = _parent._ymouse; _parent.shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { _parent.shot3._x = _parent._xmouse; _parent.shot3._y = _parent._ymouse; _parent.shot3.gotoAndPlay(1); } } } }; } } instance brain of movieClip 1298 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; guncontrol_keyboard(this); } onClipEvent (enterFrame) { guncontrol_keyboard(this); } } } movieClip 1371 { } movieClip 1373 { instance of movieClip 1371 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; this.onPress = function () { n += 1; if (n % 3 == 0) { _parent.shot._x = _parent._xmouse; _parent.shot._y = _parent._ymouse; _parent.shot.gotoAndPlay(1); } else { if (n % 3 == 1) { _parent.shot2._x = _parent._xmouse; _parent.shot2._y = _parent._ymouse; _parent.shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { _parent.shot3._x = _parent._xmouse; _parent.shot3._y = _parent._ymouse; _parent.shot3.gotoAndPlay(1); } } } }; } } instance brain of movieClip 1298 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; guncontrol_keyboard(this); } onClipEvent (enterFrame) { guncontrol_keyboard(this); } } instance shot3 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot2 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } } movieClip 1375 { } movieClip 1380 { } movieClip 1386 { } movieClip 1388 { frame 1 { stop(); } instance of movieClip 1380 { onClipEvent (load) { frame = random(3) + 1; gotoAndStop(frame); } } instance of movieClip 1386 { onClipEvent (load) { frame = random(3) + 1; gotoAndStop(frame); } } frame 15 { gotoAndStop(1); } } movieClip 1389 { instance gun of movieClip 1388 { onClipEvent (mouseDown) { _parent._parent.crosshair._xscale = 70; if (!shoot && _parent._visible == true) { this.gotoAndPlay(2); _parent._parent.bang._alpha = 20; _parent._parent.crosshair._rotation += random(50) + 20; if (random(2) == 0) { _parent._parent.pistol1.setVolume(100); _parent._parent.pistol1.start(0, 0); } else { _parent._parent.pistol2.setVolume(100); _parent._parent.pistol2.start(0, 0); } } shoot = true; } onClipEvent (mouseUp) { if (shoot) { shoot = false; _parent._parent.crosshair._xscale = 120; } } onClipEvent (enterFrame) { Mouse.hide(); _parent._parent.crosshair.startDrag(true); _parent._parent.crosshair._rotation += 2; _parent._parent.crosshair._xscale += 50; _parent._parent.crosshair._xscale /= 1.5; _parent._parent.crosshair._yscale = _parent._parent.crosshair._xscale; _parent._x = _parent._parent.crosshair._x / 1.5 + 213; _parent._y = _parent._parent.crosshair._y / 1.5 + 133; delta_x = _parent._x - _root._xmouse; delta_y = _parent._y - _root._ymouse; _parent._rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433; } } } movieClip 1393 { } movieClip 1400 { } movieClip 1402 { } movieClip 1404 { } movieClip 1412 { } movieClip 1430 { frame 1 { stop(); } instance brain of movieClip 1298 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; guncontrol_keyboard(this); } onClipEvent (enterFrame) { guncontrol_keyboard(this); } } instance shot3 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance of movieClip 1412 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; this.onPress = function () { n += 1; if (n % 3 == 0) { _parent.shot._x = _parent._xmouse; _parent.shot._y = _parent._ymouse; _parent.shot.gotoAndPlay(1); } else { if (n % 3 == 1) { _parent.shot2._x = _parent._xmouse; _parent.shot2._y = _parent._ymouse; _parent.shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { _parent.shot3._x = _parent._xmouse; _parent.shot3._y = _parent._ymouse; _parent.shot3.gotoAndPlay(1); } } } }; } } instance shot2 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } frame 9 { stop(); } instance of movieClip 1298 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; } onClipEvent (load) { guncontrol_keyboard(this); } } instance brain of movieClip 1298 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; } onClipEvent (load) { if (_parent._name != 'blood') { blood_function = function () { guncontrol_keyboard(this); tilt_frame = 50.89127587821378 * (_parent._x - 320) / (_parent._y - 215); tilt_frame += 202; _parent.tilt.gotoAndStop(Math.round(tilt_frame)); _parent.tilt._height = height_wanted; _parent.tilt._width = width_wanted; }; } } onClipEvent (enterFrame) { if (_parent._name != 'blood') { blood_function(); } } } } movieClip 1435 { frame 1 { stop(); } } movieClip 1437 { frame 1 { stop(); } instance of movieClip 1435 { onClipEvent (enterFrame) { _xscale = 7000 / _parent._parent._xscale; } } instance shot of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); initscale = _xscale; } onClipEvent (enterFrame) { _xscale = initscale * (100 + _x / 2) / 250; _yscale = _xscale; } } instance shot3 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); initscale = _xscale; } onClipEvent (enterFrame) { _xscale = initscale * (100 + _x / 2) / 250; _yscale = _xscale; } } instance shot2 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); initscale = _xscale; } onClipEvent (enterFrame) { _xscale = initscale * (100 + _x / 2) / 250; _yscale = _xscale; } } instance of movieClip 1435 { onClipEvent (enterFrame) { _xscale = 7000 / _parent._parent._xscale; } } } movieClip 1439 { frame 1 { stop(); } instance wall of movieClip 1437 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; this.onPress = function () { n += 1; if (n % 3 == 0) { shot._x = _xmouse; shot._y = _ymouse; shot.gotoAndPlay(1); } else { if (n % 3 == 1) { shot2._x = _xmouse; shot2._y = _ymouse; shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { shot3._x = _xmouse; shot3._y = _ymouse; shot3.gotoAndPlay(1); } } } }; } } } movieClip 1441 { } movieClip 1442 { frame 1 { stop(); } instance of movieClip 1228 { onClipEvent (load) { gotoAndStop(random(5) + 1); grav = (random(5) + 1) / 50; y_speed = 0; rot = (random(10) - 5) / 10; inity = _y; } onClipEvent (enterFrame) { if (_parent._visible) { y_speed += grav; _y = _y + y_speed; _rotation = _rotation + rot; _parent.drip._height = _y - inity + 50; _parent.drip._alpha -= grav * 3; if (_y > 450) { _visible = false; } if (_parent.drip._alpha < 0) { _parent.gotoAndStop(2); _parent._visible = false; } } } } } movieClip 1443 { instance gristle of movieClip 1442 { onClipEvent (load) { if (_name == 'gristle') { _alpha = 0; } else { _alpha = 100; _x = random(640); _y = random(300); } } } } movieClip 1444 { frame 1 { gotoAndStop(random(2) + 1); _rotation = random(360); } } movieClip 1445 { } movieClip 1446 { } movieClip 1447 { frame 1 { _visible = false; } instance brain of movieClip 1298 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; } onClipEvent (load) { if (_parent._name != 'blood') { blood_function = function () { guncontrol_keyboard(this); tilt_frame = 50.89127587821378 * (_parent._x - 320) / (_parent._y - 215); tilt_frame += 202; _parent.tilt.gotoAndStop(Math.round(tilt_frame)); _parent.tilt._height = height_wanted; _parent.tilt._width = width_wanted; }; } } onClipEvent (enterFrame) { if (_parent._name != 'blood') { blood_function(); } } } frame 2 { _visible = true; stop(); } } movieClip 1448 { instance blood of movieClip 1447 { onClipEvent (load) { if (_name == 'blood') { _alpha = 0; } else { _alpha = 100; brain.height_wanted = _height; brain.width_wanted = _width; } } } } movieClip 1450 { } movieClip 1453 { instance of movieClip 1450 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; this.onPress = function () { n += 1; if (n % 3 == 0) { _parent.shot._x = _parent._xmouse; _parent.shot._y = _parent._ymouse; _parent.shot.gotoAndPlay(1); } else { if (n % 3 == 1) { _parent.shot2._x = _parent._xmouse; _parent.shot2._y = _parent._ymouse; _parent.shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { _parent.shot3._x = _parent._xmouse; _parent.shot3._y = _parent._ymouse; _parent.shot3.gotoAndPlay(1); } } } }; } } instance shot3 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot2 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } } movieClip 1455 { frame 1 { stop(); } instance of movieClip 1450 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; this.onPress = function () { n += 1; if (n % 3 == 0) { _parent.shot._x = _parent._xmouse; _parent.shot._y = _parent._ymouse; _parent.shot.gotoAndPlay(1); } else { if (n % 3 == 1) { _parent.shot2._x = _parent._xmouse; _parent.shot2._y = _parent._ymouse; _parent.shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { _parent.shot3._x = _parent._xmouse; _parent.shot3._y = _parent._ymouse; _parent.shot3.gotoAndPlay(1); } } } }; } } instance shot3 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot2 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } instance shot of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); } } } movieClip 1461 { } movieClip 1464 { instance of movieClip 64 { onClipEvent (load) { _rotation = random(360); } } frame 70 { stop(); } } movieClip 1465 { instance of movieClip 58 { onClipEvent (load) { _rotation = random(360); } } frame 71 { stop(); } } movieClip 1466 { frame 1 { stop(); } } movieClip 1467 { instance blood of movieClip 1466 { onClipEvent (load) { if (_name == 'blood') { _alpha = 0; } else { gotoAndStop(random(2) + 1); _alpha = 100; _x = (blood_y - 215) * 1.76 / (_parent._parent._xscale / 100); scale = _x * 1.13; if (_parent._parent._parent._name == 'right_wall') { multiplier = Math.abs(blood_x - _x) / (blood_y - 215) * 3.52; multiplier *= 1.5; } if (_parent._parent._parent._name == 'left_wall') { multiplier = Math.abs(blood_x - _x) / (blood_y - 215) * 3.52; multiplier = 1.4 - multiplier; } if (multiplier < 0.3) { multiplier = 0; } if (multiplier > 2) { multiplier = 2; } scale *= multiplier; _yscale = (random(100) + 100) * scale / 200; _xscale = (random(100) + 100) * scale / 200; _y = _y + (random(Math.round(_xscale)) - _xscale / 2) / 3; } } } } movieClip 1470 { frame 1 { stop(); } instance of movieClip 1461 { onClipEvent (load) { _visible = false; if (_parent._parent._name == 'right_wall') { this.gotoAndStop(2); } if (_parent._parent._name == 'left_wall') { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (_parent._parent._parent.mm.mm._currentframe == 3) { _visible = true; } } } instance blood of movieClip 1467 { onClipEvent (load) { s_number = 100; _y = 0; _x = 0; } onClipEvent (enterFrame) { if (new_blood_x != undefined) { bloodyname = 'blood' + s_number; initdepth = blood.getDepth() + s_number; blood.duplicateMovieClip(bloodyname, initdepth, {'blood_x': new_blood_x, 'blood_y': new_blood_y}); s_number += 1; new_blood_x = undefined; } } } instance shot of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); initscale = _xscale; } onClipEvent (enterFrame) { _xscale = initscale * (100 + _x * 66) / 100; _xscale = _xscale / 5; _yscale = _xscale; } } instance shot2 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); initscale = _xscale; } onClipEvent (enterFrame) { _xscale = initscale * (100 + _x * 66) / 100; _xscale = _xscale / 5; _yscale = _xscale; } } instance shot3 of movieClip 1366 { onClipEvent (load) { gotoAndStop(24); initscale = _xscale; } onClipEvent (enterFrame) { _xscale = initscale * (100 + _x * 66) / 100; _xscale = _xscale / 5; _yscale = _xscale; } } instance of movieClip 1435 { onClipEvent (enterFrame) { _xscale = 7000 / _parent._parent._xscale; } } } movieClip 1472 { frame 1 { stop(); } instance wall of movieClip 1470 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; this.onPress = function () { n += 1; if (n % 3 == 0) { shot._x = _xmouse; shot._y = _ymouse; shot.gotoAndPlay(1); } else { if (n % 3 == 1) { shot2._x = _xmouse; shot2._y = _ymouse; shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { shot3._x = _xmouse; shot3._y = _ymouse; shot3.gotoAndPlay(1); } } } }; } } } movieClip 1484 { } movieClip 1488 { } movieClip 1497 { frame 17 { stop(); } } movieClip 1498 { instance of movieClip 1488 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 17 { gotoAndPlay(1); } } movieClip 1505 { frame 13 { stop(); _parent._parent._visible = false; } } movieClip 1508 { instance of movieClip 1298 { onClipEvent (load) { x_speed = random(20) - 10; y_speed = -random(15) - 5; _parent._x += x_speed; _parent._y += y_speed; rot = random(20) - 10; scale = 100 + random(20) - 10; alph = 5 + random(10); } onClipEvent (enterFrame) { if (_parent._currentframe < 7) { _parent._x += x_speed; _parent._y += y_speed; y_speed += 2; _parent._rotation += rot; _parent._xscale *= scale / 100; _parent._yscale = _parent._xscale; _parent._alpha -= alph / 2; if (_parent._alpha <= 0) { _parent.gotoAndStop(7); _parent._visible = false; } } } } } movieClip 1512 { frame 1 { stop(); } instance of movieClip 1488 { onClipEvent (load) { gotoAndStop(_parent.standing_frame); } } instance shot of movieClip 1497 { onClipEvent (load) { gotoAndStop(17); } } instance shot2 of movieClip 1497 { onClipEvent (load) { gotoAndStop(17); } } instance shot3 of movieClip 1497 { onClipEvent (load) { gotoAndStop(17); } } frame 3 { _parent._parent.bloodydeath.start(0, 0); } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(6); } } } movieClip 1513 { instance of movieClip 1512 { onClipEvent (load) { health = 3; x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; walk_left_limit = -25; walk_right_limit = 25; this.standing_frame = random(_parent._parent.char_random_value) + _parent._parent.char_normal_value; n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; if (_currentframe == 1) { this.onPress = function () { n += 1; if (n % 3 == 0) { shot._x = _xmouse; shot._y = _ymouse; shot.gotoAndPlay(1); } else { if (n % 3 == 1) { shot2._x = _xmouse; shot2._y = _ymouse; shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { shot3._x = _xmouse; shot3._y = _ymouse; shot3.gotoAndPlay(1); } } } _parent._y -= 5 * _parent._yscale / 100; health -= 1; }; } } onClipEvent (enterFrame) { if (_currentframe < 3) { if (random(10) == 0 && !walking) { walking = true; walk_x_speed = (random(5) - 2) / 2; if (walk_x_speed == 0 && walk_y_speed == 0) { walking = false; } } if (walking) { if (this._currentframe != 2) { this.gotoAndStop(2); } if (_x < walk_left_limit) { _x = walk_left_limit; walk_x_speed *= -1; } if (_x > walk_right_limit) { _x = walk_right_limit; walk_x_speed *= -1; } if (random(20) == 0) { walking = false; walk_x_speed = 0; this.gotoAndStop(1); } } else { this.gotoAndStop(1); } _x = _x + walk_x_speed; } } onClipEvent (enterFrame) { if (_currentframe < 3) { guncontrol_keyboard(this); if (_parent._y < 220 || _parent._y > 700) { _parent._visible = false; } else { _parent._visible = true; } } else { _parent._visible = true; } } onClipEvent (enterFrame) { if (health <= 0 && _currentframe < 3) { this.gotoAndStop(3); _parent._parent.gristle.new_gristle = Math.round((_parent._y - 300) / 30); _parent._parent.blood.new_blood_x = _parent._x; _parent._parent.blood.new_blood_y = _parent._y; _parent._parent.right_wall.wall.blood.new_blood_x = _parent._x; _parent._parent.right_wall.wall.blood.new_blood_y = _parent._y; _parent._parent.left_wall.wall.blood.new_blood_x = _parent._x; _parent._parent.left_wall.wall.blood.new_blood_y = _parent._y; } } } } movieClip 1529 { instance of movieClip 1298 { onClipEvent (load) { x_speed = random(30) - 15; y_speed = -random(30) - 5; _parent._x += x_speed; _parent._y += y_speed; rot = random(20) - 10; alph = 5 + random(10); } onClipEvent (enterFrame) { if (_parent._currentframe < 6) { _parent._x += x_speed; _parent._y += y_speed; y_speed += 3; _parent._rotation += rot; _parent._alpha -= alph / 2; if (_parent._alpha <= 0) { _parent.gotoAndStop(6); _parent._visible = false; } } } } } movieClip 1546 { instance of movieClip 1529 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 1529 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 1529 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 1529 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 1529 { onClipEvent (load) { gotoAndStop(5); } } frame 30 { stop(); } } movieClip 1550 { frame 1 { stop(); } instance of movieClip 1298 { onClipEvent (load) { _xscale = 0; x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; } onClipEvent (enterFrame) { this.y_speed = Math.round(_global.y_speed * 5) / 5; this.x_speed = Math.round(_global.x_speed * 5) / 5; _parent._y -= (_parent._y - 215) * y_value * this.y_speed * 0.5; _parent._x -= (_parent._x - 320) * y_value * this.y_speed * 0.5; _parent._x += (_parent._y - 215) * x_value * this.x_speed * 0.9; _parent._yscale = -(_parent._y - 215) * s_value / 5; _parent._xscale = _parent._yscale; if (_parent._y < -500) { _parent._visible = false; } else { _parent._visible = true; } } onClipEvent (enterFrame) { if (_parent._currentframe != 10) { _parent.tabEnabled = false; _parent.onPress = function () { _parent.gotoAndStop(10); }; } } } } movieClip 1553 { } movieClip 1554 { instance of movieClip 1553 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_parent._parent.mm.mm._currentframe == 3) { _visible = true; } } onClipEvent (load) { start_health = 20; health = start_health; x_value = 0.02; y_value = 0.011360655; s_value = 1.329; } onClipEvent (enterFrame) { guncontrol_keyboard(this); } } } movieClip 1557 { frame 1 { stop(); } } movieClip 1558 { frame 1 { stop(); } instance of movieClip 1488 { onClipEvent (load) { gotoAndStop(_parent.standing_frame); } } instance shot of movieClip 1497 { onClipEvent (load) { gotoAndStop(17); } } instance shot2 of movieClip 1497 { onClipEvent (load) { gotoAndStop(17); } } instance shot3 of movieClip 1497 { onClipEvent (load) { gotoAndStop(17); } } instance of movieClip 1488 { onClipEvent (load) { gotoAndStop(10); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 1508 { onClipEvent (load) { gotoAndStop(6); } } } movieClip 1559 { instance mm of movieClip 1558 { onClipEvent (load) { start_health = 20; health = start_health; x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; walk_left_limit = -25; walk_right_limit = 25; this.standing_frame = 6; n = 0; } onClipEvent (enterFrame) { this.tabEnabled = false; if (_currentframe == 1) { this.onPress = function () { n += 1; if (n % 3 == 0) { shot._x = _xmouse; shot._y = _ymouse; shot.gotoAndPlay(1); } else { if (n % 3 == 1) { shot2._x = _xmouse; shot2._y = _ymouse; shot2.gotoAndPlay(1); } else { if (n % 3 == 2) { shot3._x = _xmouse; shot3._y = _ymouse; shot3.gotoAndPlay(1); } } } health -= 1; }; } } onClipEvent (enterFrame) { if (_currentframe < 3) { if (random(10) == 0 && !walking) { walking = true; walk_x_speed = (random(5) - 2) / 2; if (walk_x_speed == 0 && walk_y_speed == 0) { walking = false; } } if (walking) { if (this._currentframe != 2) { this.gotoAndStop(2); } if (_x < walk_left_limit) { _x = walk_left_limit; walk_x_speed *= -1; } if (_x > walk_right_limit) { _x = walk_right_limit; walk_x_speed *= -1; } if (random(20) == 0) { walking = false; walk_x_speed = 0; this.gotoAndStop(1); } } else { this.gotoAndStop(1); } _x = _x + walk_x_speed; } } onClipEvent (enterFrame) { guncontrol_keyboard(this); if (_parent._y < 220 || _parent._y > 700) { _parent._visible = false; } else { _parent._visible = true; } } onClipEvent (enterFrame) { if (health <= 0 && _currentframe < 3) { this.standing_frame += 1; health = start_health; } if (this.standing_frame == 10 && _currentframe < 3) { this.gotoAndStop(3); _parent._parent.mm_hit_you._alpha = 100; _parent._parent.music.stop(); _parent._parent.gristle.new_gristle = Math.round((_parent._y - 300) / 10); _parent._parent.blood.new_blood_x = _parent._x; _parent._parent.blood.new_blood_y = _parent._y; _parent._parent.right_wall.wall.blood.new_blood_x = _parent._x; _parent._parent.right_wall.wall.blood.new_blood_y = _parent._y; _parent._parent.left_wall.wall.blood.new_blood_x = _parent._x; _parent._parent.left_wall.wall.blood.new_blood_y = _parent._y; } if (_currentframe == 3 && _parent._visible) { _parent._parent.gristle.new_gristle = Math.round((_parent._y - 300) / 500); } } onClipEvent (enterFrame) { if (_parent._y > 420) { if (cam._currentframe == 1) { cam.gotoAndPlay(2); _parent._parent.crunch.start(0, 0); } if (cam._currentframe == 5) { _parent._parent.mover.my_y_speed += 20; _parent._parent.mm_hit_you._alpha = 70; } } } onClipEvent (enterFrame) { if (_parent._x < 150) { _parent._x = 150; } } } } movieClip 1563 { } movieClip 1567 { } movieClip 1568 { frame 30 { stop(); } instance ball of movieClip 1567 { onClipEvent (load) { start_health = 20; health = start_health; x_value = 0.02; y_value = 0.011360655; s_value = 1.329; } onClipEvent (enterFrame) { if (_parent._parent.mm.mm._currentframe < 3 || _currentframe != 1) { guncontrol_keyboard(this); if (_currentframe >= 19) { _parent._y += (_parent._y - 215) * y_value * 80 * 0.1; _parent._x += (_parent._x - 321.9) * y_value * 80 * 0.1; _parent._x += bowl_x_speed; } else { bowl_x_speed = (320 - _parent._parent.mm._x) / 8; _parent._x = _parent._parent.mm._x; _parent._y = _parent._parent.mm._y; } if (_parent._y < 220 || _parent._y > 700) { _parent._visible = false; } else { _parent._visible = true; } } else { stop(); } } onClipEvent (enterFrame) { if (_currentframe <= 3) { crunched = false; } if (_parent._y > 550 && _currentframe >= 26 && _parent._visible) { if (Math.abs(_parent._x - 320) < 200) { _parent._parent.mover.my_y_speed += 5; _parent._parent.mm_hit_you._alpha = 70; if (!crunched) { _parent._parent.crunch.start(0, 0); crunched = true; } } } } } } movieClip 1574 { } movieClip 1576 { frame 29 { _parent._parent.gotoAndStop(21); } frame 74 { _root.gotoAndStop('end'); } } movieClip 1577 { frame 1 { stop(); } instance of movieClip 1298 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; _parent._y -= (_parent._y - 215) * y_value * 80 * 0.5; _parent._x -= (_parent._x - 321.9) * y_value * 80 * 0.5; } onClipEvent (enterFrame) { guncontrol_keyboard(this); _xscale = _xscale * 5; _yscale = _yscale * 5; if (_parent._y > 300) { _parent.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_parent._x < 250) { _parent._x = 250; } } } instance of movieClip 1298 { onClipEvent (load) { scale = (800 - _parent._xscale) / 30; xxx = (320 - _parent._x) / 30; yyy = (600 - _parent._y) / 30; } onClipEvent (enterFrame) { _parent._xscale += scale; _parent._yscale = _parent._xscale; _parent._x += xxx; _parent._y += yyy; } } } movieClip 1583 { frame 45 { _root.gotoAndStop('end'); } frame 46 { stop(); } } movieClip 1584 { frame 1 { guncontrol_level = 2; _global.y_speed = 0; _global.x_speed = 0; _global.guncontrol_move_speed = 0.6; _global.guncontrol_keyboard = function (target) { with (target) { this.y_speed = Math.round(y_speed * 5) / 5; this.x_speed = Math.round(x_speed * 5) / 5; _parent._y -= (_parent._y - 215) * y_value * this.y_speed * 0.5; _parent._x -= (_parent._x - 320) * y_value * this.y_speed * 0.5; _parent._x -= (_parent._y - 215) * x_value * this.x_speed * 0.9; _parent._yscale = (_parent._y - 215) * s_value; _parent._xscale = _parent._yscale; } }; stop(); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var pistol1 = new Sound(); pistol1.attachSound('Lvl_GUNCONTROL_pistol1'); var pistol2 = new Sound(); pistol2.attachSound('Lvl_GUNCONTROL_pistol2'); var bloodydeath = new Sound(); bloodydeath.attachSound('LVL_GUNCONTROL_Bloodsplode'); bloodydeath.setVolume(300); } instance bang of movieClip 1402 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha <= 0) { _visible = false; } else { _visible = true; _alpha = _alpha - 10; } } } instance mover of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } if (Key.isDown(32)) { trace(imaginary_x); trace(imaginary_y); } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -300) { my_y_speed = 0; imaginary_y = -300; } if (imaginary_y < -280) { _parent.end.next_level = true; } if (imaginary_x < -30) { my_x_speed = 0; imaginary_x = -30; } if (imaginary_x > 50) { my_x_speed = 0; imaginary_x = 50; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } instance end of movieClip 1402 { onClipEvent (load) { _alpha = 100; } onClipEvent (enterFrame) { if (!next_level) { if (_alpha <= 0) { _visible = false; } else { _visible = true; _alpha = _alpha - 10; } } else { _visible = true; _alpha = _alpha + 10; if (_alpha >= 100) { _parent.guncontrol_level += 1; _parent.gotoAndStop(20); } } } } frame 3 { stop(); } instance door of movieClip 1430 { } instance right_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 245.5555555555555; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; wall._xscale *= 0.7; } } instance left_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 1326; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance gristle of movieClip 1443 { onClipEvent (load) { s_number = 100; _y = 0; _x = 0; } onClipEvent (enterFrame) { if (new_gristle != undefined) { i = 0; while (i < new_gristle) { bloodyname = 'gristle' + s_number; initdepth = gristle.getDepth() + s_number; gristle.duplicateMovieClip(bloodyname, initdepth); s_number += 1; ++i; } new_gristle = undefined; } } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -300) { my_y_speed = 0; imaginary_y = -300; } if (imaginary_y < -280 && imaginary_x < -125) { _parent.end.next_level = true; } if (imaginary_x < -145) { my_x_speed = 0; imaginary_x = -145; } if (imaginary_x > 26) { my_x_speed = 0; imaginary_x = 26; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } frame 4 { char_random_value = 0; char_normal_value = 1; } instance blood of movieClip 1448 { onClipEvent (load) { s_number = 100; _y = 0; _x = 0; } onClipEvent (enterFrame) { if (new_blood_x != undefined) { bloodyname = 'blood' + s_number; initdepth = blood.getDepth() + s_number; blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y}); s_number += 1; new_blood_x = undefined; } } } instance door of movieClip 1455 { onClipEvent (enterFrame) { end_diff = 15.5 * _parent.left_wall._xscale / 100; left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff); end_diff = 15.5 * _parent.right_wall._xscale / 100; right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff); _x = (left_end + right_end) / 2; bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100; top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100; _height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700; _width = 1.73 * _height; _y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700; if (_currentframe == 2) { shake._xscale = 100 + (random(20) - 10) / 5; shake._yscale = shake._xscale; shake._rotation = (random(20) - 10) / 5; } _yscale = _yscale * 1.3; } } instance right_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(13); } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -750) { my_y_speed = 0; imaginary_y = -750; } if (_parent.blood.s_number - 100 == 7) { if (imaginary_y < -730) { _parent.end.next_level = true; } if (_parent.door._currentframe == 1) { _parent.door.gotoAndStop(2); } } if (imaginary_x < -64) { my_x_speed = 0; imaginary_x = -64; } if (imaginary_x > 80) { my_x_speed = 0; imaginary_x = 80; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } instance door of movieClip 1430 { onClipEvent (load) { gotoAndStop(2); } } instance right_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 245.5555555555555; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; wall._xscale *= 0.7; } } instance left_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 1326; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -300) { my_y_speed = 0; imaginary_y = -300; } if (imaginary_y < -280 && imaginary_x < -125) { _parent.end.next_level = true; } if (imaginary_x < -145) { my_x_speed = 0; imaginary_x = -145; } if (imaginary_x > 26) { my_x_speed = 0; imaginary_x = 26; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } frame 6 { char_random_value = 2; char_normal_value = 4; } instance blood of movieClip 1448 { onClipEvent (load) { s_number = 100; _y = 0; _x = 0; } onClipEvent (enterFrame) { if (new_blood_x != undefined) { bloodyname = 'blood' + s_number; initdepth = blood.getDepth() + s_number; blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y}); s_number += 1; new_blood_x = undefined; } } } instance door of movieClip 1455 { onClipEvent (enterFrame) { end_diff = 15.5 * _parent.left_wall._xscale / 100; left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff); end_diff = 15.5 * _parent.right_wall._xscale / 100; right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff); _x = (left_end + right_end) / 2; bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100; top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100; _height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700; _width = 1.73 * _height; _y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700; if (_currentframe == 2) { shake._xscale = 100 + (random(20) - 10) / 5; shake._yscale = shake._xscale; shake._rotation = (random(20) - 10) / 5; } _yscale = _yscale * 1.3; } } instance right_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -750) { my_y_speed = 0; imaginary_y = -750; } if (_parent.blood.s_number - 100 == 8) { if (imaginary_y < -730) { _parent.end.next_level = true; } if (_parent.door._currentframe == 1) { _parent.door.gotoAndStop(2); } } if (imaginary_x < -64) { my_x_speed = 0; imaginary_x = -64; } if (imaginary_x > 80) { my_x_speed = 0; imaginary_x = 80; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } instance door of movieClip 1430 { onClipEvent (load) { gotoAndStop(3); } } instance right_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 245.5555555555555; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; wall._xscale *= 0.7; } } instance left_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 1326; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -300) { my_y_speed = 0; imaginary_y = -300; } if (imaginary_y < -280 && imaginary_x < -125) { _parent.end.next_level = true; } if (imaginary_x < -145) { my_x_speed = 0; imaginary_x = -145; } if (imaginary_x > 26) { my_x_speed = 0; imaginary_x = 26; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } instance of movieClip 1402 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_parent.mm.mm._currentframe == 3) { _visible = true; } } } instance blood of movieClip 1448 { onClipEvent (load) { s_number = 100; _y = 0; _x = 0; } onClipEvent (enterFrame) { if (new_blood_x != undefined) { bloodyname = 'blood' + s_number; initdepth = blood.getDepth() + s_number; blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y}); s_number += 1; new_blood_x = undefined; } } } instance door of movieClip 1455 { onClipEvent (enterFrame) { end_diff = 15.5 * _parent.left_wall._xscale / 100; left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff); end_diff = 15.5 * _parent.right_wall._xscale / 100; right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff); _x = (left_end + right_end) / 2; bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100; top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100; _height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700; _width = 1.73 * _height; _y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700; if (_currentframe == 2) { shake._xscale = 100 + (random(20) - 10) / 5; shake._yscale = shake._xscale; shake._rotation = (random(20) - 10) / 5; } _yscale = _yscale * 1.3; } } instance right_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(11); } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(12); } } instance mm_hit_you of movieClip 1402 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha <= 0) { _visible = false; } else { _visible = true; _alpha = _alpha - 10; } } } instance mover of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -750) { my_y_speed = 0; imaginary_y = -750; } if (_parent.blood.s_number - 100 == 1) { if (imaginary_y < -730) { _parent.end.next_level = true; } if (_parent.door._currentframe == 1) { _parent.door.gotoAndStop(2); } } else { if (imaginary_y < -608) { my_y_speed = 0; imaginary_y = -608; } } if (imaginary_x < -64) { my_x_speed = 0; imaginary_x = -64; } if (imaginary_x > 80) { my_x_speed = 0; imaginary_x = 80; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } frame 9 { music.play(); } instance door of movieClip 1430 { onClipEvent (load) { gotoAndStop(10); } } instance right_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 442; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 1326; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _x = _x + (_xscale / 100) * 200; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -300) { my_y_speed = 0; imaginary_y = -300; } if (imaginary_y < -280 && imaginary_x > 95) { _parent.end.next_level = true; } if (imaginary_x > 115) { my_x_speed = 0; imaginary_x = 115; } if (imaginary_x < -36) { my_x_speed = 0; imaginary_x = -36; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } frame 10 { char_random_value = 0; char_normal_value = 11; } instance blood of movieClip 1448 { onClipEvent (load) { s_number = 100; _y = 0; _x = 0; } onClipEvent (enterFrame) { if (new_blood_x != undefined) { bloodyname = 'blood' + s_number; initdepth = blood.getDepth() + s_number; blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y}); s_number += 1; new_blood_x = undefined; } } } instance door of movieClip 1455 { onClipEvent (enterFrame) { end_diff = 15.5 * _parent.left_wall._xscale / 100; left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff); end_diff = 15.5 * _parent.right_wall._xscale / 100; right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff); _x = (left_end + right_end) / 2; bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100; top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100; _height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700; _width = 1.73 * _height; _y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700; if (_currentframe == 2) { shake._xscale = 100 + (random(20) - 10) / 5; shake._yscale = shake._xscale; shake._rotation = (random(20) - 10) / 5; } _yscale = _yscale * 1.3; } } instance right_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -750) { my_y_speed = 0; imaginary_y = -750; } if (_parent.blood.s_number - 100 == 8) { if (imaginary_y < -730) { _parent.end.next_level = true; } if (_parent.door._currentframe == 1) { _parent.door.gotoAndStop(2); } } if (imaginary_x < -64) { my_x_speed = 0; imaginary_x = -64; } if (imaginary_x > 80) { my_x_speed = 0; imaginary_x = 80; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } instance door of movieClip 1430 { onClipEvent (load) { gotoAndStop(11); } } instance right_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 442; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 1326; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _x = _x + (_xscale / 100) * 200; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -300) { my_y_speed = 0; imaginary_y = -300; } if (imaginary_y < -280 && imaginary_x > 95) { _parent.end.next_level = true; } if (imaginary_x > 115) { my_x_speed = 0; imaginary_x = 115; } if (imaginary_x < -36) { my_x_speed = 0; imaginary_x = -36; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } frame 12 { char_random_value = 2; char_normal_value = 2; } instance blood of movieClip 1448 { onClipEvent (load) { s_number = 100; _y = 0; _x = 0; } onClipEvent (enterFrame) { if (new_blood_x != undefined) { bloodyname = 'blood' + s_number; initdepth = blood.getDepth() + s_number; blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y}); s_number += 1; new_blood_x = undefined; } } } instance door of movieClip 1455 { onClipEvent (enterFrame) { end_diff = 15.5 * _parent.left_wall._xscale / 100; left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff); end_diff = 15.5 * _parent.right_wall._xscale / 100; right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff); _x = (left_end + right_end) / 2; bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100; top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100; _height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700; _width = 1.73 * _height; _y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700; if (_currentframe == 2) { shake._xscale = 100 + (random(20) - 10) / 5; shake._yscale = shake._xscale; shake._rotation = (random(20) - 10) / 5; } _yscale = _yscale * 1.3; } } instance right_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -750) { my_y_speed = 0; imaginary_y = -750; } if (_parent.blood.s_number - 100 == 8) { if (imaginary_y < -730) { _parent.end.next_level = true; } if (_parent.door._currentframe == 1) { _parent.door.gotoAndStop(2); } } if (imaginary_x < -64) { my_x_speed = 0; imaginary_x = -64; } if (imaginary_x > 80) { my_x_speed = 0; imaginary_x = 80; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } instance door of movieClip 1430 { onClipEvent (load) { gotoAndStop(12); } } instance right_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 442; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1439 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 208; point_x = 1326; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 173.8; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 173.8; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _x = _x + (_xscale / 100) * 200; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -300) { my_y_speed = 0; imaginary_y = -300; } if (imaginary_y < -280 && imaginary_x > 95) { _parent.end.next_level = true; } if (imaginary_x > 115) { my_x_speed = 0; imaginary_x = 115; } if (imaginary_x < -36) { my_x_speed = 0; imaginary_x = -36; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } frame 14 { music.stop(); } instance blood of movieClip 1448 { onClipEvent (load) { s_number = 100; _y = 0; _x = 0; } onClipEvent (enterFrame) { if (new_blood_x != undefined) { bloodyname = 'blood' + s_number; initdepth = blood.getDepth() + s_number; blood.duplicateMovieClip(bloodyname, initdepth, {'_x': new_blood_x, '_y': new_blood_y}); s_number += 1; new_blood_x = undefined; } } } instance door of movieClip 1455 { onClipEvent (enterFrame) { end_diff = 15.5 * _parent.left_wall._xscale / 100; left_end = _parent.left_wall._x - (end_diff * _parent.left_wall.wall._xscale / 184 - end_diff); end_diff = 15.5 * _parent.right_wall._xscale / 100; right_end = _parent.right_wall._x + (end_diff * _parent.right_wall.wall._xscale / 184 - end_diff); _x = (left_end + right_end) / 2; bottom_end = _parent.left_wall._y + 4.8 * _parent.left_wall.wall._yscale / 100; top_end = _parent.left_wall._y - 4.8 * _parent.left_wall.wall._yscale / 100; _height = bottom_end - top_end + 10 * _parent.left_wall.wall._yscale / 700; _width = 1.73 * _height; _y = bottom_end - 10 + 5 * _parent.left_wall.wall._yscale / 700; if (_currentframe == 2) { shake._xscale = 100 + (random(20) - 10) / 5; shake._yscale = shake._xscale; shake._rotation = (random(20) - 10) / 5; } _yscale = _yscale * 1.3; } } instance right_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= (_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = (_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance left_wall of movieClip 1472 { onClipEvent (load) { x_value = 0.02; y_value = 0.011360655; s_value = 1.329; point_y = 97; point_x = 170; end_x = _x + point_x * _xscale / 100; end_y = _y + point_y * _xscale / 100; init_wall_end_y = _y + 188.5; final_wall_end_y = init_wall_end_y - 80; init_wall_scale = wall._xscale; } onClipEvent (enterFrame) { guncontrol_keyboard2(this); final_wall_end_y -= (final_wall_end_y - 215) * y_value * y_speed * 0.5; wall._yscale = init_wall_scale * (final_wall_end_y - 215) / 188.5; wall._xscale = wall._yscale; end_x -= -(_y + point_y * _yscale / 100 - 215) * x_value * x_speed * 0.9; _x = -(_y - 215) / ((end_y - 215) / (end_x - 320)); _x = _x + 320; _xscale = (end_x - _x) * 100 / point_x; } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(8); } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(9); } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(6); } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(7); } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 1550 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 1298 { onClipEvent (load) { _quality = 'medium'; my_y_speed = 0; my_x_speed = 0; imaginary_y = 0; imaginary_x = 0; } onClipEvent (enterFrame) { if (Key.isDown(38) || Key.isDown(87)) { my_y_speed -= guncontrol_move_speed; } if (Key.isDown(40) || Key.isDown(83)) { my_y_speed += guncontrol_move_speed; } if (Key.isDown(37) || Key.isDown(65)) { my_x_speed -= guncontrol_move_speed; } if (Key.isDown(39) || Key.isDown(68)) { my_x_speed += guncontrol_move_speed; } my_y_speed *= 0.9; my_x_speed *= 0.9; imaginary_y += my_y_speed; imaginary_x += my_x_speed; if (imaginary_y > 0) { my_y_speed = 0; imaginary_y = 0; } if (imaginary_y < -750) { my_y_speed = 0; imaginary_y = -750; } if (_parent.blood.s_number - 100 == 8) { if (imaginary_y < -730) { _parent.end.next_level = true; } if (_parent.door._currentframe == 1) { _parent.door.gotoAndStop(2); } } if (imaginary_x < -64) { my_x_speed = 0; imaginary_x = -64; } if (imaginary_x > 80) { my_x_speed = 0; imaginary_x = 80; } _global.y_speed = my_y_speed; _global.x_speed = my_x_speed; } } frame 20 { gotoAndStop(guncontrol_level); } frame 21 { _root.Mouse.show(); } } movieClip 1586 { } movieClip 1587 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 73; this.jumping_frame = 74; this.squatting_frame = 75; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 1589 { frame 1 { function cloud_position(thing) { rotation = random(360); distance = random(150); scale = random(50) + 25; with (thing) { _y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433); _x = distance * Math.sin(rotation * 0.0174532925199433); _yscale = scale; _xscale = _yscale; } } function cloud_move(thing) { with (thing) { edge = 150 * Math.sqrt(1 - _y * _y / 3600); y_edge = 60 * Math.sqrt(1 - _x * _x / 22500); _x += speed; _y += y_speed; _alpha = edge - Math.abs(_x); second_alpha = (y_edge - Math.abs(_y)) / 0.4; if (_alpha > second_alpha) { _alpha = second_alpha; } if (_alpha <= 0) { _x = -edge; _y = -y_edge; speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } } } denominator = 6; } frame 2 { stop(); } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } } movieClip 1611 { } movieClip 1618 { frame 1 { gotoAndStop(random(5) + 1); } } movieClip 1619 { frame 1 { function cloud_position(thing) { rotation = random(360); distance = random(150); scale = random(50) + 25; with (thing) { _y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433); _x = distance * Math.sin(rotation * 0.0174532925199433); _yscale = scale; _xscale = _yscale; } } function cloud_move(thing) { with (thing) { edge = 150 * Math.sqrt(1 - _y * _y / 3600); y_edge = 60 * Math.sqrt(1 - _x * _x / 22500); _x += speed; _y += y_speed; _alpha = edge - Math.abs(_x); second_alpha = (y_edge - Math.abs(_y)) / 0.4; if (_alpha > second_alpha) { _alpha = second_alpha; } if (_alpha <= 0) { _x = -edge; _y = -y_edge; speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } } } denominator = 6; } frame 2 { stop(); } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 1618 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } } movieClip 1621 { } movieClip 1624 { } movieClip 1628 { } movieClip 1629 { frame 1 { stop(); } instance of movieClip 1628 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } } movieClip 1630 { instance of movieClip 1628 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 3 { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } frame 8 { _parent._parent.soft_step.start(0, 0); } frame 11 { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } frame 16 { _parent._parent.soft_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 1632 { instance of movieClip 1628 { onClipEvent (load) { gotoAndStop(_parent._parent.jumping_frame); } } frame 2 { stop(); } } movieClip 1633 { frame 1 { stop(); } instance of movieClip 1628 { onClipEvent (load) { gotoAndStop(_parent._parent.squatting_frame); } } } movieClip 1634 { instance of movieClip 1628 { onClipEvent (load) { gotoAndStop(_parent._parent.squatting_frame); } } frame 8 { _parent._parent.softer_step.start(0, 0); } frame 16 { _parent._parent.softer_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 1635 { frame 1 { stop(); } } movieClip 1637 { } movieClip 1638 { instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } instance of movieClip 1637 { onClipEvent (load) { _x = random(20) - 10; x_speed = _x / 5; _yscale = random(50) + 75; _xscale = random(50) + 75; scale_speed = random(10) + 5; alpha_speed = random(10) + 10; } onClipEvent (enterFrame) { _x = _x + x_speed; _xscale = _xscale + scale_speed; _yscale = _xscale; _alpha = _alpha - alpha_speed; } } frame 20 { stop(); } } movieClip 1639 { } movieClip 1641 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); var mindbody = new Sound(sfx4); mindbody.attachSound('Level_MindBody_Stat'); mindbody.setVolume(0); mindbody.start(0, 3000); } instance of movieClip 1589 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 1589 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x > 177.2 && _x < 464.2 && _y > 280 && _y < 290) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } instance lolstat of movieClip 1611 { onClipEvent (load) { _alpha = 0; init_x = _x; player_initx = _parent.player._x; init_y = _y; player_inity = _parent.player._y; } onClipEvent (enterFrame) { if (_alpha < 100) { diffx = player_initx - _parent.player._x; diffy = player_inity - _parent.player._y; volume = Math.sqrt(diffx * diffx + diffy * diffy); if (volume > 500) { _parent.mindbody.setVolume(500); } else { _parent.mindbody.setVolume(volume); } } } onClipEvent (enterFrame) { if (_alpha >= 100) { _alpha = 100; _parent.gotoAndStop(2); if (volume > 100) { volume -= 20; } _parent.mindbody.setVolume(volume); } else { _alpha = (random(30) + 10) * volume / 100; if (random(2) == 0) { _xscale = _xscale * -1; } } } } instance camera of movieClip 887 { onClipEvent (load) { inity = _y; } onClipEvent (enterFrame) { if (_parent._currentframe == 1) { if (_parent.player._y < 500) { distance = _parent.lolstat.volume / (random(50) + 2); if (random(30) == 0) { distance *= random(6); } if (distance > 100) { distance = 100; } if (random(2) == 0) { distance *= -1; } } else { distance *= -0.98; } _y = inity + distance; } else { _y = inity; } } } instance of movieClip 1132 { onClipEvent (load) { shit = 1; } onClipEvent (enterFrame) { if (_currentframe >= 140) { _parent.gotoAndStop(3); } } } frame 3 { stop(); gotoAndStop(3); } instance of movieClip 1619 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 1619 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1635 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x > 177.2 && _x < 464.2 && _y > 280 && _y < 290) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 4; grav = 0; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; digijump = 6; } onClipEvent (enterFrame) { if (_y < 190 || !Key.isDown(38)) { y_speed = digijump; } if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -digijump; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (it_hit_it) { jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed = -walking_speed / 2; } else { this.gotoAndStop(2); x_speed = -walking_speed; } } else { x_speed = -walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed = walking_speed / 2; } else { this.gotoAndStop(2); x_speed = walking_speed; } } else { x_speed = walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed = 0; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -digijump / 2; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -digijump / 2; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._xscale = _y - 153.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; } else { if (_y > 450) { if (!countDownToDoom) { countDownToDoom = true; secondsUntilEnd = 95; } else { secondsUntilEnd -= 1; if (secondsUntilEnd == 0) { _root.gotoAndStop('end'); } } if (!past_death) { past_death = true; shake_decay = 6; _parent.lolstat.mario_death.start(0, 0); _parent.music.stop(); } else { shake_x = random(40) - 20; _parent.camera._x = 320 + Math.round(shake_x * shake_decay / 10) * 10; shake_decay *= 0.8; } } } } } } instance dust of movieClip 1638 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance lolstat of movieClip 1611 { onClipEvent (load) { _alpha = 100; var mario_death = new Sound(sfx4); mario_death.attachSound('death'); } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 10; _parent.mindbody.setVolume(_alpha); } else { _parent.mindbody.stop(); _visible = false; } } } } movieClip 1664 { frame 9 { gotoAndPlay(1); } frame 18 { gotoAndPlay(10); } } movieClip 1669 { frame 15 { _parent._visible = false; _parent.gotoAndStop(3); } } movieClip 1670 { frame 1 { stop(); } } button 1678 { on (press) { _parent.gotoAndPlay(10); } } movieClip 1679 { frame 1 { stop(); } instance forw of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent.nextFrame(); } } instance forw of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent.prevFrame(); } } instance forw of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent._parent.gotoAndPlay(2); } } } movieClip 1681 { } movieClip 1690 { } movieClip 1691 { frame 1 { stop(); } frame 54 { _parent.whiteout._alpha = 100; _parent.whiteout._visible = true; _parent.muzak.stop(); _parent.death.music.start(0, 1000); } instance of movieClip 1690 { onClipEvent (load) { gotoAndStop(4); } onClipEvent (enterFrame) { _alpha = _alpha * 0.95; if (_alpha < 2) { gotoAndStop(4); _alpha = 0; } if (random(150) == 0 && _currentframe == 4) { _rotation = random(30) - 15; _yscale = 50 + random(50); _xscale = 50 + random(50); _x = random(640) - 320; gotoAndStop(random(3) + 1); _alpha = 100; } } } instance of movieClip 1690 { onClipEvent (load) { gotoAndStop(4); } onClipEvent (enterFrame) { _alpha = _alpha * 0.95; if (_alpha < 2) { gotoAndStop(4); _alpha = 0; } if (random(150) == 0 && _currentframe == 4) { _rotation = random(30) - 15; _yscale = 50 + random(50); _xscale = 50 + random(50); _x = random(640) - 320; gotoAndStop(random(3) + 1); _alpha = 100; } } } instance of movieClip 1690 { onClipEvent (load) { gotoAndStop(4); } onClipEvent (enterFrame) { _alpha = _alpha * 0.95; if (_alpha < 2) { gotoAndStop(4); _alpha = 0; } if (random(150) == 0 && _currentframe == 4) { _rotation = random(30) - 15; _yscale = 50 + random(50); _xscale = 50 + random(50); _x = random(640) - 320; gotoAndStop(random(3) + 1); _alpha = 100; } } } instance of movieClip 1690 { onClipEvent (load) { gotoAndStop(4); } onClipEvent (enterFrame) { _alpha = _alpha * 0.95; if (_alpha < 2) { gotoAndStop(4); _alpha = 0; } if (random(150) == 0 && _currentframe == 4) { _rotation = random(30) - 15; _yscale = 50 + random(50); _xscale = 50 + random(50); _x = random(640) - 320; gotoAndStop(random(3) + 1); _alpha = 100; } } } frame 256 { gotoAndPlay(56); } } movieClip 1703 { frame 1 { stop(); } frame 22 { _visible = false; gotoAndStop(1); } } movieClip 1730 { frame 1 { stop(); } } movieClip 1733 { frame 75 { stop(); } } movieClip 1740 { frame 1 { stop(); } instance of movieClip 1733 { onClipEvent (enterFrame) { _rotation = _parent._parent.ron_rotate; _parent.gotoAndStop(_parent._parent.ron_frame); } } } movieClip 1748 { frame 1 { stop(); } } movieClip 1770 { } movieClip 1772 { frame 1 { } frame 2 { _parent._parent.gold_blast._visible = true; _parent._parent.gold_blast.gotoAndPlay(1); _parent._parent.gold_blast._x = _x / 1.1 + _parent._x; _parent._parent.gold_blast._y = _y / 1.1 + _parent._y; _parent._parent.gold_blast._rotation = _rotation; } } movieClip 1774 { } movieClip 1777 { frame 1 { stop(); ron_frame = random(5) + 1; ron_rotate = random(360); } instance glitch_image of movieClip 1740 { onClipEvent (load) { initx = _x; } } instance of movieClip 1772 { onClipEvent (load) { back_and_forth = 0; speed = 0.02 + (_parent.ron_damage + _parent._parent._parent.score.cdo / 120); if (speed > 0.2) { speed = 0.2; } if (random(2) == 0) { speed *= -1; } } onClipEvent (enterFrame) { _rotation = Math.sin(back_and_forth) * 45; back_and_forth += speed; if (_currentframe > 1 && _currentframe < 5) { back_and_forth -= speed; } if (_currentframe == 2) { if (_parent._y < 0) { _parent.blast.start(0, 0); } } } } } movieClip 1778 { frame 1 { stop(); } instance blimp of movieClip 1777 { onClipEvent (load) { blast = new Sound(); blast.attachSound('blast'); gotoAndStop(2); ron_damage = 0; n = 0; } onClipEvent (enterFrame) { if (ron_damage != 0) { skin.gotoAndStop((ron_damage - ron_damage % 5) / 5 + 1); } } onClipEvent (enterFrame) { glitching = (ron_damage - ron_damage % 5) / 5; if (n % 2 == 0 && glitching != 0) { normal_frame = glitching * 6 - 3 + random(3) * 2; normal.gotoAndStop(normal_frame); glitch.gotoAndStop(normal_frame + 1); } if (glitching != 0) { glitch_image._x = glitch_image.initx + (random(ron_damage) - ron_damage / 2); } if (glitching >= 5) { this.gotoAndStop(3); _parent.doom_state = true; } n += 1; } onClipEvent (enterFrame) { if (_currentframe == 2) { mask._yscale = (360 - _y / 3) / 1.1; } } } } movieClip 1802 { frame 28 { stop(); _visible = false; } } movieClip 1803 { instance boom of movieClip 1802 { onClipEvent (load) { all_around_hit(this, _parent._parent.blimp); if (yes_all_around_hit) { _parent._parent.blimp.blimp.ron_damage += 1; } } } } movieClip 1808 { } movieClip 1811 { frame 1 { stop(); } } movieClip 1812 { instance gold of movieClip 1811 { onClipEvent (load) { gotoAndStop(random(2) + 1); n = 0; } onClipEvent (enterFrame) { if (_name != 'gold') { n += 1; if (n == 90) { _xscale = _xscale * 1.2; _yscale = _yscale * 1.2; } if (n == 92) { _xscale = _xscale * 0.6; _yscale = _yscale * 0.6; } if (n == 94) { _xscale = _xscale * 0.3; _yscale = _yscale * 0.3; } if (n == 96) { _visible = false; gotoAndStop(5); } } } } } movieClip 1816 { frame 1 { stop(); } frame 25 { stop(); _visible = false; } } movieClip 1817 { instance toxic of movieClip 1816 { onClipEvent (load) { if (_name != 'toxic') { back_and_forth = random(63) / 10; deviant = random(5) - 2; grav = 1.5 + random(10) / 10; movement = 0.05 + random(10) / 100; grav = 2; y_speed = -5 - random(15); x_speed = (random(19) - 10) / 2; rotate = (random(Math.round(Math.abs(y_speed))) - Math.round(Math.abs(y_speed)) / 2) / 4; } } onClipEvent (enterFrame) { if (_visible && _currentframe == 1) { if (_name != 'toxic') { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + rotate; if (_y >= 315) { if (_x > 10 && 630 > _x) { _y = 315; y_speed *= -0.8; x_speed *= 0.8; _rotation = 0; if (y_speed < -1) { rotate = (random(Math.round(Math.abs(y_speed))) - Math.round(Math.abs(y_speed)) / 2) / 4; } } } } } } onClipEvent (enterFrame) { all_around_hit(this, _parent._parent.ben); if (yes_all_around_hit && _currentframe == 1 && Math.abs(y_speed) <= 5) { this.gotoAndPlay(2); _parent._parent.score.cdo = parseInt(_parent._parent.score.cdo) + 1; } } } } movieClip 1818 { instance bomb of movieClip 1816 { onClipEvent (load) { if (_name != 'bomb') { back_and_forth = random(63) / 10; deviant = random(5) - 2; grav = 1.5 + random(10) / 10; movement = 0.05 + random(10) / 100; grav = 2; y_speed = -20 - random(10); x_speed = (random(19) - 10) * 1.5; rotate = (random(Math.round(Math.abs(y_speed))) - Math.round(Math.abs(y_speed)) / 2) * 2; n = 15; } } onClipEvent (enterFrame) { if (_visible && _currentframe == 1) { if (_name != 'bomb') { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + rotate; if (n == 0) { this.gotoAndStop(25); bloodyname = 'boom' + _parent._parent.boom.s_number; initdepth = _parent._parent.boom.boom.getDepth() + _parent._parent.boom.s_number; _parent._parent.boom.boom.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y}); _parent._parent.boom.s_number += 1; } else { n -= 1; } if (_x < -50) { _x = 690; } if (_x > 690) { _x = -50; } } } } } } movieClip 1840 { instance of movieClip 1298 { onClipEvent (load) { x_speed = random(20) - 10; y_speed = -random(25) - 20; _parent._x += x_speed; _parent._y += y_speed; rot = random(40) - 20; } onClipEvent (enterFrame) { if (_parent._currentframe < 7) { _parent._x += x_speed; _parent._y += y_speed; y_speed += 2; _parent._rotation += rot; _parent._alpha -= alph / 2; if (_parent._y > 150) { _parent.gotoAndStop(7); _parent._visible = false; } } } } } movieClip 1841 { frame 1 { stop(); } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.roof_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.roof_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.door_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.door_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.wind_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.wind_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.roof_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.roof_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.door_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.door_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.wind_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.wind_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.roof_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.roof_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.door_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.door_col); } } instance of movieClip 1402 { onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.wind_col); } onClipEvent (enterFrame) { this.colour = new Color(this); this.colour.setRGB(_parent.wind_col); } } frame 4 { this.swapDepths(_parent.depth); _parent.depth += 1; } instance of movieClip 1840 { onClipEvent (load) { gotoAndStop(5); } onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } } instance of movieClip 1840 { onClipEvent (load) { gotoAndStop(4); } onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } } instance of movieClip 1840 { onClipEvent (load) { gotoAndStop(6); } onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.house_col); } } instance of movieClip 1840 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 1840 { onClipEvent (load) { gotoAndStop(2); } onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.door_col); } } instance of movieClip 1840 { onClipEvent (load) { gotoAndStop(1); } onClipEvent (load) { this.colour = new Color(this); this.colour.setRGB(_parent.roof_col); } } } movieClip 1842 { instance goldhouse of movieClip 1841 { onClipEvent (load) { n = 0; wind_col = '0xECDE60'; door_col = '0xECDE60'; house_col = '0xECDE60'; roof_col = '0xECDE60'; gotoAndStop(houseframe); } onClipEvent (enterFrame) { if (_name != 'goldhouse') { n += 1; if (n == 90) { _xscale = _xscale * 1.2; _yscale = _yscale * 1.2; } if (n == 92) { _xscale = _xscale * 0.6; _yscale = _yscale * 0.6; } if (n == 94) { _xscale = _xscale * 0.3; _yscale = _yscale * 0.3; } if (n == 96) { _visible = false; gotoAndStop(5); } } } } } movieClip 1843 { frame 1 { depth = 100; } instance house of movieClip 1841 { onClipEvent (load) { if (_name != 'house') { n = 0; roof_col = '0x' + random(1000000); house_col = '0x' + random(1000000); door_col = '0x' + random(1000000); wind_col = '0x' + random(1000000); init_xscale = _xscale; init_yscale = _yscale; _xscale = init_xscale * 1.3; _yscale = init_xscale * 0.4; } } onClipEvent (enterFrame) { if (_name != 'house') { if (_visible && _currentframe <= 3) { _xscale = (_xscale + init_xscale) / 2; _yscale = (_yscale + init_yscale) / 2; all_around_hit(this, _parent._parent.money); if (yes_all_around_hit) { n += 1; } else { if (this.hitTest(_parent._parent.ben.butt) && Key.isDown(32)) { n += 1; } } if (n >= 30) { n = 0; this.nextFrame(); if (_currentframe == 4) { _parent.housing -= 1; _parent._parent.score.dow += 500; i = 0; while (i < 3) { bloodyname = 'toxic' + _parent._parent.toxic.s_number; initdepth = _parent._parent.toxic.toxic.getDepth() + _parent._parent.toxic.s_number; _parent._parent.toxic.toxic.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y - 60}); _parent._parent.toxic.s_number += 1; ++i; } _parent.popped.start(0, 0); } else { _xscale = init_xscale * 1.5; _yscale = init_yscale * 0.6; } } } } } onClipEvent (enterFrame) { if (_name != 'house') { if (_visible && _currentframe <= 3) { all_around_hit(this, _parent._parent.blimp.gold_blast); if (yes_all_around_hit) { bloodyname = 'goldhouse' + _parent._parent.goldhouse.s_number; initdepth = _parent._parent.goldhouse.goldhouse.getDepth() + _parent._parent.goldhouse.s_number; _parent._parent.goldhouse.goldhouse.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y, 'houseframe': _currentframe}); _parent._parent.goldhouse.s_number += 1; bloodyname = 'gold' + _parent._parent.gold.s_number; initdepth = _parent._parent.gold.gold.getDepth() + _parent._parent.gold.s_number; _parent._parent.gold.gold.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y}); _parent._parent.gold.s_number += 1; bloodyname = 'fume' + _parent._parent.fume.s_number; initdepth = _parent._parent.fume.fume.getDepth() + _parent._parent.fume.s_number; _parent._parent.fume.fume.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y - 30}); _parent._parent.fume.s_number += 1; _visible = false; gotoAndStop(5); _parent.housing -= 1; } } } } } } movieClip 1844 { instance money of movieClip 1670 { onClipEvent (load) { if (_name != 'money') { back_and_forth = random(63) / 10; deviant = random(5) - 2; grav = 1.5 + random(10) / 10; movement = 0.05 + random(10) / 100; _y = _y + grav; _x = _x + Math.sin(back_and_forth); back_and_forth += movement; _x = _x + deviant / 2; _rotation = 45 * Math.cos(back_and_forth); all_around_hit(this, _parent._parent.house); if (yes_all_around_hit) { gotoAndStop(2); } } } onClipEvent (enterFrame) { if (_visible && _currentframe == 1) { if (_name != 'money') { _y = _y + grav; _x = _x + Math.sin(back_and_forth); back_and_forth += movement; _x = _x + deviant / 2; } if (_y >= 340) { if (_x > 10 && 630 > _x) { _y = _y - grav; movement *= 0.8; deviant *= 0.8; _x = _x - Math.sin(back_and_forth); } _alpha = _alpha - 20; } else { all_around_hit(this, _parent._parent.gold); if (yes_all_around_hit) { _y = _y - grav; movement *= 0.8; deviant *= 0.8; _x = _x - Math.sin(back_and_forth); _alpha = _alpha - 20; } all_around_hit(this, _parent._parent.goldhouse); if (yes_all_around_hit) { _y = _y - grav; movement *= 0.8; deviant *= 0.8; _x = _x - Math.sin(back_and_forth); _alpha = _alpha - 20; } } if (_alpha <= 0) { _visible = false; gotoAndStop(3); } all_around_hit(this, _parent._parent.house); if (yes_all_around_hit) { gotoAndStop(2); } } } } } movieClip 1849 { frame 5 { stop(); } } movieClip 1853 { frame 5 { stop(); } } movieClip 1854 { frame 1 { stop(); } } movieClip 1856 { frame 1 { stop(); } instance of movieClip 1664 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 1664 { onClipEvent (load) { gotoAndPlay(10); } } } movieClip 1857 { } movieClip 1858 { } button 1859 { on (press) { gotoAndPlay(10); } } movieClip 1860 { } movieClip 1861 { instance of movieClip 1298 { onClipEvent (load) { x_speed = random(20) - 10; y_speed = -random(15) - 5; _parent._x += x_speed; _parent._y += y_speed; rot = random(20) - 10; alph = 5 + random(10); } onClipEvent (enterFrame) { if (_parent._currentframe < 7) { _parent._x += x_speed; _parent._y += y_speed; y_speed += 2; _parent._rotation += rot; _parent._alpha -= alph / 2; if (_parent._alpha <= 0) { _parent.gotoAndStop(7); _parent._visible = false; } } } } } movieClip 1875 { frame 27 { stop(); } } movieClip 1876 { frame 1 { stop(); } frame 2 { _visible = true; } frame 70 { stop(); _parent.ben.gotoAndStop(2); } frame 70 { sploosh = new Sound(); sploosh.attachSound('Level_Bloodsplode'); sploosh.start(0, 0); } instance of movieClip 1861 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 1861 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 1861 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 1861 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 1861 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 1861 { onClipEvent (load) { gotoAndStop(6); } } } movieClip 1883 { } movieClip 1929 { frame 1 { stop(); _global.all_around_hit = function (target, hitter) { with (target) { target.yes_all_around_hit = false; if (hitter.hitTest(_x, (getBounds(_parent)).yMax, true) || hitter.hitTest(_x, (getBounds(_parent)).yMin, true) || hitter.hitTest((getBounds(_parent)).xMax, _y, true) || hitter.hitTest((getBounds(_parent)).xMin, _y, true)) { target.yes_all_around_hit = true; } } }; } instance death of movieClip 1298 { onClipEvent (load) { stop(); music = new Sound(this); music.attachSound('DeathMetal'); } } instance blimp of movieClip 1778 { onClipEvent (load) { _root._quality = 'MEDIUM'; _visible = false; n = 0; y_speed = 0; x_speed = random(10) - 5; rot = random(20) - 10; extra_round = 0; new_x = 240; } onClipEvent (enterFrame) { n += 1; if (n == 200) { _parent.sky.gotoAndPlay(2); } if (n >= 300 && n < 450) { _visible = true; attack_stage = false; idle_stage = true; } if (n >= 450 && n < 600) { idle_stage = false; attack_stage = true; } if (n >= 600) { n = 300; } } onClipEvent (enterFrame) { if (_currentframe == 1) { if (!doom_state) { if (idle_stage) { new_y = 242; extra_x_rounding = 30; if (blimp._y > 220) { blimp.gotoAndStop(1); } } if (attack_stage) { new_y = -130; extra_x_rounding = 120; if (blimp._y < -120) { blimp.gotoAndStop(2); } } extra_x = Math.sin(extra_round) * extra_x_rounding; extra_y = 20 + Math.cos(extra_round) * 20; extra_round -= 0.05; blimp._x = (new_x + (blimp._x + extra_x) * 6) / 7 - extra_x; blimp._y = (new_y + (blimp._y + extra_y) * 6) / 7 - extra_y; } else { if (_parent.sky._currentframe != 1) { _parent.sky.gotoAndStop(1); _parent.whiteout._alpha = 100; _parent.whiteout._visible = true; } y_speed += 0.5; blimp._y += y_speed; blimp._x += x_speed; blimp._rotation += rot / 10; bloodyname = 'boom' + _parent.boom.s_number; initdepth = _parent.boom.boom.getDepth() + _parent.boom.s_number; _parent.boom.boom.duplicateMovieClip(bloodyname, initdepth, {'_xscale': 200, '_yscale': 200, '_x': blimp._x + random(780) - 390, '_y': blimp._y - 230 + random(440)}); _parent.boom.s_number += 1; if (blimp._y > 800) { this.gotoAndStop(2); _parent.fallpaul.gotoAndPlay(2); _parent.nextFrame(); } else { if (random(3) == 0) { blimp.blast.start(0, 0); } } } } } } instance boom of movieClip 1803 { onClipEvent (load) { s_number = 100; } } instance of movieClip 1808 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_parent.ben._currentframe == 2 && !_visible) { _visible = true; _x = _parent.ben._x; _xscale = (340 - _parent.ben._y) * 1.3; } } } instance gold of movieClip 1812 { onClipEvent (load) { s_number = 100; } } instance toxic of movieClip 1817 { onClipEvent (load) { s_number = 100; } } instance bomb of movieClip 1818 { onClipEvent (load) { s_number = 100; } } instance goldhouse of movieClip 1842 { onClipEvent (load) { s_number = 100; } } instance house of movieClip 1843 { onClipEvent (load) { popped = new Sound(); popped.attachSound('popsound'); s_number = 100; housing = 0; i = 0; while (i < 3) { housing += 1; bloodyname = 'house' + s_number; initdepth = house.getDepth() + s_number; house.duplicateMovieClip(bloodyname, initdepth, {'_x': 60 + random(520)}); s_number += 1; ++i; } } onClipEvent (enterFrame) { if (random(60) == 0 && housing < 5) { housing += 1; bloodyname = 'house' + s_number; initdepth = house.getDepth() + s_number; house.duplicateMovieClip(bloodyname, initdepth, {'_x': 60 + random(520), '_y': house._y}); s_number += 1; } } } instance ben of movieClip 1856 { onClipEvent (load) { x_speed = 0; y_speed = 0; movement = 0.5; up_and_down = 0; } onClipEvent (enterFrame) { if (Key.isDown(32) || Key.isDown(37) || Key.isDown(39) || Key.isDown(38) || Key.isDown(40)) { ben.gotoAndStop(2); } else { ben.gotoAndStop(1); } if (Key.isDown(37)) { x_speed -= movement; } if (Key.isDown(39)) { x_speed += movement; } if (Key.isDown(38)) { y_speed -= movement; } if (Key.isDown(40)) { y_speed += movement; } _x = _x + x_speed; _y = _y + y_speed; x_speed *= 0.95; y_speed *= 0.95; _y = _y + Math.sin(up_and_down); up_and_down += 0.05; ben._rotation = -Math.atan2(x_speed, -5) / 0.0174532925199433 + 180; _rotation = Math.atan2(x_speed, 20) / 0.0174532925199433; if (ben._rotation < 0) { ben._xscale = -100; } else { ben._xscale = 100; } } onClipEvent (load) { s_number = 100; money_n = 0; bomb_n = 0; } onClipEvent (enterFrame) { money_n += 1; money_y = _y - 30 * Math.cos((ben._rotation + _rotation + 180) * 0.0174532925199433); if (Key.isDown(32) && money_n % 4 == 0) { money_x = _x + 30 * Math.sin((ben._rotation + _rotation + 180) * 0.0174532925199433); bloodyname = 'money' + s_number; initdepth = _parent.money.money.getDepth() + s_number; _parent.money.money.duplicateMovieClip(bloodyname, initdepth, {'_x': money_x, '_y': money_y}); s_number += 1; } bomb_n += 1; if (Key.isDown(90) && _parent.score.cdo > 0 && bomb_n % 6 == 0) { bloodyname = 'bomb' + _parent.bomb.s_number; initdepth = _parent.bomb.bomb.getDepth() + _parent.bomb.s_number; _parent.bomb.bomb.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y}); _parent.bomb.s_number += 1; _parent.score.cdo -= 1; } } onClipEvent (enterFrame) { if (_x < -50) { _x = 690; } if (_x > 690) { _x = -50; } if (_y < 10) { _y = 10; y_speed *= -1; } if (_y - (_y - money_y) > 340) { _y = 340 + (_y - money_y); y_speed *= -1; } } onClipEvent (enterFrame) { if (falter_stage) { if (falter > 0) { falter -= 1; if (falter % 2 == 0) { _visible = false; } else { _visible = true; } } else { falter_stage = false; _visible = true; } } else { all_around_hit(this, _parent.blimp.gold_blast); if (yes_all_around_hit) { falter_stage = true; falter = 30; gotoSpotX = _parent.blimp.gold_blast._x; gotoSpotY = _parent.blimp.gold_blast._y; delta_x = _x - gotoSpotX; delta_y = _y - gotoSpotY; blast_rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433; y_speed += 15 * Math.cos(blast_rotation * 0.0174532925199433); x_speed -= 15 * Math.sin(blast_rotation * 0.0174532925199433); bloodyname = 'fume' + _parent.fume.s_number; initdepth = _parent.fume.fume.getDepth() + _parent.fume.s_number; _parent.fume.fume.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y}); _parent.fume.s_number += 1; } } } } instance fume of movieClip 1858 { onClipEvent (load) { s_number = 100; } } frame 3 { stop(); } instance fallpaul of movieClip 1876 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_currentframe > 2 && _currentframe < 70) { _y = _parent.ben._y + 60 * Math.cos((_parent.ben.ben._rotation + _parent.ben._rotation + 180) * 0.0174532925199433); _x = _parent.ben._x - 60 * Math.sin((_parent.ben.ben._rotation + _parent.ben._rotation + 180) * 0.0174532925199433); } } } instance score of movieClip 1883 { onClipEvent (load) { dow = 0; trace(_currentframe); trace(_y); trace(_visible); } onClipEvent (enterFrame) { doww = '$' + dow; dollarr = 150 / (50 + _parent.ben.s_number); dollar = '$' + Math.round(dollarr * 100) / 100; if (_parent.fallpaul._currentframe > 2 && _y > -100) { _y = _y - 2; if (!notSubmittedHiscoreAlready) { notSubmittedHiscoreAlready = true; if (dow > _global.highscores.macroecon) { _root.alert.newScore = 'subprime: ' + Math.round(dow); _global.highscores.macroecon = dow; thegame.data.highscores = _global.highscores; thegame.data.flush(); } } } } } instance whiteout of movieClip 1402 { onClipEvent (load) { _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (_alpha != 0) { _alpha = _alpha - 2; } else { _visible = false; } } } instance whiteout of movieClip 1402 { onClipEvent (load) { _alpha = 0; n = 210; } onClipEvent (enterFrame) { if (n <= 0) { _alpha = _alpha + 2; } n -= 1; if (_alpha >= 100) { _parent.nextFrame(); } } } frame 5 { gotoAndPlay(10); } frame 10 { death.music.stop(); } frame 366 { _root.gotoAndStop('end'); } } movieClip 1932 { frame 1 { stop(); } } movieClip 1935 { frame 1 { stop(); } } movieClip 1936 { instance riserun of movieClip 1935 { onClipEvent (load) { if (_name != 'riserun' && _currentframe != 3) { _rotation = random(60) - 30; speed = random(5) - 2; y_speed = (-random(3) - 2) / 3; } } onClipEvent (enterFrame) { if (_name != 'riserun' && _currentframe != 3) { _rotation = _rotation + speed; _y = _y + y_speed; _alpha = _alpha - 10; if (_alpha <= 0) { gotoAndStop(3); _visible = false; } } } } } movieClip 1937 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1184 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 52; this.jumping_frame = 53; this.squatting_frame = 54; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); _parent.formula.nextFrame(); _parent.formula._yscale = 130; _parent.formula._xscale = 130; } else { if (shake_decay > 0.0004) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance formula of movieClip 1932 { onClipEvent (enterFrame) { scale = _xscale - 100; _yscale = 100 + scale * -0.85; _xscale = 100 + scale * -0.85; } } instance riserun of movieClip 1936 { onClipEvent (load) { number = 0; time_n = 0; } onClipEvent (enterFrame) { if (time_n % 5 == 0) { n = 0; if (_parent.player._y < 270) { ++number; newName = 'riserun' + number; newDepth = riserun.getDepth() + number; duplicateMovieClip(riserun, newName, newDepth); eval(newName)._x = _parent.player._x; eval(newName)._y = _parent.player._y; } else { if (Key.isDown(37) || Key.isDown(39)) { ++number; newName = 'riserun' + number; newDepth = riserun.getDepth() + number; duplicateMovieClip(riserun, newName, newDepth); tellTarget ('newName') { gotoAndStop(2); } eval(newName)._x = _parent.player._x; eval(newName)._y = _parent.player._y - 10; } } } ++time_n; } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } } movieClip 1939 { } movieClip 1940 { instance of movieClip 886 { onClipEvent (load) { _alpha = 0; screen_width = 320; screen_length = 200; screen_diagonal = 377.359; init_angle = 32.00538321; } onClipEvent (enterFrame) { _root._x = _parent._x - screen_width; _root._y = _parent._y - screen_length; pre_scale_x = _parent._x; pre_scale_y = _parent._y; _root._xscale = 10000 / _parent._xscale; _root._yscale = 10000 / _parent._yscale; _root._x -= pre_scale_x * _root._xscale / 100; _root._y -= pre_scale_y * _root._yscale / 100; _root._x += pre_scale_x; _root._y += pre_scale_y; _root._rotation = -_parent._rotation; angle = _root._rotation + 90 + init_angle; _root._y += Math.cos(angle * 0.0174532925199433) * screen_diagonal; _root._x -= Math.sin(angle * 0.0174532925199433) * screen_diagonal; _root._x += screen_width; _root._y += screen_length; } } } movieClip 1959 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); var mindbody = new Sound(sfx4); mindbody.attachSound('Level_MindBody_Stat'); mindbody.setVolume(0); mindbody.start(0, 3000); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(1); } } instance player of movieClip 1184 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 43; this.jumping_frame = 44; this.squatting_frame = 45; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { _parent.music.stop(); past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; if (shake_decay < 0.01) { _parent.play(); } } } } } } } instance of movieClip 1939 { onClipEvent (load) { init_x = _x; player_initx = _parent.player._x; init_y = _y; player_inity = _parent.player._y; } onClipEvent (enterFrame) { diffx = player_initx - _parent.player._x; diffy = player_inity - _parent.player._y; _x = init_x + diffx / 8; _y = init_y + diffy / 8; volume = Math.sqrt(diffx * diffx + diffy * diffy); if (volume > 500) { _parent.mindbody.setVolume(500); } else { _parent.mindbody.setVolume(volume); } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance music of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } instance of movieClip 1298 { onClipEvent (load) { _parent.mindbody.setVolume(500); } onClipEvent (enterFrame) { if (!enditall) { volumee = _parent.mindbody.getVolume(); _parent.mindbody.setVolume(volumee - 15); if (volumee - 15 <= 0) { enditall = true; } } else { _parent.mindbody.setVolume(0); _parent.mindbody.stop(); } } } frame 270 { _root.gotoAndStop('end'); } } movieClip 1960 { instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 3 { if (_parent._parent._name == 'player') { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } } frame 8 { _parent._parent.soft_step.start(0, 0); } frame 11 { if (_parent._parent._name == 'player') { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } } frame 16 { _parent._parent.soft_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 1961 { frame 1 { stop(); } } movieClip 1962 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player3 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 77; this.jumping_frame = 29; this.squatting_frame = 30; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow3._x = _x; _parent.player_shadow3._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow3._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } instance player2 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 76; this.jumping_frame = 26; this.squatting_frame = 27; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow2._x = _x; _parent.player_shadow2._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow2._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } instance player of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 176 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 78; this.jumping_frame = 79; this.squatting_frame = 80; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance music of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 1965 { frame 20 { gotoAndPlay(1); } } movieClip 1967 { } movieClip 1968 { instance tip of movieClip 1967 { onClipEvent (load) { point_x_array = new Array(); point_x_array.push(_x); point_y_array = new Array(); point_y_array.push(_y); shift = 0; start_point = 0; inity = _y; y_shift = 0; line_y_speed = 0; wave_n = 0; seconds = 0; wave_calc = function () { if (seconds < 20) { wave_shift = -Math.cos(wave_n / 20); wave_n += 0.25; y_speed += wave_shift * 5; } else { if (seconds < 40) { wave_shift = -Math.sin(wave_n / 20); wave_n += 0.5; y_speed += wave_shift * 6; } else { if (seconds < 60) { wave_shift = Math.cos(wave_n / 20); wave_n += 1; y_speed += wave_shift * 7; } else { if (seconds < 90) { wave_shift = -Math.sin(wave_n / 20); wave_n += 2; y_speed += wave_shift * 8; } else { if (seconds < 110) { wave_shift = -Math.cos(wave_n / 20); wave_n += 3; y_speed += wave_shift * 10; } else { if (seconds < 120) { y_speed -= Math.pow((seconds - 100) / 3, 1.5); } else { if (seconds < 123) { y_speed = 80; _parent.its_all_over_now = true; } else { y_speed = 0; } } } } } } } seconds += 0.08888; }; } onClipEvent (enterFrame) { if (shift % 2 == 0) { y_speed = random(21) - 10; } wave_calc(); point_x_array.push(_x + shift * 15); point_y_array.push(_y - _parent.line._y); shift += 1; _y = _y + y_speed; _y = _y + line_y_speed; _parent.line._y += line_y_speed; _parent._parent.bg._y += line_y_speed / 5; _rotation = -Math.atan2(-15, -y_speed) / 0.0174532925199433; if (seconds < 121) { if (_y < 100) { line_y_speed += 1; } if (_y > 300) { line_y_speed -= 1; } if (seconds > 110) { if (_y < 100) { line_y_speed += 2; } if (_y > 300) { line_y_speed -= 2; } } } line_y_speed *= 0.9; _parent.line.createEmptyMovieClip('stock', -100); _parent.line.stock.lineStyle(10, 16585491, 100); _parent.line_shadow.createEmptyMovieClip('stock', -100); _parent.line_shadow.stock.lineStyle(10, 0, 20); if (_x < shift * 15) { point_x_array.shift(); point_y_array.shift(); } first_line = true; i = 1; while (i < point_x_array.length) { if (point_y_array[i] + _parent.line._y < 450) { if (first_line) { _parent.line.stock.moveTo(point_x_array[i] - shift * 15, point_y_array[i]); _parent.line_shadow.stock.moveTo(point_x_array[i] - shift * 15, point_y_array[i]); first_line = false; } else { _parent.line.stock.lineTo(point_x_array[i] - shift * 15, point_y_array[i]); _parent.line_shadow.stock.lineTo(point_x_array[i] - shift * 15, point_y_array[i]); } } ++i; } _parent.line.stock.lineTo(_x, _y - _parent.line._y); _parent.line_shadow.stock.lineTo(_x, _y - _parent.line_shadow._y); sedge_rotation = _rotation - 135; sedge_y = -25 * Math.cos(sedge_rotation * 0.0174532925199433); sedge_x = 25 * Math.sin(sedge_rotation * 0.0174532925199433); _parent.line_shadow.stock.lineTo(_x + sedge_x, _y - _parent.line_shadow._y + sedge_y); _parent.line_shadow.stock.lineTo(_x, _y - _parent.line_shadow._y); sedge_rotation = _rotation + 135; sedge_y = -25 * Math.cos(sedge_rotation * 0.0174532925199433); sedge_x = 25 * Math.sin(sedge_rotation * 0.0174532925199433); _parent.line_shadow.stock.lineTo(_x + sedge_x, _y - _parent.line_shadow._y + sedge_y); _parent.line_shadow._x = _parent.line._x + 10; _parent.line_shadow._y = _parent.line._y + 10; } } } movieClip 1973 { } movieClip 1983 { } movieClip 1984 { instance spark of movieClip 1983 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } } movieClip 1986 { } movieClip 1989 { instance of movieClip 1259 { onClipEvent (load) { parent_x = _parent._x; parent_y = _parent._y; _rotation = _rotation + 12 / _parent.seconds; } onClipEvent (enterFrame) { if (go) { if (wait_til_black >= 30) { _parent._parent.blackout.end = true; } else { wait_til_black += 1; } _parent._x = parent_x + random(9) - 4; _parent._y = parent_y + random(9) - 4; } else { _rotation = _rotation + 12 / _parent.seconds; } if (last_rotation / _rotation < 0 && _rotation > 0 || _rotation == 0) { wait_til_black = 0; go = true; } last_rotation = _rotation; } } } movieClip 1991 { frame 1 { stop(); } } movieClip 1992 { frame 1 { stop(); var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); } instance bg of movieClip 1965 { onClipEvent (load) { inity = _y; } } instance of movieClip 1984 { onClipEvent (load) { find_point = function (displace) { pointy = _parent.line.tip.point_y_array[Math.round((_x + displace) / 15) + 1]; pointy += _parent.line.line._y; }; x_speed = 0; y_speed = -80; hit_ground = false; grav = 2; } onClipEvent (enterFrame) { if (_y > 450) { _x = _x + 10; } if (_parent.line.its_all_over_now && fall_y == undefined) { fall_y = _y; } if (_y - fall_y > 400) { if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y - fall_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } if (_y - fall_y > 1337) { if (_parent.current_score > _global.highscores.stock) { _root.alert.newScore = 'stock market: ' + Math.round(_parent.current_score); _global.highscores.stock = Math.round(_parent.current_score); thegame.data.highscores = _global.highscores; thegame.data.flush(); } _root.gotoAndStop('end'); } } if (Key.isDown(37)) { x_speed -= 3; } if (Key.isDown(39)) { x_speed += 3; } x_speed *= 0.8; _x = _x + x_speed; if (_x > 500) { _x = 500; x_speed *= -1; } if (_x < 20) { _x = 20; x_speed *= -1; } find_point(-20); left_point = pointy; find_point(0); middle_point = pointy; find_point(20); right_point = pointy; if (hit_ground) { delta_x = -50; delta_y = left_point - right_point; _rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433 - 90; if (Key.isDown(38)) { y_speed -= 20 + Math.cos((_rotation + 90) * 0.0174532925199433) * 10; } score_slope = delta_y / delta_x; score_run = 15 + x_speed; _parent.current_score -= 3 * score_slope * score_run; if (score_slope * score_run < -1) { _parent.score.score_colour = _parent.score.green_score_colour; } else { if (score_slope * score_run > 1) { _parent.score.score_colour = _parent.score.red_score_colour; } else { _parent.score.score_colour = '0xFFFFFF'; } } } else { if (this.spark._alpha > 0) { this.spark._alpha -= 10; } y_speed += grav; _rotation = _rotation * 0.9; } _y = _y + y_speed; if (_y > middle_point) { if (!hit_ground && y_speed > 15) { this.spark._alpha = 100; } _y = middle_point; y_speed = 0; hit_ground = true; } else { hit_ground = false; } } } instance score of movieClip 1986 { onClipEvent (load) { _parent.current_score = 0; score.text = _parent.current_score; _parent.score2.score.text = this.score.text; colour = new Color(this); red_score_colour = '0xD81F1F'; green_score_colour = '0x18C529'; score_colour = '0xFFFFFF'; colour.setRGB(score_colour); } onClipEvent (enterFrame) { colour.setRGB(score_colour); score.text = Math.round(_parent.current_score); _parent.score2.score.text = this.score.text; } } instance of movieClip 1989 { onClipEvent (load) { seconds = 45; } } instance of movieClip 1991 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { if (_currentframe == 1) { n += 1; if (n > 210) { _alpha = _alpha - 2; if (_alpha <= 0) { gotoAndStop(2); } } else { if (n < 200 && Key.isDown(38)) { n = 200; } } } } } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 1997 { } movieClip 2001 { } movieClip 2004 { frame 1 { stop(); } frame 2 { if (_parent.correctAnswer * 100 > _global.highscores.education) { _root.alert.newScore = 'education: ' + _parent.correctAnswer * 100; _global.highscores.education = _parent.correctAnswer * 100; thegame.data.highscores = _global.highscores; thegame.data.flush(); } } } movieClip 2005 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance of movieClip 1997 { onClipEvent (load) { pressed = false; n = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { pressed = true; } if (pressed) { ++n; switch (n) { case 1: scale = 80; break; case 2: scale = 70; break; case 3: scale = 80; break; case 4: scale = 100; break; case 5: scale = 130; break; case 6: scale = 180; break; case 7: scale = 280; break; case 8: scale = 480; break; case 9: _parent.gotoAndStop(2); } _yscale = scale; _xscale = scale; } } } instance music of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; _parent.answerScreen.STOPPIT = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.001) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _parent.gotoAndPlay(3); } } } } } } } instance answerScreen of movieClip 2001 { onClipEvent (load) { seq.embedFonts = true; answer.embedFonts = true; sequenceArray = new Array(); typeOfSequence = random(4); switch (typeOfSequence) { case 0: currentValue = random(4) + 1; multValue = random(2) + 2; while (currentValue < 50) { sequenceArray.push(currentValue); currentValue *= multValue; } sequenceArray.push(currentValue); break; case 1: currentValue = random(10) + 1; addValue = random(5) + 1; metaValue = random(3); while (currentValue < 40) { sequenceArray.push(currentValue); currentValue += addValue; addValue += metaValue; } sequenceArray.push(currentValue); break; case 2: taboo = new Array(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 39); endAll = random(20) + 20; currentValue = 1; while (currentValue < endAll) { pushIt = true; i = 0; for (;;) { if (!(pushIt && taboo[i] < currentValue)) break; if (currentValue / taboo[i] == Math.round(currentValue / taboo[i])) { pushIt = false; } ++i; } if (pushIt) { sequenceArray.push(currentValue); } ++currentValue; } break; case 3: firstValue = random(5) + 1; secondValue = firstValue + random(5); currentValue = firstValue + secondValue; sequenceArray.push(firstValue); sequenceArray.push(secondValue); while (currentValue < 40) { sequenceArray.push(currentValue); firstValue = secondValue; secondValue = currentValue; currentValue = firstValue + secondValue; } sequenceArray.push(currentValue); } while (sequenceArray.length > 8) { sequenceArray.shift(); } correctAnswer = sequenceArray.pop(); seq.text = ''; i = 0; while (i < sequenceArray.length) { seq.text += sequenceArray[i]; seq.text += ', '; ++i; } seq.text += '?'; currentAnswer = 0; n = 0; waitN = Math.round(210 / correctAnswer) + 1; answer.text = currentAnswer; } onClipEvent (enterFrame) { if (!STOPPIT) { if (n % waitN == 0) { n = 0; ++currentAnswer; answer.text = currentAnswer; } ++n; } else { if (currentAnswer == correctAnswer) { _parent.win = true; _parent.correctAnswer = correctAnswer; } else { _parent.win = false; } } } } instance of movieClip 1325 { onClipEvent (enterFrame) { if (_visible) { _alpha = _alpha - 20; if (_alpha < 1) { _visible = false; } } } } instance win of movieClip 2004 { onClipEvent (load) { if (_parent.win) { gotoAndStop(2); } else { gotoAndStop(1); } } } frame 35 { _root.gotoAndStop('end'); } } movieClip 2006 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 81; this.jumping_frame = 82; this.squatting_frame = 83; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 2008 { } button 2010 { on (press) { _root.gotoAndStop('end'); } } movieClip 2013 { } movieClip 2014 { instance of movieClip 2013 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 3 { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } frame 8 { _root.soft_step.start(0, 0); } frame 11 { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } frame 16 { _root.soft_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 2015 { instance of movieClip 2013 { onClipEvent (load) { gotoAndStop(_parent._parent.jumping_frame); } } frame 7 { stop(); } } movieClip 2016 { frame 1 { stop(); } frame 3 { play(); } frame 5 { stop(); _visible = false; } } movieClip 2017 { instance guy of movieClip 2016 { onClipEvent (enterFrame) { if (_name != 'guy' && _visible) { this.swapDepths(_y); } else { _visible = false; } } onClipEvent (load) { if (_name != 'guy' && _visible) { _rotation = 0; this.standing_frame = 1; this.jumping_frame = 2; rotation = random(360); speed = (random(10) + 5) / 10; y_speed = -speed * Math.cos(rotation * 0.0174532925199433); x_speed = speed * Math.sin(rotation * 0.0174532925199433); if (x_speed < 0) { extra_xscale = -1; } else { extra_xscale = 1; } created = 0; init_yscale = _yscale; init_xscale = _xscale; _yscale = init_yscale * 0.6; _xscale = init_xscale * 1.3 * extra_xscale; extra_y = 8.44; _y = _y + extra_y; } } onClipEvent (enterFrame) { if (_name != 'guy' && _visible) { if (x_speed < 0) { extra_xscale = -1; } else { extra_xscale = 1; } if (created < 5) { created += 1; } if (created == 3) { _yscale = init_yscale * 1.1; _xscale = init_xscale * 0.9 * extra_xscale; extra_y = -2.11; } if (created == 5) { _yscale = init_yscale; _xscale = init_xscale * extra_xscale; extra_y = 0; } } } onClipEvent (enterFrame) { if (_name != 'guy' && _visible) { _y = _y - extra_y; this.tabEnabled = false; this.onPress = function () { if (_currentframe == 1) { startDrag(this, false); gotoAndStop(2); } }; if (_currentframe == 1) { _y = _y + y_speed; _x = _x + x_speed; if (past_currentframe == 2) { y_speedd = _y - past_y; x_speedd = _x - past_x; } _y = _y + y_speedd; _x = _x + x_speedd; y_speedd *= 0.8; x_speedd *= 0.8; } if (_currentframe == 2) { _rotation = (_rotation + (_x - past_x)) / 2; } past_x = _x; past_y = _y; past_currentframe = _currentframe; all_around_border(this, 60, 580, 60, 340); _y = _y + extra_y; } } onClipEvent (mouseUp) { if (_name != 'guy' && _visible) { stopDrag(); if (_currentframe == 2) { gotoAndStop(1); _rotation = 0; } } } onClipEvent (enterFrame) { _xscale = _xscale * 1.5; _yscale = _yscale * 1.5; all_around_hit(this, _parent._parent.tram); if (yes_all_around_hit && _currentframe < 3) { gotoAndPlay(3); _parent.limit -= 1; limit += 1; s_number = _parent._parent.blood.s_number; bloodyname = 's' + s_number; initdepth = _parent._parent.blood.blood.getDepth() + s_number; _parent._parent.blood.blood.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y}); _parent._parent.blood.s_number += 1; s_number = _parent._parent.bloood.s_number; bloodyname = 's' + s_number; initdepth = _parent._parent.bloood.bloood.getDepth() + s_number; _parent._parent.bloood.bloood.duplicateMovieClip(bloodyname, initdepth, {'_x': _x, '_y': _y}); _parent._parent.bloood.s_number += 1; } _xscale = _xscale / 1.5; _yscale = _yscale / 1.5; } } } movieClip 2018 { } movieClip 2019 { instance blood of movieClip 2018 { onClipEvent (load) { _parent._parent.score_number += 1; if (_name != 'blood') { _parent._parent.splat.start(0, 0); } } } } movieClip 2029 { } movieClip 2040 { } movieClip 2041 { instance five of movieClip 2029 { onClipEvent (load) { init_scale = _xscale; y_speed = 0; x_speed = 0; } } instance four of movieClip 2029 { onClipEvent (load) { init_scale = _xscale; y_speed = 0; x_speed = 0; } } instance three of movieClip 2029 { onClipEvent (load) { init_scale = _xscale; y_speed = 0; x_speed = 0; } } instance two of movieClip 2029 { onClipEvent (load) { init_scale = _xscale; y_speed = 0; x_speed = 0; } } instance head of movieClip 2040 { onClipEvent (load) { init_scale = _xscale; rotation = 180; if (random(2) == 0) { rotation *= -1; } y_speed = 0; x_speed = 0; } onClipEvent (enterFrame) { _parent.tram_direct(this); _parent.head_x_array.unshift(_x); _parent.head_y_array.unshift(_y); _parent.head_rotation_array.unshift(rotation); if (random(90) == 0) { rotation += (random(10) - 5) / 3; } all_around_hit(this, _parent._parent.guize); ccw_hit = yes_all_around_hit; if (ccw_hit) { delta_x = _x - 320; delta_y = _y - 200; outta_rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433; deflect_y = _parent.speed * Math.cos(outta_rotation * 0.0174532925199433); deflect_x = -_parent.speed * Math.sin(outta_rotation * 0.0174532925199433); delta_x = -(x_speed + deflect_x * (random(3) + 5) / 10); delta_y = -(y_speed + deflect_y * (random(3) + 5) / 10); rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433; _parent.speed = Math.sqrt(Math.pow(delta_x, 2) + Math.pow(delta_y, 2)); _parent.speed *= 0.5; } if (rotation > 180) { rotation -= 360; } if (rotation < -180) { rotation += 360; } _parent.speed = (_parent.speed * 15 + _parent.full_speed) / 16; y_speed = (y_speed * 15 + -_parent.speed * Math.cos(rotation * 0.0174532925199433)) / 16; x_speed = (x_speed * 15 + _parent.speed * Math.sin(rotation * 0.0174532925199433)) / 16; _y = _y + y_speed; _x = _x + x_speed; } onClipEvent (enterFrame) { with (_parent.two) { _parent.tram_body(_parent.two, _parent.head); } with (_parent.three) { _parent.tram_body(_parent.three, _parent.two); } with (_parent.four) { _parent.tram_body(_parent.four, _parent.three); } with (_parent.five) { _parent.tram_body(_parent.five, _parent.four); } } } } movieClip 2042 { frame 40 { stop(); _visible = false; } } movieClip 2043 { } movieClip 2047 { } movieClip 2048 { frame 1 { stop(); } instance forw of movieClip 552 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _parent.gotoAndStop(2); } } frame 2 { splat = new Sound(); splat.attachSound('Level_Bloodsplode'); _global.all_around_hit = function (target, hitter) { with (target) { target.yes_all_around_hit = false; if (hitter.hitTest(_x, (getBounds(_parent)).yMax, true) || hitter.hitTest(_x, (getBounds(_parent)).yMin, true) || hitter.hitTest((getBounds(_parent)).xMax, _y, true) || hitter.hitTest((getBounds(_parent)).xMin, _y, true)) { target.yes_all_around_hit = true; } } }; _global.all_around_loop2 = function (target, left, wide, top, tall) { with (target) { if (_x > left + wide) { _x -= wide; } if (_x < left) { _x += wide; } if (_y > top + tall) { _y -= tall; } if (_y < top) { _y += tall; } } }; _global.all_around_border = function (target, left, right, top, bottom) { with (target) { if (target._x > right) { target._x = right; target.x_speed *= -1; } if (target._x < left) { target._x = left; target.x_speed *= -1; } if (target._y > bottom) { target._y = bottom; target.y_speed *= -1; } if (target._y < top) { target._y = top; target.y_speed *= -1; } } }; } frame 2 { stop(); } instance of movieClip 839 { onClipEvent (enterFrame) { if (next_level) { _parent.nextFrame(); } } } frame 3 { stop(); score_number = -1; score_number2 = 5; } frame 3 { _root._quality = 'MEDIUM'; } instance guize of movieClip 2017 { onClipEvent (load) { limit = 0; s_number = 1; i = 0; while (i < 5) { bloodyname = 's' + s_number; initdepth = guy.getDepth() + s_number; this.guy.duplicateMovieClip(bloodyname, initdepth, {'_alpha': 100, '_x': random(520) + 60, '_y': random(280) + 60}); s_number += 1; limit += 1; ++i; } } onClipEvent (enterFrame) { if (limit < 30 && random(30) == 0) { bloodyname = 's' + s_number; initdepth = guy.getDepth() + s_number; this.guy.duplicateMovieClip(bloodyname, initdepth, {'_alpha': 100, '_x': random(520) + 60, '_y': random(280) + 60}); s_number += 1; limit += 1; _parent.score_number2 += 1; } } } instance blood of movieClip 2019 { onClipEvent (load) { s_number = 100; } onClipEvent (enterFrame) { _visible = true; } } instance line of movieClip 1298 { onClipEvent (enterFrame) { } } instance tram of movieClip 2041 { onClipEvent (load) { tram_distance = 8; speed = 0; full_speed = 10; tram_direct = function (target) { with (target) { frame = 9 - Math.round(rotation / 22.5); if (frame <= 9) { _xscale = init_scale; } else { _xscale = -init_scale; frame = 9 + Math.round(rotation / 22.5); } gotoAndStop(frame); swapDepths(_y); all_around_loop2(target, -80, 800, -80, 560); } }; tram_body = function (target, follow) { with (target) { follow_teh_x = follow._x; follow_teh_y = follow._y; if (_y - follow_teh_y > 280) { follow_teh_y += 560; } if (_x - follow_teh_x > 400) { follow_teh_x += 800; } if (_y - follow_teh_y < -280) { follow_teh_y -= 560; } if (_x - follow_teh_x < -400) { follow_teh_x -= 800; } delta_x = _x - follow_teh_x; delta_y = _y - follow_teh_y; target.rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433; y_speed = (y_speed * 15 + -_parent.speed * Math.cos(rotation * 0.0174532925199433)) / 16; x_speed = (x_speed * 15 + _parent.speed * Math.sin(rotation * 0.0174532925199433)) / 16; _y += y_speed; _x += x_speed; keep_in_line = Math.sqrt(Math.pow(delta_x, 2) + Math.pow(delta_y, 2)) - 80; if (keep_in_line > 0) { _y -= keep_in_line * Math.cos(rotation * 0.0174532925199433); _x += keep_in_line * Math.sin(rotation * 0.0174532925199433); } tram_direct(target); } }; } onClipEvent (load) { head_x_array = new Array(); head_y_array = new Array(); head_rotation_array = new Array(); } onClipEvent (load) { rail_function = function (start_target, end_target) { start_x = start_target._x; start_y = start_target._y; end_x = end_target._x; end_y = end_target._y; if (Math.abs(start_x - end_x) < 100 && Math.abs(start_y - end_y) < 100) { end_x += 20 * Math.sin(end_target.rotation * 0.0174532925199433); end_y -= 20 * Math.cos(end_target.rotation * 0.0174532925199433); _parent.line.line.moveTo(start_x, start_y); _parent.line.line.lineTo(end_x, end_y); } }; } onClipEvent (enterFrame) { _parent.line.createEmptyMovieClip('line', 1); _parent.line.line.lineStyle(5, 0, 100); rail_function(this.head, this.two); rail_function(this.two, this.three); rail_function(this.three, this.four); rail_function(this.four, this.five); } } instance bloood of movieClip 2043 { onClipEvent (load) { s_number = 100; } } instance score of movieClip 2047 { onClipEvent (enterFrame) { score = Math.round(100 - 100 * _parent.score_number / _parent.score_number2) + '% still alive'; } } instance of movieClip 1989 { onClipEvent (load) { seconds = 59; } } instance blackout of movieClip 1402 { onClipEvent (load) { _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (end) { _visible = true; _alpha = _alpha + 10; if (_alpha >= 100) { scoreValue = Math.round(100 - 100 * _parent.score_number / _parent.score_number2); if (scoreValue * 100 > _global.highscores.utilitarianism) { _root.alert.newScore = 'morality: ' + scoreValue * 100; _global.highscores.utilitarianism = scoreValue * 100; thegame.data.highscores = _global.highscores; thegame.data.flush(); } _root.gotoAndStop('end'); } } } } } movieClip 2049 { frame 1 { function cloud_position(thing) { rotation = random(360); scale = random(50) + 25; tellTarget ('thing') { thing.init_x = _x; thing.init_y = _y; thing.radius = 10; thing.disp_x = random(radius * 2) - radius; thing.disp_y = random(radius * 2) - radius; _yscale = scale; _xscale = scale; } } function cloud_move(thing) { tellTarget ('thing') { disp_x += speed / 3; disp_y += y_speed / 3; _alpha = 100 - Math.sqrt(disp_x * disp_x + disp_y * disp_y) * 100 / radius; if (disp_x > radius) { disp_x = -radius; } if (disp_x < -radius) { disp_x = radius; } if (disp_y > radius) { disp_y = -radius; } if (disp_y < -radius) { disp_y = radius; } _x = init_x + disp_x; _y = init_y + disp_y; } } denominator = 6; } frame 2 { stop(); } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } instance of movieClip 864 { onClipEvent (load) { _parent.cloud_position(this); speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } onClipEvent (enterFrame) { _parent.cloud_move(this); } } } movieClip 2050 { frame 1 { var scream = new Sound(); scream.attachSound('Level_ORGASM'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } frame 1 { stop(); } instance of movieClip 2049 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 920) { _x = -280; } } } instance of movieClip 2049 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -430) { _x = 1060; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 16; this.jumping_frame = 17; this.squatting_frame = 18; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance music of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 2053 { } movieClip 2055 { } movieClip 2057 { } movieClip 2061 { } movieClip 2066 { } movieClip 2068 { } movieClip 2069 { } movieClip 2072 { } movieClip 2093 { } movieClip 2126 { } movieClip 2127 { instance draww of movieClip 2126 { onClipEvent (load) { if (_name == 'draww') { gotoAndStop(4); } else { gotoAndStop(random(3) + 1); } } } } button 2129 { on (press) { draw_now = true; } on (release) { draw_now = false; } } movieClip 2131 { frame 1 { stop(); } frame 4 { stop(); } frame 7 { gotoAndStop(1); } } movieClip 2139 { frame 1 { stop(); } frame 130 { stop(); _parent.panic = true; } } movieClip 2146 { } movieClip 2154 { frame 5 { stop(); } } movieClip 2156 { } movieClip 2160 { frame 1 { stop(); } frame 70 { _parent.cursor.gotoAndStop(4); } frame 140 { stop(); _parent.panic = true; } } movieClip 2162 { } movieClip 2165 { } movieClip 2170 { frame 20 { stop(); } } movieClip 2171 { instance of movieClip 1298 { onClipEvent (load) { _parent.x_diff = 0; _parent.y_diff = 0; _parent.inity = _parent._y; _parent.initx = _parent._x; ovah = true; _parent.scalee = _parent._xscale; _parent.boing_n = 0; } onClipEvent (enterFrame) { with (_parent) { if (_currentframe < 3) { if (boing_n % 2 == 0) { if (Math.abs(scalee - _xscale) > 5) { _yscale = scalee + (scalee - _xscale) * 0.6; _xscale = _yscale; } else { _yscale = scalee; _xscale = _yscale; } } boing_n += 1; boing_n %= 2; if (_parent.cursor._currentframe == 2) { ovah = true; } if (!ovah || _parent.cursor._currentframe == 5 && this.hitTest(_parent.cursor)) { if (_parent._ymouse > inity) { ovah = true; } else { x_diff = _parent._xmouse - _x; y_diff = _parent._ymouse - _y; _x = _parent._xmouse; _y = _parent._ymouse; ovah = false; } } else { if (ovah) { _x += x_diff; _y += y_diff; if (_y >= inity) { _y = inity; y_diff *= -0.5; x_diff *= 0.8; if (Math.abs(y_diff) < 2) { y_diff = 0; } } else { y_diff += 1; } if (_x < -200) { _x = -200; x_diff *= -0.8; } if (_x > 200) { _x = 200; x_diff *= -0.8; } if (this.hitTest(_parent.knap)) { if (_currentframe == 1 && _parent.knap.a) { _parent.score += 7; _parent.money += 8; } if (_currentframe == 2 && _parent.knap.b) { _parent.score += 4; _parent.money += 3; } if (_currentframe == 1 && _parent.knap.a || _currentframe == 2 && _parent.knap.b) { gotoAndStop(_currentframe + 2); count_n = 0; _parent.knap._xscale = 115; _parent.knap._yscale = 80; } } } } } else { if (count_n < 30) { count_n += 1; } else { gotoAndStop(_currentframe - 2); _x = initx; _y = inity; _yscale = scalee * 0.5; _xscale = _yscale; x_diff = 0; y_diff = 0; } } } } } } movieClip 2173 { } movieClip 2175 { frame 1 { stop(); } instance draww of movieClip 2127 { onClipEvent (load) { draw_number = 100; } } instance of movieClip 2131 { onClipEvent (load) { startDrag(this, true, -230, -150, 230, 150); } onClipEvent (enterFrame) { if (draw_now) { if (Math.abs(_x) < 40 && Math.abs(_y) < 40) { doom = true; } if (_currentframe < 4) { play(); } speed = Math.round(Math.sqrt(Math.pow(last_x - _x, 2) + Math.pow(last_y - _y, 2))) + 1; i = 0; while (i < speed) { gooname = 'draw' + _parent.draww.draw_number; initdepth = _parent.draww.draww.getDepth() + _parent.draww.draw_number; middle_x = (_x * i + last_x * (speed - i)) / speed; middle_y = (_y * i + last_y * (speed - i)) / speed; _parent.draww.draww.duplicateMovieClip(gooname, initdepth, {'_x': middle_x, '_y': middle_y}); _parent.draww.draw_number += 1; i += 5; } } else { if (doom && _parent.doom._currentframe == 1) { _parent.doom.gotoAndPlay(2); } } } onClipEvent (mouseUp) { if (_currentframe >= 4) { play(); } } onClipEvent (enterFrame) { x_cept = (_x - _y) / 2; y_cept = (_y - _x) / 2; distance = Math.sqrt(Math.pow(x_cept - _x, 2) + Math.pow(y_cept - _y, 2)); if (_y > -_x) { _rotation = -distance / 3; } else { _rotation = distance / 3; } } onClipEvent (enterFrame) { startDrag(this, true); last_x = _x; last_y = _y; } } instance of movieClip 2146 { onClipEvent (load) { n = 0; } onClipEvent (enterFrame) { if (Key.isDown(40) && _currentframe < 174) { nextFrame(); nextFrame(); nextFrame(); nextFrame(); if (_currentframe > 174) { gotoAndPlay(174); } } play(); if (n == 3) { _parent.panic = true; } if (_currentframe == 174) { n += 1; } } } instance of movieClip 2156 { onClipEvent (load) { gotoAndStop(1); _x = _parent._xmouse; _y = _parent._ymouse; all_around_border(this, -230, 230, -150, 150); } onClipEvent (enterFrame) { _x = _parent._xmouse; _y = _parent._ymouse; all_around_border(this, -230, 230, -150, 150); } } instance of movieClip 1298 { onClipEvent (enterFrame) { if (Math.abs(_parent.piece._x - _x) < 10 && Math.abs(_parent.piece._y - _y) < 10 && _parent.doom._currentframe == 1) { _parent.doom.gotoAndPlay(2); } } } instance of movieClip 1298 { onClipEvent (enterFrame) { if (Math.abs(_parent.piece._x - _x) < 10 && Math.abs(_parent.piece._y - _y) < 10 && _parent.doom._currentframe == 1) { _parent.doom.gotoAndPlay(2); } } } instance cursor of movieClip 2156 { onClipEvent (load) { gotoAndStop(2); move_x = 0; move_y = 0; _x = _parent._xmouse; _y = _parent._ymouse; all_around_border(this, -230, 230, -150, 150); } onClipEvent (enterFrame) { _x = _parent._xmouse; _y = _parent._ymouse; all_around_border(this, -230, 230, -150, 150); } onClipEvent (mouseDown) { if (_currentframe == 2) { if (this.hitTest(_parent.piece) && _parent.doom._currentframe == 1) { gotoAndStop(3); _parent.piece._visible = false; } else { gotoAndStop(5); } } } onClipEvent (mouseUp) { if (_currentframe == 3) { gotoAndStop(2); _parent.piece._visible = true; _parent.piece._x = _x; _parent.piece._y = _y + 10; } else { if (_currentframe == 5) { gotoAndStop(2); } } } } instance knap of movieClip 2165 { onClipEvent (load) { a = true; b = true; } onClipEvent (enterFrame) { _xscale = (_xscale + 100) / 2; _yscale = (_yscale + 100) / 2; if (17 - _parent.score < 7) { a = false; } if (17 - _parent.score < 4) { b = false; } } } instance a of movieClip 2171 { onClipEvent (load) { gotoAndStop(1); } } instance b of movieClip 2171 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 2173 { onClipEvent (load) { initx = _x; inity = _y; } onClipEvent (enterFrame) { _x = initx + (random(7) - 3) / 3; _y = inity + (random(7) - 3) / 3; all_around_hit(this, _parent.a); if (_parent._parent.death._currentframe == 1) { if (this.hitTest(_parent.a) || this.hitTest(_parent.b)) { _parent._parent.death.gotoAndPlay(2); } if (this.hitTest(_parent.cursor) && _parent.cursor._currentframe == 5) { _parent._parent.death.gotoAndPlay(2); } } } } instance cursor of movieClip 2156 { onClipEvent (load) { gotoAndStop(2); _x = _parent._xmouse; _y = _parent._ymouse; all_around_border(this, -230, 230, -150, 150); } onClipEvent (enterFrame) { _x = _parent._xmouse; _y = _parent._ymouse; all_around_border(this, -230, 230, -150, 150); } onClipEvent (mouseDown) { gotoAndStop(5); } onClipEvent (mouseUp) { gotoAndStop(2); } } } movieClip 2182 { frame 1 { stop(); } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } frame 30 { douche = true; stop(); } } movieClip 2188 { frame 1 { stop(); } frame 9 { _parent.nextFrame(); } } movieClip 2190 { instance of movieClip 2093 { onClipEvent (enterFrame) { _alpha = random(10) + 10; } } frame 55 { stop(); _parent.pathe.nextFrame(); } instance of movieClip 2175 { onClipEvent (load) { gotoAndStop(_parent.game_frame); panic = false; mov = 1; initx = _x; inity = _y; score = 0; money = 0; } onClipEvent (enterFrame) { if (panic) { mov *= -1.1; _y = inity + mov; _x = initx + random(Math.abs(mov)) - Math.abs(mov) / 2; if (mov > 20 && _parent.fire._currentframe == 1) { _parent.fire.gotoAndPlay(2); } } if (_currentframe == 4) { _parent.score.text = score; _parent.money.text = money; } } } instance fire of movieClip 2182 { onClipEvent (load) { inity = _parent._y; y_speed = 0; grav = 4; } onClipEvent (enterFrame) { if (_currentframe > 1) { _yscale = _yscale * 1.02; _xscale = _yscale * 1.02; if (douche) { Mouse.show(); _parent._y -= y_speed; y_speed += grav; if (_parent._y < -200) { _parent._parent.nextFrame(); } } } } } instance of movieClip 1298 { onClipEvent (enterFrame) { if (_parent._xmouse > -230 && _parent._xmouse < 230 && _parent._ymouse > -150 && _parent._ymouse < 150) { Mouse.hide(); } else { Mouse.show(); } } } frame 56 { _parent.nextFrame(); Mouse.show(); } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1254 { onClipEvent (load) { gotoAndPlay(random(14)); } } instance of movieClip 1402 { onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 5; } } } } movieClip 2191 { frame 1 { stop(); var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 2061 { onClipEvent (load) { gotoAndPlay(random(30)); } onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 2061 { onClipEvent (load) { gotoAndPlay(random(30)); } onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance pathe of movieClip 2066 { onClipEvent (load) { stop(); } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 13; this.jumping_frame = 14; this.squatting_frame = 15; stopittheren = 0; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it && stop_it_there) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { if (Key.isDown(38) && y_speed < 0) { } _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (this._x > _parent.next_wall._x) { stop_it_there = false; } else { stop_it_there = true; } if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37) && stop_it_there) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39) && stop_it_there) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40) && stop_it_there) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } if (hit_ground && !stop_it_there) { this.gotoAndStop(1); } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; if (!stop_it_there) { if (stopittheren == 20) { _parent.nextFrame(); stopittheren = 21; } else { if (stopittheren < 20) { stopittheren += 1; } } } } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_x > 460) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _root._quality = 'LOW'; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; if (shake_decay < 0.3) { _root._quality = 'HIGH'; _root.gotoAndStop('end'); } } } } } } onClipEvent (enterFrame) { if (_x < 145) { _x = 145; x_speed = 0; } } } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } instance of movieClip 2190 { onClipEvent (load) { game_frame = 1; } } frame 3 { player.stopittheren = 0; } instance of movieClip 2190 { onClipEvent (load) { game_frame = 2; } } frame 5 { player.stopittheren = 0; } instance of movieClip 2190 { onClipEvent (load) { game_frame = 3; } } frame 7 { player.stopittheren = 0; } instance of movieClip 2190 { onClipEvent (load) { game_frame = 4; } } frame 9 { player.stopittheren = 0; } } movieClip 2196 { } movieClip 2198 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 61; this.jumping_frame = 62; this.squatting_frame = 63; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } instance player2 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 64; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player._y > _y + 10 && !FOREVERDRIVE) { FOREVERDRIVE = true; if (_parent.player._x > _x) { ForeverLeft = true; left_is_pressed = false; right_is_pressed = true; } else { ForeverRight = true; right_is_pressed = false; left_is_pressed = true; } } else { if (ForeverLeft) { left_is_pressed = false; right_is_pressed = true; } else { if (ForeverRight) { right_is_pressed = false; left_is_pressed = true; } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow2._x = _x; _parent.player_shadow2._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow2._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } instance player3 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 69; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player2._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player2._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player2._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player2._y > _y + 10) { if (_parent.player2._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow3._x = _x; _parent.player_shadow3._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow3._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } instance player4 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 70; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player3._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player3._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player3._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player3._y > _y + 10) { if (_parent.player3._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow4._x = _x; _parent.player_shadow4._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow4._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } instance player5 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 67; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player4._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player4._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player4._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player4._y > _y + 10) { if (_parent.player4._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow5._x = _x; _parent.player_shadow5._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow5._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } instance player6 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 68; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player5._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player5._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player5._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player5._y > _y + 10) { if (_parent.player5._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow6._x = _x; _parent.player_shadow6._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow6._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } instance player7 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 66; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player6._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player6._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player6._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player6._y > _y + 10) { if (_parent.player6._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow7._x = _x; _parent.player_shadow7._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow7._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } instance player8 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 65; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player7._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player7._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player7._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player7._y > _y + 10) { if (_parent.player7._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow8._x = _x; _parent.player_shadow8._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow8._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } instance player9 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 72; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player8._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player8._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player8._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player8._y > _y + 10) { if (_parent.player8._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow9._x = _x; _parent.player_shadow9._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow9._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } instance player10 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 71; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player9._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player9._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player9._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player9._y > _y + 10) { if (_parent.player9._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } if (_x < 110) { _x = 110; } if (_x > 530) { _x = 530; } if (_parent.player9._y > _y + 10) { left_is_pressed = false; right_is_pressed = false; if (_currentframe == 1) { endAll = true; } } if (endAll) { if (!godwhatthefuck) { godwhatthefuck = true; countDOOM = 80; } else { countDOOM -= 1; if (countDOOM <= 0) { _root.gotoAndStop('CUTSCENE_HAMLET'); } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow10._x = _x; _parent.player_shadow10._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow10._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } } movieClip 2200 { } movieClip 2201 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('QuittinPalin'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 49; this.jumping_frame = 50; this.squatting_frame = 51; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); _parent.rage._visible = true; } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.002) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance rage of movieClip 2200 { onClipEvent (load) { _visible = false; } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 2204 { } movieClip 2205 { instance walls of movieClip 870 { onClipEvent (load) { _visible = false; } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 10; this.jumping_frame = 11; this.squatting_frame = 12; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { if (Key.isDown(38) && y_speed < 0) { } _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } } movieClip 2208 { } movieClip 2210 { } movieClip 2212 { } movieClip 2214 { } movieClip 2215 { frame 1 { function cloud_position(thing) { rotation = random(360); distance = random(150); scale = random(50) + 25; with (thing) { _y = distance * 0.4 * Math.cos(rotation * 0.0174532925199433); _x = distance * Math.sin(rotation * 0.0174532925199433); _yscale = scale; _xscale = _yscale; } } function cloud_move(thing) { with (thing) { edge = 150 * Math.sqrt(1 - _y * _y / 3600); y_edge = 60 * Math.sqrt(1 - _x * _x / 22500); _x += speed; _y += y_speed; _alpha = edge - Math.abs(_x); second_alpha = (y_edge - Math.abs(_y)) / 0.4; if (_alpha > second_alpha) { _alpha = second_alpha; } if (_alpha <= 0) { _x = -edge; _y = -y_edge; speed = (random(5) + 1) / _parent.denominator; y_speed = (random(5) + 1) / _parent.denominator * 2; } } } denominator = 6; } frame 2 { stop(); } instance of movieClip 2208 { onClipEvent (load) { speed = random(10) + 1; if (random(2)) { speed *= -1; } } onClipEvent (enterFrame) { _rotation = _rotation + speed; } } instance of movieClip 2210 { onClipEvent (load) { speed = random(10) + 1; if (random(2)) { speed *= -1; } } onClipEvent (enterFrame) { _rotation = _rotation + speed; } } instance of movieClip 2212 { onClipEvent (load) { speed = random(10) + 1; if (random(2)) { speed *= -1; } } onClipEvent (enterFrame) { _rotation = _rotation + speed; } } instance of movieClip 2214 { onClipEvent (load) { speed = random(10) + 1; if (random(2)) { speed *= -1; } n = 0; } onClipEvent (enterFrame) { _rotation = 50 * Math.sin(n); n += speed / 30; } } } movieClip 2217 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 2215 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 2215 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } } movieClip 2220 { } movieClip 2222 { } movieClip 2223 { instance s of movieClip 2222 { onClipEvent (load) { if (_name == 's') { s_number = 1; rotation = -135; scale = _xscale; n = 0; while (n < 50) { bloodyname = 's' + s_number; initdepth = this.getDepth() + s_number; this.duplicateMovieClip(bloodyname, initdepth, {'_alpha': 100, '_x': random(750) - 25, '_y': random(400) - 25, 'scale': scale + (random(20) - 10) / scale, 'rotation': rotation + random(20) - 10}); s_number += 1; n += 1; } } else { _rotation = random(360); _yscale = scale; _xscale = scale; start_waver = random(314) / 50; waver = random(10) / 100; speed = scale / 3; rotate = random(20) - 10; } } onClipEvent (enterFrame) { if (_name != 's') { frotation = rotation + Math.sin(start_waver); start_waver += waver; _y = _y - speed * Math.cos(frotation * 0.0174532925199433); _x = _x + speed * Math.sin(frotation * 0.0174532925199433); _rotation = _rotation + rotate; if (_y > 455) { _y = -25; } if (_y < -25) { _y = 455; } if (_x > 705) { _x = -25; } if (_x < -25) { _x = 705; } } } } } movieClip 2224 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player5 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 28; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_visible) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player4._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player4._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player4._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player4._y > _y + 10) { if (_parent.player4._x > _x) { left_is_pressed = false; right_is_pressed = true; } else { right_is_pressed = false; left_is_pressed = true; } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow5._x = _x; _parent.player_shadow5._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow5._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { if (!iDiedForSure) { iDiedForSure = true; --_parent.deathCount; } } } } } } } } } } instance player4 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 25; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_visible) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } down_is_pressed = false; if (_parent.player._y < _y - 40) { } else { up_is_pressed = false; } if (_parent.player._x < _x - 50) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_parent.player._y > _y + 10 && !FOREVERDRIVE) { FOREVERDRIVE = true; if (_parent.player._x > _x) { ForeverLeft = true; left_is_pressed = false; right_is_pressed = true; } else { ForeverRight = true; right_is_pressed = false; left_is_pressed = true; } } else { if (ForeverLeft) { left_is_pressed = false; right_is_pressed = true; } else { if (ForeverRight) { right_is_pressed = false; left_is_pressed = true; } } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (down_is_pressed) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (down_is_pressed) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } } onClipEvent (enterFrame) { if (_visible) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow4._x = _x; _parent.player_shadow4._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow4._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { if (!iDiedForSure) { iDiedForSure = true; --_parent.deathCount; } } } } } } } } } } instance player of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 22; this.jumping_frame = 23; this.squatting_frame = 24; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.05) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { if (!iDiedForSure) { iDiedForSure = true; --_parent.deathCount; } } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } } instance of movieClip 2224 { onClipEvent (load) { deathCount = 3; } onClipEvent (enterFrame) { if (deathCount == 0) { _root.gotoAndStop('end'); } } } movieClip 2232 { } movieClip 2348 { } movieClip 2438 { } movieClip 2622 { } movieClip 2769 { } button 2790 { on (press) { _root.alert.newUnlock = 'piece of cake'; _global.unlockables.cake = true; thegame.data.unlockables = _global.unlockables; thegame.data.flush(); } } movieClip 3017 { frame 2615 { _root.gotoAndStop('end'); } } movieClip 3019 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance walls of movieClip 870 { onClipEvent (load) { _visible = false; } } instance player3 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 89; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow3._x = _x; _parent.player_shadow3._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow3._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } instance player4 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 88; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow4._x = _x; _parent.player_shadow4._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow4._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } instance player2 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 535 && _x > 105 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 87; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow2._x = _x; _parent.player_shadow2._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow2._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } instance player of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 176 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 84; this.jumping_frame = 85; this.squatting_frame = 86; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } } movieClip 3020 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance player2 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 58; this.jumping_frame = 59; this.squatting_frame = 60; up_is_pressed = false; left_is_pressed = false; right_is_pressed = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_is_pressed && !right_is_pressed) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } if (_parent.player._y < _y - 40) { up_is_pressed = true; } else { up_is_pressed = false; } if (_parent.player._x < _x - 40) { left_is_pressed = true; } else { left_is_pressed = false; } if (_parent.player._x > _x + 40) { right_is_pressed = true; } else { right_is_pressed = false; } if (_x < 185) { _x = 185; } if (_x > 455) { _x = 455; } if (_parent.player._y > _y + 10) { left_is_pressed = false; right_is_pressed = false; if (_currentframe == 1) { endAll = true; } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { hittyTest(); if (up_is_pressed && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (!endAll) { if (!fall_off_edge) { if (left_is_pressed && right_is_pressed) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (left_is_pressed) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (right_is_pressed) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!left_is_pressed && !right_is_pressed) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (!endAll) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow2._x = _x; _parent.player_shadow2._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow2._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } } movieClip 3022 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 31; this.jumping_frame = 32; this.squatting_frame = 33; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _root.gotoAndStop('end'); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance music of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 3023 { instance money of movieClip 1670 { onClipEvent (load) { if (_name != 'money') { back_and_forth = random(63) / 10; deviant = random(5) - 2; grav = 1.5 + random(10) / 10; movement = 0.05 + random(10) / 100; _y = _y + grav; _x = _x + Math.sin(back_and_forth); back_and_forth += movement; _x = _x + deviant / 2; _rotation = 45 * Math.cos(back_and_forth); } } onClipEvent (enterFrame) { if (_visible && _currentframe == 1) { if (_name != 'money') { _y = _y + grav; _x = _x + Math.sin(back_and_forth); back_and_forth += movement; _x = _x + deviant / 2; _rotation = 45 * Math.cos(back_and_forth); } if (_y >= 279) { if (_x > 175 && 465 > _x) { grav = 0; movement *= 0.8; deviant *= 0.8; _alpha = _alpha - 2; _x = _x - Math.sin(back_and_forth); } } if (_alpha <= 0 || _y > 420) { _visible = false; gotoAndStop(3); } all_around_hit(this, _parent._parent.player); if (yes_all_around_hit) { gotoAndStop(2); _parent._parent.score_number += 1; } } } } } movieClip 3026 { } movieClip 3037 { frame 30 { score = '$' + _parent.score_number * 1000; } frame 141 { bonus = '$' + _parent.score_number; } frame 280 { total = '$' + _parent.score_number * 1001; i; } frame 281 { if (_parent.score_number * 1001 > _global.highscores.aig) { _root.alert.newScore = 'aig bonuses: ' + _parent.score_number * 1001; _global.highscores.aig = _parent.score_number * 1001; thegame.data.highscores = _global.highscores; thegame.data.flush(); } } frame 310 { stop(); } instance of movieClip 839 { onClipEvent (enterFrame) { if (next_level) { _root.gotoAndStop('end'); } } } } movieClip 3038 { frame 1 { stop(); score_number = 0; } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); var ring = new Sound(sfx4); ring.attachSound('Level_Loud_Step'); ring.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1334 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 7; this.jumping_frame = 8; this.squatting_frame = 9; wait_til_black = 0; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { if (Key.isDown(38) && y_speed < 0) { } _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping && (_currentframe == 1 || _currentframe == 2)) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; if (wait_til_black >= 30) { _parent.blackout.end = true; } else { wait_til_black += 1; } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance money of movieClip 3023 { onClipEvent (load) { s_number = 100; n = 0; } onClipEvent (enterFrame) { if (n % 6 == 0) { bloodyname = 'money' + s_number; initdepth = money.getDepth() + s_number; money.duplicateMovieClip(bloodyname, initdepth, {'_x': 175 + random(290)}); s_number += 1; n = 0; } n += 1; } } instance score of movieClip 3026 { onClipEvent (enterFrame) { score = '$' + _parent.score_number * 1000; } onClipEvent (load) { myText.embedFonts = true; } } instance of movieClip 1989 { onClipEvent (load) { seconds = 29; } } instance blackout of movieClip 1402 { onClipEvent (load) { _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (end) { _visible = true; _alpha = _alpha + 10; if (_alpha >= 100) { _parent.gotoAndStop(2); } } } } } movieClip 3045 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance player of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; _x = _parent.quatchi_x; this.standing_frame = 90; this.jumping_frame = 91; this.squatting_frame = 92; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _parent.nextFrame(); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } frame 2 { play(); } frame 10 { stop(); } instance player3 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; _x = _parent.quatchi_x; this.standing_frame = 37; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow3._x = _x; _parent.player_shadow3._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow3._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } instance player of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; _x = _parent.sumi_x; this.standing_frame = 34; this.jumping_frame = 35; this.squatting_frame = 36; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _parent.nextFrame(); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } frame 11 { play(); } frame 20 { stop(); } instance player3 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 42; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow3._x = _x; _parent.player_shadow3._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow3._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } instance player2 of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 41; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (!left_key_down && !right_key_down) { if (anim_walk._currentframe == 3 || anim_walk._currentframe == 11) { this.gotoAndStop(1); } } } RANDOM_WAIT = 120; if (random(RANDOM_WAIT) == 0) { left_key_down = true; } if (random(RANDOM_WAIT) == 0) { right_key_down = true; } if (random(RANDOM_WAIT) < 10) { left_key_down = false; right_key_down = false; } if (_x < 240) { left_key_down = false; } if (_x > 400) { right_key_down = false; } } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (left_key_down && right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } else { if (left_key_down) { flip = -1; if (hit_ground) { this.gotoAndStop(2); x_speed -= walking_speed; } else { x_speed -= walking_speed; } } if (right_key_down) { flip = 1; if (hit_ground) { this.gotoAndStop(2); x_speed += walking_speed; } else { x_speed += walking_speed; } } if (!left_key_down && !right_key_down) { if (hit_ground) { this.gotoAndStop(1); } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow2._x = _x; _parent.player_shadow2._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow2._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } instance player of movieClip 1961 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_x < 463 && _x > 175 && _y < 285 && _y > 280) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 38; this.jumping_frame = 39; this.squatting_frame = 40; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } else { _parent.nextFrame(); } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } frame 21 { play(); } frame 70 { _root.gotoAndStop('end'); } } movieClip 3047 { } movieClip 3048 { instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 1220) { _x = -580; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -630) { _x = 1260; } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } } movieClip 3049 { frame 1 { _parent.pseudo_rotate = 0; } instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.standing_frame); } } frame 3 { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } frame 3 { _parent.pseudo_rotate = -6; } frame 5 { _parent.pseudo_rotate = -10.8; } frame 7 { _parent.pseudo_rotate = -12.8; } frame 8 { _parent._parent.soft_step.start(0, 0); } frame 9 { _parent.pseudo_rotate = 0; } frame 11 { if (Key.isDown(37) || Key.isDown(39)) { play(); } else { _parent.gotoAndStop(1); } } frame 11 { _parent.pseudo_rotate = 8.800000000000001; } frame 13 { _parent.pseudo_rotate = 12.8; } frame 15 { _parent.pseudo_rotate = 14.6; } frame 16 { _parent._parent.soft_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 3050 { instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.jumping_frame); } } frame 7 { stop(); } } movieClip 3051 { frame 1 { _parent.pseudo_rotate = 0; } instance of movieClip 1178 { onClipEvent (load) { gotoAndStop(_parent._parent.squatting_frame); } } frame 3 { _parent.pseudo_rotate = -6; } frame 5 { _parent.pseudo_rotate = -10.8; } frame 7 { _parent.pseudo_rotate = -12.8; } frame 8 { _parent._parent.softer_step.start(0, 0); } frame 9 { _parent.pseudo_rotate = 0; } frame 11 { _parent.pseudo_rotate = 8.800000000000001; } frame 13 { _parent.pseudo_rotate = 12.8; } frame 15 { _parent.pseudo_rotate = 14.6; } frame 16 { _parent._parent.softer_step.start(0, 0); } frame 17 { gotoAndPlay(1); } } movieClip 3052 { frame 1 { stop(); } } movieClip 3053 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance player of movieClip 3052 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_y - _parent.backdrop._y > 0 && _y - _parent.backdrop._y < 5 && Math.abs(_x - _parent.backdrop._x) < 145.9) { it_hit_it = true; _parent.backdrop._y = 17.6; _y = 19.1; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _parent.backdrop._y += 1; } ++i; } _parent.backdrop._y -= 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; } onClipEvent (enterFrame) { if (_parent._visible) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { if (Key.isDown(38) && y_speed < 0) { } _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.backdrop.dust._x = -_parent.backdrop._x + _x; _parent.backdrop.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } } onClipEvent (enterFrame) { if (_parent._visible) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } } onClipEvent (enterFrame) { if (_parent._visible) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.backdrop.player_shadow._x = -_parent.backdrop._x + _x; _parent.backdrop.player_shadow._alpha = 120 - _parent.backdrop._y; if (_y - _parent.backdrop._y > 500) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y - _parent.backdrop._y > 1000) { if (!past_death) { past_death = true; past_death_n = 0; _parent._parent.gotoAndStop(2); } else { if (_rotation < 0) { _parent._parent.splat.scale_it = -1; } else { _parent._parent.splat.scale_it = 1; } past_death_n += 1; if (past_death_n == 4) { _parent.crunch.start(0, 0); _parent._visible = false; } } _parent._parent.splat._rotation = -_rotation; _parent._parent.splat._x = _x; _parent._parent.splat._y = _y; } } } } } onClipEvent (load) { my_inity = _y; pseudo_rotate = 0; } onClipEvent (enterFrame) { _parent.backdrop._y -= _y - my_inity; _y = my_inity; if (_currentframe != 2 && _currentframe != 5) { pseudo_rotate = 0; } _y = _y - y_speed; _x = _x - x_speed; _parent.backdrop._y -= y_speed; _parent.backdrop._x -= x_speed; _parent._rotation = -_rotation - pseudo_rotate * _xscale / Math.abs(_xscale); } } } movieClip 3063 { frame 9 { stop(); } } movieClip 3081 { instance of movieClip 3063 { onClipEvent (load) { _xscale = _parent.scale_it * 100; } } frame 81 { stop(); _root.gotoAndStop('end'); } } movieClip 3082 { frame 1 { stop(); } instance of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } instance splat of movieClip 3081 { onClipEvent (load) { shake_decay = 1; } onClipEvent (enterFrame) { if (_currentframe > 3) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } movieClip 3146 { frame 751 { _root.gotoAndStop('end'); } } movieClip 3147 { frame 56 { _parent.nextFrame(); } frame 958 { stop(); } } movieClip 3148 { frame 1 { stop(); } frame 1 { var scream = new Sound(); scream.attachSound('Level_Scream'); var crunch = new Sound(); crunch.attachSound('Level_Crunch'); var soft_step = new Sound(sfx1); soft_step.attachSound('Level_Step'); var softer_step = new Sound(sfx2); softer_step.attachSound('Level_Step'); softer_step.setVolume(50); var loud_step = new Sound(sfx3); loud_step.attachSound('Level_Loud_Step'); loud_step.setVolume(150); } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x + 1.4; if (_x > 820) { _x = -180; } } } instance of movieClip 865 { onClipEvent (enterFrame) { _x = _x - 2; if (_x < -230) { _x = 860; } } } instance player of movieClip 1184 { onClipEvent (load) { function hittyTest() { _yscale = 5; _xscale = 5; if (_parent.walls.hitTest(_x, (getBounds(_parent)).yMax, true) || _parent.walls.hitTest(_x, (getBounds(_parent)).yMin, true) || _parent.walls.hitTest((getBounds(_parent)).xMax, _y, true) || _parent.walls.hitTest((getBounds(_parent)).xMin, _y, true)) { it_hit_it = true; } else { it_hit_it = false; } _yscale = scale; _xscale = scale; } function up_ground() { hit_ground = false; hittyTest(); if (it_hit_it) { _yscale = 5; _xscale = 5; i = 0; while (i < 10) { hittyTest(); if (!it_hit_it) { i = 10; } else { _y = _y - 1; } ++i; } _y = _y + 1; hit_ground = true; y_speed = 0; } _yscale = scale; _xscale = scale; } anim_stand.gotoAndStop(5); x_speed = 0; y_speed = 0; scale = _xscale; walking_speed = 0.8; grav = 2; this.standing_frame = 1; this.jumping_frame = 2; this.squatting_frame = 3; } onClipEvent (enterFrame) { if (!fall_off_edge) { hittyTest(); if (Key.isDown(38) && it_hit_it) { y_speed = -20; jumping = true; hit_ground = false; this.gotoAndStop(3); } y_speed += grav; _y = _y + y_speed; up_ground(); hittyTest(); if (jumping) { if (!it_hit_it) { _rotation = -(y_speed * x_speed) / 5; } else { _rotation = 0; jumping = false; _parent.dust._x = _x; _parent.dust.gotoAndPlay(1); _parent.loud_step.start(0, 0); } } } } onClipEvent (enterFrame) { if (!fall_off_edge) { if (Key.isDown(37) && Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } else { if (Key.isDown(37)) { flip = -1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed -= walking_speed / 2; } else { this.gotoAndStop(2); x_speed -= walking_speed; } } else { x_speed -= walking_speed; } } if (Key.isDown(39)) { flip = 1; if (hit_ground) { if (Key.isDown(40)) { this.gotoAndStop(5); x_speed += walking_speed / 2; } else { this.gotoAndStop(2); x_speed += walking_speed; } } else { x_speed += walking_speed; } } if (!Key.isDown(37) && !Key.isDown(39)) { if (hit_ground) { if (Key.isDown(40)) { if (_currentframe == 5) { this.gotoAndStop(4); anim_duck.gotoAndStop(6); } else { this.gotoAndStop(4); } } else { this.gotoAndStop(1); } } } } _x = _x + x_speed; x_speed *= 0.8; _xscale = _xscale * flip; } } onClipEvent (enterFrame) { if (fall_off_edge) { y_speed += grav; _y = _y + y_speed; _x = _x + x_speed; _rotation = _rotation + x_speed; } if (!fall_off_edge && !hit_ground && !jumping) { if (_currentframe == 1 || _currentframe == 2) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(1); } else { if (_currentframe == 4 || _currentframe == 5) { fall_off_edge = true; y_speed = -10; this.gotoAndStop(4); anim_duck.gotoAndStop(6); } } } _parent.player_shadow._x = _x; _parent.player_shadow._alpha = _y - 133.3; if (_y > 300) { _parent.player_shadow._alpha = 0; if (!past_screen) { past_screen = true; _parent.scream.start(0, 0); } else { if (_y > 700) { if (!past_death) { _parent.gotoAndStop(2); past_death = true; shake_decay = 1; _parent.crunch.start(0, 0); } else { if (shake_decay > 0.01) { shake_rotate = random(40) - 20; shake_y = random(40) - 20; shake_x = random(40) - 20; _parent.camera._rotation = shake_rotate * shake_decay; _parent.camera._y = 200 + shake_y * shake_decay; _parent.camera._x = 320 + shake_x * shake_decay; shake_decay *= 0.8; } } } } } } } instance dust of movieClip 882 { onClipEvent (load) { gotoAndStop(20); } onClipEvent (enterFrame) { if (_currentframe < 20) { play(); } } } instance music of movieClip 406 { onClipEvent (load) { gotoAndPlay(735); } } } movieClip 3168 { } movieClip 3181 { } movieClip 3261 { frame 1359 { _root.gotoAndStop('end'); } } movieClip 3272 { } movieClip 3290 { frame 1 { stop(); } frame 12 { gotoAndStop(1); } } movieClip 3292 { instance of movieClip 3290 { onClipEvent (load) { n = 0; gotoAndStop(random(11) + 1); } onClipEvent (enterFrame) { ++n; if (n < 150) { if (_alpha < 100) { _alpha = _alpha + 5; } } else { if (_alpha > 0) { _alpha = _alpha - 5; } else { n = 0; nextFrame(); } } } } } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('Unlockables'); } } movieClip 3354 { frame 309 { _root.gotoAndStop('UNLOCKABLES'); } } instance of movieClip 409 { onClipEvent (load) { colour = new Color(this); colour.setRGB('0x' + (random(255)).toString(16) + (random(255)).toString(16) + (random(255)).toString(16)); } } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('Unlockables'); } } movieClip 3366 { instance of movieClip 158 { onClipEvent (load) { if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) { _xscale = _xscale * -1; } } } instance of movieClip 108 { onClipEvent (load) { gotoAndStop(random(4) + 1); if (_global.censorsOff) { _visible = false; } } } instance of movieClip 158 { onClipEvent (load) { if (_parent._xscale < 0 || _parent._parent._xscale < 0 || _parent._parent._parent._xscale < 0) { _xscale = _xscale * -1; } } } frame 300 { _root.gotoAndStop('UNLOCKABLES'); } } instance of movieClip 409 { onClipEvent (load) { colour = new Color(this); colour.setRGB('0x' + (random(255)).toString(16) + (random(255)).toString(16) + (random(255)).toString(16)); } } movieClip 3372 { frame 15 { stop(); _global.censorsOff = true; } frame 29 { gotoAndStop(1); _global.censorsOff = false; } } movieClip 3373 { instance of movieClip 3372 { onClipEvent (load) { if (!_global.censorsOff) { this.gotoAndStop(1); } else { this.gotoAndStop(15); } } onClipEvent (press) { if (_currentframe == 1) { this.gotoAndPlay(2); } else { if (_currentframe == 15) { this.gotoAndPlay(16); } else { this.play(); } } } } } instance of movieClip 3373 { onClipEvent (enterFrame) { thegame.data.censorOff = _global.censorOff; thegame.data.flush(); } } instance of movieClip 501 { onClipEvent (load) { initscale = _xscale; wanted_scale = initscale; } onClipEvent (enterFrame) { if (_currentframe != 1) { wanted_scale = initscale; } _yscale = (_xscale * 2 + wanted_scale) / 3; _xscale = (_xscale * 2 + wanted_scale) / 3; } onClipEvent (rollOver) { wanted_scale = initscale * 1.2; } onClipEvent (rollOut) { wanted_scale = initscale; } onClipEvent (press) { _root.gotoAndStop('Unlockables'); } } movieClip 3377 { }




http://swfchan.com/34/168710/info.shtml
Created: 8/8 -2019 20:58:17 Last modified: 8/8 -2019 20:58:17 Server time: 19/04 -2024 13:57:52