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

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

GOD DAMN IT'S A NICE FUCKING DAY TODAY.swf

This is the info page for
Flash #61706

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


Text
THE ORIGINAL VERSION OF THIS TEXTURE WAS MADE BY A GUY NAMED BITTBOX ON FLICKR

MISCELLANEOUS CREDITS:
TEXTURE: BITTBOX from FLICKR
MUSIC:  BATTLESHIELD from NEWGROUNDS AUDIO PORTAL
JINNJUICE from NEWGROUNDS AUDIO PORTAL
CONCEPT: PRGUITARMAN from LOL_COMICS.LIVEJOURNAL.COM

TITLE: GOD DAMN IT'S A NICE FUCKING DAY TODAY
BY: SCOTTMALE24

NEWGROUNDS API CONNECTOR

Place this movieclip on your root timeline.
This clip will automatically hide itself unless neeeded.
(Error messages appear on frames 2 and 3)

NOTICE!

You are not logged in!
As a result, any medals you unlock in this game will NOT
be saved to your profile.

ERROR!

We could not connect to the Newgrounds gateway.
If you are using an ad-blocking application, you may need
to disable it to unlock any medals you earn in this game.

WHY AREN'T YOU
OUTSIDE?

go outside or the sun will FUCKING RAPE YOUR
SHIT

Medal Popup
Place this clip on the root of
your movie,
spanning any frames where
medals are
called. (this clip is hidden)

medal name

MEDAL GET!

100pts

ActionScript [AS1/AS2]

Frame 1
_root.API_Settings = {movie_id:7281, enc_key:"59z4IdM9LAUMZgfHGKQV83pGiiZkl8Rb", debug_mode:false, movie_version:""};
Instance of Symbol 79 MovieClip in Frame 1
onClipEvent (load) { this.swapDepths(100000001); }
Frame 24
bgSound = new Sound(this); bgSound.attachSound("anger"); achieveSound = new Sound(this); achieveSound.attachSound("achievement");
Frame 545
bgSound.start(0, 99);
Frame 592
stop(); lasers = false; groundfire = false; i = 50;
Instance of Symbol 136 MovieClip "sun" in Frame 592
onClipEvent (load) { maxspeed = 10; yspeed = 0; xspeed = 0; } onClipEvent (enterFrame) { if ((Key.isDown(38) && (_y > 120)) && (yspeed < maxspeed)) { yspeed = yspeed + 2; } if ((yspeed > -10) && (_y < 260)) { yspeed--; } else { yspeed++; } if ((Key.isDown(39) && (xspeed < maxspeed)) && (_x < 500)) { xspeed++; } else if ((Key.isDown(37) && (xspeed > (-maxspeed))) && (_x > 100)) { xspeed--; } xspeed = xspeed * 0.92; _x = (_x + xspeed); _y = (_y - yspeed); _root.background.gotoAndStop(Math.round(this._y - 80)); _root.eyebeams._x = _x + 6; _root.eyebeams._y = _y - 15; }
Instance of Symbol 154 MovieClip "eyebeams" in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (Key.isDown(32)) { _root.lasers = true; } else { _root.lasers = false; } }
Instance of Symbol 159 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (Key.isDown(37)) { this.play(); } }
Instance of Symbol 161 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (Key.isDown(38)) { this.play(); } }
Instance of Symbol 163 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (Key.isDown(39)) { this.play(); } }
Instance of Symbol 165 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (Key.isDown(32)) { this.play(); } }
Instance of Symbol 172 MovieClip "manleft" in Frame 592
onClipEvent (load) { if (_name == "manleft") { _x = 1000; } else { _x = (_root.spawnx - 5); _y = _root.spawny; } } onClipEvent (enterFrame) { if (_name != "manleft") { _x = (_x - 2); _y = (_y+1); _y = (_y+1); } if (this._y > 500) { this.removeMovieClip(); } }
Instance of Symbol 172 MovieClip "manright" in Frame 592
onClipEvent (load) { if (_name == "manright") { _x = 1000; } else { _x = (_root.spawnx + 5); _y = _root.spawny; } } onClipEvent (enterFrame) { if (_name != "manright") { _x = (_x + 2); _y = (_y+1); _y = (_y+1); } if (this._y > 500) { this.removeMovieClip(); } }
Instance of Symbol 179 MovieClip "fire" in Frame 592
onClipEvent (enterFrame) { if (_root.groundfire == true) { _x = ((15 + _root.sun._x) + ((this._y - _root.sun._y) / 1.732051)); } else { _x = -1000; } }
Instance of Symbol 192 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this.hitTest(_root.fire.hit)) { this.gotoAndStop(2); } _x = (_x - 3); if (this._x < -50) { this.gotoAndStop(1); _x = 650; } }
Instance of Symbol 192 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this.hitTest(_root.fire.hit)) { this.gotoAndStop(2); } _x = (_x - 3); if (this._x < -50) { this.gotoAndStop(1); _x = 650; } }
Instance of Symbol 192 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this.hitTest(_root.fire.hit)) { this.gotoAndStop(2); } _x = (_x - 3); if (this._x < -50) { this.gotoAndStop(1); _x = 650; } }
Instance of Symbol 192 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this.hitTest(_root.fire.hit)) { this.gotoAndStop(2); } _x = (_x - 3); if (this._x < -50) { this.gotoAndStop(1); _x = 650; } }
Instance of Symbol 192 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this.hitTest(_root.fire.hit)) { this.gotoAndStop(2); } _x = (_x - 3); if (this._x < -50) { this.gotoAndStop(1); _x = 650; } }
Instance of Symbol 192 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this.hitTest(_root.fire.hit)) { this.gotoAndStop(2); } _x = (_x - 3); if (this._x < -50) { this.gotoAndStop(1); _x = 650; } }
Instance of Symbol 192 MovieClip in Frame 592
onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (this.hitTest(_root.fire.hit)) { this.gotoAndStop(2); } _x = (_x - 3); if (this._x < -50) { this.gotoAndStop(1); _x = 650; } }
Instance of Symbol 212 MovieClip in Frame 592
onClipEvent (load) { this.swapDepths(100000); }
Symbol 52 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 61 Button
on (release) { startMovie(); }
Symbol 63 MovieClip Frame 1
function timerHandler() { if (!loadingComplete) { var _local4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * _local4; if (_local4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop ("loaded"); } return(undefined); } } dt = getTimer() - time; time = time + dt; frameAccum = frameAccum + dt; var _local3 = 0; while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) { advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } frameAccum = frameAccum - FRAME_TIME; _local3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return(undefined); } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof(clip[childName]) == "movieclip") { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.33333; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler();
Symbol 63 MovieClip Frame 2
stop();
Symbol 66 Button
on (release) { this._visible = false; }
Symbol 75 MovieClip 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();
Symbol 213 MovieClip [__Packages.com.Newgrounds.NewgroundsAPIError] Frame 0
class com.Newgrounds.NewgroundsAPIError { var message, name, alias; function NewgroundsAPIError (error, msg) { if (Number(error).toString() == String(error)) { error = Number(error); } else if (error_codes[String(error)]) { error = error_codes[String(error)]; } else { error = 0; } code = error; message = msg; name = error_names[error]; alias = aliases[error]; } static function init_codes() { var _local2 = new Object(); var _local1 = 0; while (_local1 < aliases.length) { _local2[aliases[_local1]] = _local1; _local1++; } return(_local2); } static function init_names() { var _local5 = new Array(); var _local3 = 0; while (_local3 < aliases.length) { var _local2 = aliases[_local3].toLowerCase().split("_"); var _local1 = 0; while (_local1 < _local2.length) { _local2[_local1] = _local2[_local1].substr(0, 1).toUpperCase() + _local2[_local1].substr(1, _local2[_local1].length); for (var _local4 in always_caps) { if (_local2[_local1].toUpperCase() == always_caps[_local4]) { _local2[_local1] = _local2[_local1].toUpperCase(); } } _local1++; } _local5[_local3] = _local2.join(" "); _local3++; } return(_local5); } function isError() { return(true); } static var 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"); static var always_caps = new Array("API", "URL", "ID"); static var error_codes = init_codes(); static var error_names = init_names(); var code = 0; }
Symbol 214 MovieClip [__Packages.com.Newgrounds.BaseN] Frame 0
class com.Newgrounds.BaseN { var ceiling, hashIndex, bitSize, hashVal, i; function BaseN (hash) { ceiling = 100000000000000; if (hash) { hashIndex = hash; } else { hashIndex = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/"; } bitSize = hashIndex.length; hashVal = new Object(); i = 0; while (i < bitSize) { hashVal[hashIndex.charAt(i)] = i; i++; } } function verify(s) { if (hashVal[s] != undefined) { return(true); } return(false); } function encode(n, minchars) { debug.lastencode = ""; if (typeof(i) != "string") { n = n.toString(); } if (n.charAt(0) == "-") { var _local3 = "-"; n = n.substring(1); } else { var _local3 = ""; } if (String(n).indexOf(".") > -1) { var _local4 = String(n).split(".", 2); return(((_local3 + baseNEncoder(_local4[0], minchars)) + ".") + baseNEncoder(_local4[1])); } debug.lastencode = debug.lastencode + "\tNo decimal\r"; return(_local3 + baseNEncoder(n, minchars)); } function decode(s) { var _local3 = 1; if (s.charAt(0) == "-") { _local3 = -1; s = s.substring(1, s.length); } var _local4 = s.indexOf("."); if (_local4 > -1) { var _local5 = Math.pow(10, baseNDecoder(s.substring(_local4 + 1, s.length))); return((baseNDecoder(s.substring(0, _local4)) / _local5) * _local3); } return(baseNDecoder(s) * _local3); } function baseNEncoder(n, minchars) { if (!minchars) { minchars = 1; } var _local4 = ""; while (n != 0) { n = Math.round(n); var _local3 = n % bitSize; if (Math.round(_local3) != _local3) { trace((((((((("BaseN failed on " + n) + "%") + bitSize) + " = ") + _local3) + " ") + int(n)) + " ") + int(bitSize)); } _local4 = hashIndex.charAt(_local3) + _local4; debug.lastencode = debug.lastencode + (((((((("\t-> n:" + n) + " % bitSize:") + bitSize) + " = ") + _local3) + ", final char=") + _local4) + newline); n = n - _local3; n = n / bitSize; } if (minchars) { while (_local4.length < minchars) { _local4 = hashIndex.charAt(0) + _local4; } } return(_local4); } function baseNDecoder(s) { var _local2 = 0; var _local6 = 0; i = 0; while (i < s.length) { var _local4 = s.charAt((s.length - i) - 1); if (_local4 == hashIndex.charAt(0)) { var _local3 = 0; } else { var _local3 = hashVal[_local4] * Math.pow(bitSize, i); } _local2 = _local2 + _local3; if (_local2 >= ceiling) { _local6 = _local6 + ((_local2 - (_local2 % ceiling)) / ceiling); _local2 = _local2 % ceiling; } i++; } if (_local6 > 0) { _local2 = "" + _local2; while (_local2.length < (ceiling.toString().length - 1)) { _local2 = "0" + _local2; } _local2 = ("" + _local6) + _local2; } return(_local2); } var debug = new Object(); }
Symbol 215 MovieClip [__Packages.com.Newgrounds.NewgroundsAPI] Frame 0
class com.Newgrounds.NewgroundsAPI { static var version, user_email, movie_id, debug, session_id, publisher_id, timeout, connected, tracker_id, encryption_key, user_id, user_name, host, error_format, normal_format, link_format, header_format, ad_url, ad_swf_url; function NewgroundsAPI () { } static function setMovieVersion(v) { if (v) { version = String(v); } } static function setUserEmail(e) { user_email = e; } static function getOfficialVersionURL() { var _local1 = (((((GATEWAY_URL + "?tracker_id=") + movie_id) + "&command_id=") + getCommandID("loadOfficalVersion")) + "&seed=") + Math.random(); if (debug) { _local1 = _local1 + "&debug=1"; } return(_local1); } static function hasUserSession() { if (session_id && (publisher_id)) { return(true); } if (_root.NewgroundsAPI_PublisherID && (_root.NewgroundsAPI_SessionID)) { return(true); } return(false); } static function isNewgrounds() { return(((publisher_id == 1) || (_root.NewgroundsAPI_PublisherID == 1)) || (getHost().toLowerCase().indexOf("ungrounded.net") > -1)); } static function hasPublisher() { return(publisher_id || (_root.NewgroundsAPI_PublisherID)); } static function hasUserEmail() { if (user_email) { return(true); } return(false); } static function connectionTimeOut() { clearInterval(timeout); callListener(events.MOVIE_CONNECTED, false, new com.Newgrounds.NewgroundsAPIError("CONNECTION_FAILED", "Connection to NewgroundsAPI gateway timed out.")); } static function connectMovie(m_id, encrypt_key, debug_mode) { if (connected) { return(undefined); } var _local2 = function () { com.Newgrounds.NewgroundsAPI.connectionTimeOut(); }; timeout = setInterval(_local2, 8000, null); if (!m_id) { fatalError("NewgroundsAPI.connectMovie() - missing required movie_id parameter", "connectMovie"); } movie_id = String(m_id); tracker_id = Number(movie_id.substring(0, movie_id.indexOf(":"))); encryption_key = encrypt_key; debug = debug_mode; if (_root.NewgroundsAPI_PublisherID) { publisher_id = _root.NewgroundsAPI_PublisherID; if (_root.NewgroundsAPI_SessionID) { session_id = _root.NewgroundsAPI_SessionID; } } else { publisher_id = 1; session_id = null; user_id = 0; user_name = "Guest"; } if (_root.NewgroundsAPI_UserName) { user_name = _root.NewgroundsAPI_UserName; } if (_root.NewgroundsAPI_UserID) { user_id = _root.NewgroundsAPI_UserID; } connected = true; sendCommand("connectMovie", {host:getHost(), movie_version:version}); } static function getHost() { if (!host) { var _local1 = _url; if ((_local1.indexOf("http://") > -1) || (_local1.indexOf("https://") > -1)) { host = _local1.split("/")[2].toLowerCase(); } else { host = "localhost"; } } return(host); } static function loadNewgrounds() { sendCommand("loadNewgrounds", {host:getHost()}, true); } static function loadMySite() { sendCommand("loadMySite", {host:getHost()}); } static function loadCustomLink(link) { sendCommand("loadCustomLink", {host:getHost(), link:link}, true); } static function logCustomEvent(event) { sendCommand("logCustomEvent", {host:getHost(), event:event}); } static function postScore(score, value, get_best) { if ((!score) || (value == undefined)) { sendError({command_id:getCommandID("postScore")}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required parameter(s)")); return(undefined); } sendSecureCommand("postScore", {score:score, value:value, get_best:get_best}); } static function getTodaysScores(score, params) { getScores(score, "t", params, "getTodaysScores"); } static function getYesterdaysScores(score, params) { getScores(score, "y", params, "getYesterdaysScores"); } static function getThisWeeksScores(score, params) { getScores(score, "w", params, "getThisWeeksScores"); } static function getThisMonthsScores(score, params) { getScores(score, "m", params, "getThisMonthsScores"); } static function getThisYearsScores(score, params) { getScores(score, "y", params, "getThisYearsScores"); } static function getAlltimeScores(score, params) { getScores(score, "a", params, "getAlltimeScores"); } static function getScores(score, period, params, command_name) { if (!score) { sendError({command_id:getCommandID(command_name)}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required score name")); return(undefined); } if (!params) { params = new Object(); } if (!hasUserSession()) { callListener(events.SCORES_LOADED, false, new com.Newgrounds.NewgroundsAPIError("SITE_ID_REQUIRED", ("Host '" + getHost()) + "' does not have high scores enabled")); return(undefined); } params.publisher_id = publisher_id; params.period = period; params.score = score; if (params.user_id) { var _local2 = period; } else { var _local2 = period + "-u"; } if (score_page_counts[_local2] == undefined) { params.request_page_count = true; } sendCommand("getScores", params); } static function unlockMedal(medal, get_score) { if (!medal) { sendError({command_id:getCommandID("unlockMedal")}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required medal name")); return(undefined); } var _local1 = new Object(); _local1.medal = medal; if (get_score) { _local1.get_score = get_score; } sendSecureCommand("unlockMedal", _local1); } static function loadMedals() { if (medals) { callListener(events.MEDALS_LOADED, true, {medals:medals}); return(undefined); } var _local1 = new Object(); if (hasUserSession()) { _local1.publisher_id = publisher_id; _local1.user_id = user_id; } sendCommand("getMedals", _local1); } static function getMedals() { return(medals); } static function saveLocal(save_id, save_data, size_allocation) { if (!sharedObjects[save_id]) { sharedObjects[save_id] = SharedObject.getLocal((("ng_ap_secure_" + movie_id) + "_") + save_id); } sharedObjects[save_id].data[save_id] = encodeData(save_data); sharedObjects[save_id].flush(); } static function loadLocal(save_id) { if (!sharedObjects[save_id]) { sharedObjects[save_id] = SharedObject.getLocal((("ng_ap_secure_" + movie_id) + "_") + save_id); } sharedObjects[save_id].flush(); if (sharedObjects[save_id].data[save_id]) { return(decodeData(sharedObjects[save_id].data[save_id])); } return(null); } static function encodeData(data) { return(compressHex(com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(data), encryption_key))); } static function decodeData(base) { return(com.Newgrounds.JSON.decode(com.Newgrounds.RC4.decrypt(uncompressHex(base), encryption_key))); } static function compressHex(hex_value) { var _local5 = hex_value.length % 6; var _local3 = ""; var _local1 = 0; while (_local1 < hex_value.length) { var _local2 = Number("0x" + hex_value.substr(_local1, 6)); _local3 = _local3 + compressor.encode(_local2, 4); _local1 = _local1 + 6; } return(_local5 + _local3); } static function uncompressHex(base_value) { var _local8 = Number(base_value.charAt(0)); var _local7 = ""; var _local3; var _local2 = 1; while (_local2 < base_value.length) { var _local5 = base_value.substr(_local2, 4); var _local6 = compressor.decode(_local5); var _local1 = dec2hex(_local6); if ((_local2 + 4) < base_value.length) { _local3 = 6; } else { _local3 = _local8; } while (_local1.length < _local3) { _local1 = "0" + _local1; } _local7 = _local7 + _local1; _local2 = _local2 + 4; } return(_local7); } static function dec2hex(dec) { var _local4 = "0123456789ABCDEF"; var _local3 = ""; while (dec > 0) { var _local2 = dec % 16; _local3 = _local4.charAt(_local2) + _local3; dec = (dec - _local2) / 16; } return(_local3); } static function saveFile(folder, filename, contents, thumbnail_source) { if (!save_file) { save_file = new com.Newgrounds.NewgroundsAPISaveFile(movie_id, folder, filename); save_file.setContents(contents); if (thumbnail_source) { save_file.setThumbnail(thumbnail_source); } save_file.onError = function (msg) { var _local1 = new com.Newgrounds.NewgroundsAPIError("PERMISSION_DENIED", msg); com.Newgrounds.NewgroundsAPI.sendError({command_id:com.Newgrounds.NewgroundsAPI.getCommandID("saveFile")}, _local1); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, _local1); }; save_file.onCancel = function (msg) { var _local1 = new com.Newgrounds.NewgroundsAPIError("USER_CANCELLED", msg); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, _local1); }; save_file.submit(); } else { var _local1 = new com.Newgrounds.NewgroundsAPIError("UPLOAD_IN_PROGRESS", "Please wait for the previous file to finish uploading"); sendError({command_id:getCommandID("saveFile")}, _local1); callListener(events.FILE_SAVED, false, _local1); } } static function checkFilePrivs(folder, filename) { if (user_id) { var _local1 = user_id; } else { var _local1 = 0; } var _local2 = {folder:folder, filename:filename, user_id:_local1, publisher_id:publisher_id}; sendCommand("checkFilePrivs", _local2); } static function finishFileSave(folder, filename, description, share, file, thumbnail) { var _local1; _local1 = {folder:folder, filename:filename, description:description, share:share}; var _local2; _local2 = {file:file, thumbnail:thumbnail}; sendSecureCommand("saveFile", _local1, null, _local2); } static function getFiles(folder, options) { var _local6 = {name:1, date:2, score:3}; var _local3 = {user_only:false, sort_on:"date", page:1, results_per_page:20, sort_descending:true}; var _local7 = new Array(); for (var _local9 in _local6) { _local7.push(("'" + _local9) + "'"); } var _local4 = new Array(); for (var _local10 in _local3) { _local4.push(("'" + _local10) + "'"); } if (options.sort_descending && (!_local6[options.sort_descending])) { var _local2 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("'" + options.sort_descending) + "' is not a valid sort_on value. Valid values are: ") + _local7.join(", ")); sendError({command_id:getCommandID("getFiles")}, _local2); delete options.sort_descending; } var _local8; if (options) { for (var _local9 in options) { if (_local3[_local9] == undefined) { var _local2 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("'" + _local9) + "' is not a valid option. Valid options are: ") + _local4.join(", ")); sendError({command_id:getCommandID("getFiles")}, _local2); delete options[_local9]; continue; } if (typeof(options[_local9]) != typeof(_local3[_local9])) { var _local2 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("option '" + _local9) + "' should be the following type: ") + typeof(_local3[_local9])); sendError({command_id:getCommandID("getFiles")}, _local2); delete options[_local9]; } } _local8 = options; } else { _local8 = new Object(); } if (hasUserSession()) { _local8.publisher_id = publisher_id; _local8.user_id = user_id; } _local8.folder = folder; sendCommand("getFiles", _local8); } static function getConfirmation(command_name, event, msg, target, confirm, cancel) { var _local1 = new com.Newgrounds.NewgroundsAPIError("CONFIRM_REQUEST", msg); _local1.confirm = function () { target[confirm](); }; _local1.cancel = function () { target[cancel](); }; _local1.command = getCommandID(command_name); callListener(event, false, _local1); } static function doBlockHost(event) { _root.stop(); 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 _local2 = ("This movie has not been approved for use on " + getHost()) + "."; _local2 = _local2 + "\r\rFor an aproved copy, please visit:\r"; var _local3 = _local2.length; _local2 = _local2 + event.data.movie_url; var _local4 = _local2.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(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 = _local2; _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(normal_format); link_format.url = event.data.redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(_local3, _local4, link_format); } static function onNewVersionAvailable(event) { _root.stop(); initTextFormats(); var _local2 = new Object(); _local2.x = Stage.width / 2; _local2.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(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.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(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.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 _local3 = (("Version " + event.data.movie_version) + " is now available at:") + newline; var _local5 = _local3.length; _local3 = _local3 + event.data.movie_url; var _local6 = _local3.length; _root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = "New Version Available!"; _root.NGAPI_new_version_overlay.newversion.setTextFormat(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 = _local3; _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(normal_format); link_format.url = event.data.redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local6, link_format); } static function initTextFormats() { if (!error_format) { error_format = new TextFormat(); error_format.font = "Arial Black"; error_format.size = 48; error_format.color = 16711680 /* 0xFF0000 */; } if (!header_format) { header_format = new TextFormat(); header_format.font = "Arial Black"; header_format.size = 24; header_format.color = 16777215 /* 0xFFFFFF */; } if (!normal_format) { normal_format = new TextFormat(); normal_format.font = "Arial"; normal_format.bold = true; normal_format.size = 12; normal_format.color = 16777215 /* 0xFFFFFF */; } if (!link_format) { link_format = new TextFormat(); link_format.color = 16776960 /* 0xFFFF00 */; link_format.underline = true; } } static function doEvent(e) { switch (getCommandName(e.command_id)) { case "connectMovie" : clearInterval(timeout); sendMessage("You have successfully connected to the Newgrounds API Gateway"); sendMessage(("Movie identified as \"" + e.movie_name) + "\""); callListener(events.MOVIE_CONNECTED, e.success, {movie_name:e.movie_name}); var _local7 = false; if (e.ad_status === -1) { var _local4 = "This movie was not approved to run Flash Ads."; sendWarning(_local4); sendWarning(("visit " + AD_TERMS_URL) + " to view our approval guidelines"); if (!e.ad_url) { callListener(events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", _local4)); } else { _local7 = true; } } else if (e.ad_status === 0) { var _local4 = "Flash Ads are currently awaiting approval."; sendNotice(_local4); if (!e.ad_url) { callListener(events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", _local4)); } else { _local7 = true; } } if (e.ad_url) { ad_url = unescape(e.ad_url); if (!_local7) { sendMessage("This movie has been approved to run Flash Ads!"); } callListener(events.ADS_APPROVED, true); } if (e.deny_host) { var _local4 = getHost() + " does not have permission to run this movie!"; sendWarning(_local4); sendWarning("\tUpdate your API configuration to unblock " + getHost()); callListener(events.HOST_BLOCKED, true, {movie_url:unescape(e.movie_url), redirect_url:getOfficialVersionURL()}); } if (e.movie_version) { sendWarning("According to your API Configuration, this version is out of date."); if (version) { sendWarning("\tThe this movie is version " + version); } sendWarning("\tThe most current version is " + e.movie_version); callListener(events.NEW_VERSION_AVAILABLE, true, {movie_version:e.movie_version, movie_url:unescape(e.movie_url), redirect_url:getOfficialVersionURL()}); } if (e.request_portal_url) { sendCommand("setPortalID", {portal_url:_url}); } break; case "logCustomEvent" : if (e.success) { sendMessage(("Event '" + e.event) + "' was logged."); } callListener(events.EVENT_LOGGED, e.success, {event:e.event}); break; case "postScore" : var _local3; if (e.success) { var _local5 = "User"; if (user_email) { _local5 = user_email; } else if (user_name) { _local5 = user_name; } sendMessage(((((_local5 + " posted ") + e.value) + " to '") + e.score) + "'"); _local3 = {score:e.score, value:e.value, username:_local5}; } callListener(events.SCORE_POSTED, e.success, _local3); break; case "getScores" : _local3 = new Object(); if (e.user_id) { var _local6 = e.period; } else { var _local6 = e.period + "-u"; } if (e.total_pages) { score_page_counts[_local6] = e.total_pages; } _local3.user_id = e.user_id; _local3.current_page = e.current_page; _local3.total_pages = score_page_counts[_local6]; _local3.scores = e.scores; _local3.period = getPeriodName(e.period); callListener(events.SCORES_LOADED, e.success, _local3); break; case "unlockMedal" : if (medals) { var _local2 = 0; while (_local2 < medals.length) { if (medals[_local2].medal_name === e.medal_name) { medals[_local2].medal_unlocked = true; break; } _local2++; } } _local3 = {medal_name:e.medal_name, medal_value:e.medal_value, medal_difficulty:e.medal_difficulty}; callListener(events.MEDAL_UNLOCKED, e.success, _local3); break; case "getMedals" : medals = e.medals; _local3 = {medals:e.medals}; callListener(events.MEDALS_LOADED, e.success, _local3); break; case "getFiles" : break; case "getSystemFiles" : break; case "saveFile" : save_file = null; _local3 = {file_id:e.file_id, filename:e.filename, file_url:e.file_url, thumbnail:e.thumbnail, icon:e.icon}; callListener(events.FILE_SAVED, e.success, _local3); break; case "checkFilePrivs" : if (save_file) { save_file.checkPrivs(e); } else { _local3 = {filename:e.filename, folder:e.folder, can_read:e.can_read, can_write:e.can_write}; callListener(events.FILE_PRIVS_LOADED, e.success, _local3); } } } static function setDefaultListeners() { var _local1 = new Array(); _local1[events.HOST_BLOCKED] = {listener:doBlockHost}; _local1[events.NEW_VERSION_AVAILABLE] = {listener:onNewVersionAvailable}; return(_local1); } static function addEventListener(event, listener, params) { listeners[event] = {listener:listener, params:params}; } static function removeEventListener(event) { delete listeners[event]; } static function getEventName(event) { for (var _local2 in events) { if (events[_local2] == event) { return(_local2); } } return(undefined); } static function callListener(event, success, data, target) { echo("Fired Event: " + getEventName(event)); if (listeners[event]) { if (data.isError()) { listeners[event].listener({event:event, success:success, error:data, target:target}, listeners[event].params); } else { listeners[event].listener({event:event, success:success, data:data, target:target}, listeners[event].params); } } } static function getCommandName(id) { return(id); } static function getCommandID(name) { return(name); } static function getPeriodAliases() { var _local1 = new Object(); for (var _local2 in period_aliases) { _local1[period_aliases[_local2].alias] = _local2; } return(_local1); } static function getPeriodName(p) { for (var _local2 in period_aliases) { if (_local2 == p) { return(period_aliases[_local2].name); } } return(null); } static function getPeriodAlias(p) { for (var _local2 in period_aliases) { if (_local2 == p) { return(period_aliases[_local2].alias); } } return(null); } static function sendError(c, e) { trace((((((("[NewgroundsAPI ERROR] :: " + getCommandName(c.command_id)) + "() - ") + e.name) + ":") + newline) + "\t\t\t\t") + e.message); } static function sendWarning(m, c) { if (c) { m = m + ((("\r[NewgroundsAPI WARNING] :: \tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information."); } trace("[NewgroundsAPI WARNING] :: " + m); } static function sendNotice(m, c) { if (c) { m = m + ((("\r[NewgroundsAPI NOTICE] :: \tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information."); } trace("[NewgroundsAPI NOTICE] :: " + m); } static function fatalError(m, c) { if (c) { m = m + ((("\r\tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information."); } throw (((("***ERROR*** frame=" + _root._currentframe) + ", class=NewgroundsAPI") + newline) + newline) + m; } static function sendSecureCommand(command, secure_params, unsecure_params, files) { if (((!debug) && (!hasUserSession())) && (!hasUserEmail())) { sendError({command_id: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) { fatalError("Missing command", "sendSecureCommand"); } if (!secure_params) { fatalError("Missing secure_params", "sendSecureCommand"); } if (!unsecure_params) { unsecure_params = new Object(); } var _local2 = ""; var _local1 = 0; while (_local1 < 16) { _local2 = _local2 + compression_radix.charAt(Math.floor(Math.random() * compression_radix.length)); _local1++; } if (debug) { secure_params.session_id = ""; } else { secure_params.session_id = session_id; } secure_params.as_version = 2; secure_params.user_email = user_email; secure_params.publisher_id = publisher_id; secure_params.seed = _local2; secure_params.command_id = getCommandID(command); var _local6 = com.Newgrounds.MD5.calculate(_local2); var _local8 = com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(secure_params), encryption_key); var _local7 = _local6 + _local8; unsecure_params.secure = compressHex(_local7); sendCommand("securePacket", unsecure_params, false, files); } static function sendCommand(command, params, open_browser, files) { if ((!connected) && (command != "connectMovie")) { var _local9 = (("NewgroundsAPI." + command) + "() - NewgroundsAPI.connectMovie() must be called before this command can be called") + newline; fatalError(_local9, "connectMovie"); } if (open_browser) { var _local1 = new Object(); } else { var _local1 = new LoadVars(); } _local1.command_id = getCommandID(command); _local1.tracker_id = movie_id; if (debug) { _local1.debug = debug; } if (params) { for (var _local6 in params) { _local1[_local6] = params[_local6]; } } if (files) { for (var _local6 in files) { _local1[_local6] = files[_local6]; } } echo(("OUTPUT: \r" + com.Newgrounds.JSON.encode(_local1)) + newline); if (open_browser) { var _local2 = (GATEWAY_URL + "?seed=") + Math.random(); for (var _local6 in _local1) { _local2 = _local2 + ((("&" + escape(_local6)) + "=") + escape(_local1[_local6])); } getURL (_local2, "_blank"); _local1.removeMovieClip(); } else { var _local8 = new LoadVars(); _local8.onData = function (data) { com.Newgrounds.NewgroundsAPI.echo(("INPUT: \r" + data) + newline); if (data) { var _local1 = com.Newgrounds.JSON.decode(data); } else { var _local1 = {success:false}; } if (!_local1.success) { var _local3 = new com.Newgrounds.NewgroundsAPIError(_local1.error_code, _local1.error_msg); com.Newgrounds.NewgroundsAPI.sendError(_local1, _local3); } else { com.Newgrounds.NewgroundsAPI.doEvent(_local1); } }; var _local5 = new Array(); for (var _local7 in _local1) { _local5.push((_local7 + "=") + escape(_local1[_local7])); } echo((("POST " + GATEWAY_URL) + "?") + _local5.join("&")); _local1.sendAndLoad((GATEWAY_URL + "?seed=") + Math.random(), _local8, "POST"); } } static function renderAd(target) { if (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 (ad_swf_url, target.clip.ad); callListener(events.AD_ATTACHED, true, null, target); } else { callListener(events.AD_ATTACHED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", "Unable to render ad")); } } static function attachFlashAd(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"); sendMessage("You may get a security sandbox violation from this ad. This is nothing to worry about!"); if (resetAdTimer()) { if (ad_url) { var _local1 = new LoadVars(); _local1.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 (ad_url.indexOf("?") > -1) { _local1.load((ad_url + "&random=") + Math.random()); } else { _local1.load((ad_url + "?random=") + Math.random()); } } } else { renderAd(target); } } static function resetAdTimer() { if (!ad_url) { return(false); } var _local1 = new Date(); if (_local1.getTime() >= ad_reset) { ad_reset = _local1.getTime() + 300000; return(true); } return(false); } static function sendMessage(m, r) { var _local1 = "[NewgroundsAPI] :: " + m; if (r) { return(_local1); } trace(_local1); } static function echo(m) { if (do_echo) { trace(m); } } static var do_echo = false; static var GATEWAY_URL = "http://www.ngads.com/gateway_v2.php"; static var AD_TERMS_URL = "http://www.newgrounds.com/wiki/flashads/terms/"; static var COMMANDS_WIKI_URL = "http://www.newgrounds.com/wiki/flashapi/commands/"; static var ad_reset = 0; static var save_file = null; static var medals = null; static var score_page_counts = new Object(); static var compression_radix = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X"; static var compressor = new com.Newgrounds.BaseN(compression_radix); static var errors = com.Newgrounds.NewgroundsAPIError.init_codes(); static var sharedObjects = new Object(); static var 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}; static var listeners = setDefaultListeners(); static var periods = getPeriodAliases(); static var 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"}}; }
Symbol 216 MovieClip [__Packages.com.Newgrounds.RC4] Frame 0
class com.Newgrounds.RC4 { function RC4 () { } static function encrypt(src, key) { var _local1 = strToChars(src); var _local3 = strToChars(key); var _local2 = calculate(_local1, _local3); return(charsToHex(_local2)); } static function encryptbin(src, key) { var _local1 = strToChars(src); var _local3 = strToChars(key); var _local2 = calculate(_local1, _local3); return(_local2); } static function decrypt(src, key) { var _local1 = hexToChars(src); var _local3 = strToChars(key); var _local2 = calculate(_local1, _local3); return(charsToStr(_local2)); } static function initialize(pwd) { var _local2 = 0; var _local3; var _local4 = pwd.length; var _local1 = 0; while (_local1 <= 255) { mykey[_local1] = pwd[_local1 % _local4]; sbox[_local1] = _local1; _local1++; } _local1 = 0; while (_local1 <= 255) { _local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256; _local3 = sbox[_local1]; sbox[_local1] = sbox[_local2]; sbox[_local2] = _local3; _local1++; } } static function calculate(plaintxt, psw) { initialize(psw); var _local1 = 0; var _local2 = 0; var _local9 = new Array(); var _local5; var _local7; var _local6; var _local3 = 0; while (_local3 < plaintxt.length) { _local1 = (_local1 + 1) % 256; _local2 = (_local2 + sbox[_local1]) % 256; _local7 = sbox[_local1]; sbox[_local1] = sbox[_local2]; sbox[_local2] = _local7; var _local4 = (sbox[_local1] + sbox[_local2]) % 256; _local5 = sbox[_local4]; _local6 = plaintxt[_local3] ^ _local5; _local9.push(_local6); _local3++; } return(_local9); } static function charsToHex(chars) { var _local3 = new String(""); var _local4 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"); var _local1 = 0; while (_local1 < chars.length) { _local3 = _local3 + (_local4[chars[_local1] >> 4] + _local4[chars[_local1] & 15]); _local1++; } return(_local3); } static function hexToChars(hex) { var _local3 = new Array(); var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0); while (_local1 < hex.length) { _local3.push(parseInt(hex.substr(_local1, 2), 16)); _local1 = _local1 + 2; } return(_local3); } static function charsToStr(chars) { var _local2 = new String(""); var _local1 = 0; while (_local1 < chars.length) { _local2 = _local2 + String.fromCharCode(chars[_local1]); _local1++; } return(_local2); } static function strToChars(str) { var _local3 = new Array(); var _local1 = 0; while (_local1 < str.length) { _local3.push(str.charCodeAt(_local1)); _local1++; } return(_local3); } static var sbox = new Array(255); static var mykey = new Array(255); }
Symbol 217 MovieClip [__Packages.com.Newgrounds.JSON] Frame 0
class com.Newgrounds.JSON { function JSON () { } static function encode(arg, noquotes) { var _local2; var _local5; var _local6; var _local1 = ""; var _local3; if (arg.isSServerVar()) { var _local8 = "sservervariable"; } else { var _local8 = typeof(arg); } switch (_local8) { case "sservervariable" : return("?" + arg.getEncodedValue()); case "object" : if (arg) { if (arg instanceof Array) { _local5 = 0; while (_local5 < arg.length) { _local3 = encode(arg[_local5]); if (_local1) { _local1 = _local1 + ","; } _local1 = _local1 + _local3; _local5++; } return(("[" + _local1) + "]"); } if (typeof(arg.toString) != "undefined") { for (_local5 in arg) { _local3 = arg[_local5]; if ((typeof(_local3) != "undefined") && (typeof(_local3) != "function")) { _local3 = encode(_local3); if (_local1) { _local1 = _local1 + ","; } _local1 = _local1 + ((encode(_local5) + ":") + _local3); } } return(("{" + _local1) + "}"); } } return("null"); case "number" : return((isFinite(arg) ? (String(arg)) : "null")); case "string" : _local6 = arg.length; if (noquotes) { var _local7 = ""; } else { var _local7 = "\""; } _local1 = _local7; _local5 = 0; while (_local5 < _local6) { _local2 = arg.charAt(_local5); if (_local2 >= " ") { if ((_local2 == "\\") || (_local2 == "\"")) { _local1 = _local1 + "\\"; } _local1 = _local1 + _local2; } else { switch (_local2) { case "\b" : _local1 = _local1 + "\\b"; break; case "\f" : _local1 = _local1 + "\\f"; break; case newline : _local1 = _local1 + "\\n"; break; case "\r" : _local1 = _local1 + "\\r"; break; case "\t" : _local1 = _local1 + "\\t"; break; default : _local2 = _local2.charCodeAt(); _local1 = _local1 + (("\\u00" + Math.floor(_local2 / 16).toString(16)) + (_local2 % 16).toString(16)); } } _local5 = _local5 + 1; } return(_local1 + _local7); case "boolean" : return(String(arg)); } return("null"); } static function decode(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 = at + 1; return(ch); }; var _white = function () { if (ch) { if (ch <= " ") { _next(); // unexpected jump } if (ch == "/") { switch (_next()) { case "/" : while ((_next() && (ch != newline)) && (ch != "\r")) { } break; case "*" : _next(); if (ch) { if (ch == "*") { if (_next() == "/") { _next(); } } else { _next(); } } else { _error("Unterminated comment"); } break; default : _error("Syntax error"); } // unexpected jump } return; } }; var _string = function () { var _local2; var _local1 = ""; var _local3; var _local4; var _local5 = false; if (ch == "\"") { while (_next()) { if (ch == "\"") { _next(); return(_local1); } if (ch == "\\") { switch (_next()) { case "b" : _local1 = _local1 + "\b"; break; case "f" : _local1 = _local1 + "\f"; break; case "n" : _local1 = _local1 + newline; break; case "r" : _local1 = _local1 + "\r"; break; case "t" : _local1 = _local1 + "\t"; break; case "u" : _local4 = 0; _local2 = 0; while (_local2 < 4) { _local3 = parseInt(_next(), 16); if (!isFinite(_local3)) { _local5 = true; break; } _local4 = (_local4 * 16) + _local3; _local2 = _local2 + 1; } if (_local5) { _local5 = false; break; } _local1 = _local1 + String.fromCharCode(_local4); break; default : _local1 = _local1 + ch; } continue; } _local1 = _local1 + ch; } } _error("Bad string"); }; var _array = function () { var _local1 = []; if (ch == "[") { _next(); _white(); if (ch == "]") { _next(); return(_local1); } while (ch) { _local1.push(_value()); _white(); if (ch == "]") { _next(); return(_local1); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad array"); }; var _object = function () { var _local2; var _local1 = {}; if (ch == "{") { _next(); _white(); if (ch == "}") { _next(); return(_local1); } while (ch) { _local2 = _string(); _white(); if (ch != ":") { break; } _next(); _local1[_local2] = _value(); _white(); if (ch == "}") { _next(); return(_local1); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad object"); }; var _number = function () { var _local1 = ""; var _local2; if (ch == "-") { _local1 = "-"; _next(); } while ((ch >= "0") && (ch <= "9")) { _local1 = _local1 + ch; _next(); } if (ch == ".") { _local1 = _local1 + "."; while ((_next() && (ch >= "0")) && (ch <= "9")) { _local1 = _local1 + ch; } } _local2 = 1 * _local1; if (!isFinite(_local2)) { _error("Bad number"); } else { return(_local2); } }; 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"))) { break; } _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()); } }
Symbol 218 MovieClip [__Packages.com.Newgrounds.NewgroundsAPISaveFile] Frame 0
class com.Newgrounds.NewgroundsAPISaveFile { var tracker_id, folder, filename, contents, thumbnail, icon_url, thumbnail_url, description, scan, scanner; function NewgroundsAPISaveFile (tracker_id, folder, filename) { this.tracker_id = tracker_id; this.folder = folder; this.filename = filename; contents = null; thumbnail = null; icon_url = null; thumbnail_url = null; } function setDescription(description) { this.description = description; } function setShared(share) { this.share = share; } function setContents(contents) { this.contents = contents; } function setThumbnail(thumb) { if (thumb) { thumbnail = thumb; } else { thumbnail = null; } } function onError(msg) { trace("[NewgroundsAPISaveFile ERROR] :: " + msg); } function onCancel(msg) { trace("[NewgroundsAPISaveFile] :: " + msg); } function submit() { scan = null; com.Newgrounds.NewgroundsAPI.checkFilePrivs(folder, filename); } function checkPrivs(p) { if (p.success) { if (p.can_write) { can_write = p.can_write; if (p.exists) { com.Newgrounds.NewgroundsAPI.getConfirmation("saveFile", com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, ("File '" + filename) + "' exists, overwrite?", this, "startFile", "cancelFile"); } else { startFile(); } } else { onError("This filename is owned by another user."); } } else { onError("There was a problem looking up your file's details"); } } function cancelFile() { onCancel("Overwrite was cancelled"); } function startFile() { if (can_write) { if (thumbnail) { scanner = new com.Newgrounds.ImageScanner(thumbnail); scanner.setCallback(this, "writeFile"); scanner.startScan(100, 100, true); } else { writeFile(); } } else { onError(("You cannot write to filename \"" + filename) + "\""); } } function writeFile(img) { trace("FINISHED"); com.Newgrounds.NewgroundsAPI.finishFileSave(folder, filename, description, share, com.Newgrounds.JSON.encode(contents), img); } var can_write = false; var share = true; }
Symbol 219 MovieClip [__Packages.com.Newgrounds.ImageScanner] Frame 0
class com.Newgrounds.ImageScanner { var image_source, source_width, source_height, sourceBitmap, callback_target, callback_function, hash, cube, basen, xpos, ypos, pixels, busy, canvas_width, canvas_height, resizedBitmap, copyBitmap, output, draw_interval, callback_interval; function ImageScanner (the_source) { if (the_source) { image_source = the_source; } else { image_source = _root; } reset(); if (typeof(image_source) == "movieclip") { if (image_source == _root) { source_width = Stage.width; source_height = Stage.height; } else { source_width = Math.floor(image_source._width); source_height = Math.floor(image_source._height); } sourceBitmap = new flash.display.BitmapData(source_width, source_height, false, 4294967000); sourceBitmap.draw(_root); } else if (image_source.width) { source_width = image_source.width; source_height = image_source.height; sourceBitmap = image_source; } else { error("You can only use BitMaptData and MovieClip objects to create images"); } } function setCallback(target, funct) { if (target && (funct)) { callback_target = target; callback_function = funct; } } function reset() { callback_target = null; callback_function = null; debug.bad_pixels = 0; hash = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&"; var _local2 = Math.pow(hash.length, 2); trace("MAX COLORS: " + _local2); var _local3 = Math.floor(Math.pow(_local2, 0.3333333)) - 1; var _local4 = Math.pow(_local3, 3); cube = _local3; basen = new com.Newgrounds.BaseN(hash); xpos = 0; ypos = 0; pixels = 0; busy = false; } function startScan(w, h, s) { if (w) { image_width = w; } if (h) { image_height = h; } if (s != undefined) { crop = s; } var _local7 = _root.getNextHighestDepth(); var _local6 = _root.createEmptyMovieClip("API_image_container_" + _local7, _local7); var _local5 = _local6.createEmptyMovieClip("canvas", 100); _local5.attachBitmap(sourceBitmap, 100); if (crop) { if ((image_width / source_width) > (image_height / source_height)) { canvas_width = image_width; canvas_height = Math.ceil(source_height * (image_width / source_width)); } else { canvas_height = image_height; canvas_width = Math.ceil(source_width * (image_height / source_height)); } } else { canvas_width = image_width; canvas_height = image_height; } _local5._x = Math.round((image_width - canvas_width) / 2); _local5._width = canvas_width; _local5._height = canvas_height; resizedBitmap = new flash.display.BitmapData(image_width, image_height, false, 4294967000); resizedBitmap.draw(_local6); _local6.removeMovieClip(); copyBitmap = new flash.display.BitmapData(image_width, image_height, false, 4294967000); var _local4 = "" + image_width; while (_local4.length < 3) { _local4 = "0" + _local4; } var _local3 = "" + image_height; while (_local3.length < 3) { _local3 = "0" + _local3; } output = _local4 + _local3; draw_interval = setInterval(this, "drawChunk", 10); busy = false; return(resizedBitmap); } function getBitmapData() { return(copyBitmap); } function getBytesTotal() { return((image_width * image_height) * 2); } function getBytesScanned() { return(pixels * 2); } function drawChunk() { if (!busy) { busy = true; var _local2 = 0; while (_local2 < 250) { if (!nextPixel()) { clearInterval(draw_interval); callback_interval = setInterval(this, "doCallback", 25); busy = true; break; } _local2++; } busy = false; } } function doCallback() { busy = false; clearInterval(callback_interval); if (callback_target && (callback_function)) { callback_target[callback_function](output); } else { onScanComplete(output); } } function onScanComplete(packet) { sendMessage(("packet size: " + output.length) + " bytes", "onScanComplete"); } function nextPixel() { var _local15 = xpos; var _local11 = ypos; var _local10 = resizedBitmap.getPixel(_local15, _local11); var _local19 = (_local10 >> 16) & 255; var _local16 = (_local10 >> 8) & 255; var _local20 = (_local10 >> 0) & 255; var _local14 = Math.round(((_local19 + 1) / 256) * cube); var _local7 = Math.round(((_local16 + 1) / 256) * cube); var _local12 = Math.round(((_local20 + 1) / 256) * cube); var _local13 = (((_local14 * (cube + 1)) * (cube + 1)) + (_local7 * (cube + 1))) + _local12; var _local6 = basen.encode(_local13, 2); output = output + _local6; if (_local6.length != 2) { trace("bad pixel " + _local6); } var _local5 = basen.decode(_local6); var _local18 = _local5; var _local9 = _local5 % (cube + 1); _local5 = (_local5 - _local9) / (cube + 1); var _local8 = _local5 % (cube + 1); var _local17 = (_local5 - _local8) / (cube + 1); if (((_local12 != _local9) && (_local7 != _local8)) && (_local14 != _local7)) { debug.bad_pixels++; trace((((((("BAD PIXEL " + debug.bad_pixels) + ") ") + _local13) + " != ") + _local18) + " ") + _local6); trace(basen.debug.lastencode); } var _local4 = Math.round((_local17 / cube) * 255).toString(16); var _local2 = Math.round((_local8 / cube) * 255).toString(16); var _local3 = Math.round((_local9 / cube) * 255).toString(16); while (_local4.length < 2) { _local4 = "0" + _local4; } while (_local2.length < 2) { _local2 = "0" + _local2; } while (_local3.length < 2) { _local3 = "0" + _local3; } copyBitmap.setPixel(_local15, _local11, Number((("0x" + _local4) + _local2) + _local3)); pixels++; if (pixels >= (image_width * image_height)) { return(false); } xpos++; if (xpos >= image_width) { xpos = 0; ypos++; } return(true); } function error(e, f) { sendMessage(e, f, "ERROR"); } function sendMessage(msg, func, type) { var _local1 = "ImageScanner"; if (func) { _local1 = _local1 + (("." + func) + "()"); } if (type) { _local1 = (type + " in ") + _local1; } _local1 = _local1 + (" :: " + msg); trace(_local1); } var image_width = 100; var image_height = 100; var crop = true; var debug = new Object(); }
Symbol 220 MovieClip [__Packages.com.Newgrounds.MD5] Frame 0
class com.Newgrounds.MD5 { function MD5 () { } static function calculate(src) { return(hex_md5(src)); } static function hex_md5(src) { return(binl2hex(core_md5(str2binl(src), src.length * 8))); } static function core_md5(x, len) { x[len >> 5] = x[len >> 5] | (128 << (len % 32)); x[(((len + 64) >>> 9) << 4) + 14] = len; var _local1 = 1732584193 /* 0x67452301 */; var _local2 = -271733879; var _local3 = -1732584194; var _local4 = 271733878 /* 0x10325476 */; var _local5 = 0; while (_local5 < x.length) { var _local7 = _local1; var _local8 = _local2; var _local9 = _local3; var _local10 = _local4; _local1 = md5_ff(_local1, _local2, _local3, _local4, x[_local5 + 0], 7, -680876936); _local4 = md5_ff(_local4, _local1, _local2, _local3, x[_local5 + 1], 12, -389564586); _local3 = md5_ff(_local3, _local4, _local1, _local2, x[_local5 + 2], 17, 606105819); _local2 = md5_ff(_local2, _local3, _local4, _local1, x[_local5 + 3], 22, -1044525330); _local1 = md5_ff(_local1, _local2, _local3, _local4, x[_local5 + 4], 7, -176418897); _local4 = md5_ff(_local4, _local1, _local2, _local3, x[_local5 + 5], 12, 1200080426); _local3 = md5_ff(_local3, _local4, _local1, _local2, x[_local5 + 6], 17, -1473231341); _local2 = md5_ff(_local2, _local3, _local4, _local1, x[_local5 + 7], 22, -45705983); _local1 = md5_ff(_local1, _local2, _local3, _local4, x[_local5 + 8], 7, 1770035416); _local4 = md5_ff(_local4, _local1, _local2, _local3, x[_local5 + 9], 12, -1958414417); _local3 = md5_ff(_local3, _local4, _local1, _local2, x[_local5 + 10], 17, -42063); _local2 = md5_ff(_local2, _local3, _local4, _local1, x[_local5 + 11], 22, -1990404162); _local1 = md5_ff(_local1, _local2, _local3, _local4, x[_local5 + 12], 7, 1804603682); _local4 = md5_ff(_local4, _local1, _local2, _local3, x[_local5 + 13], 12, -40341101); _local3 = md5_ff(_local3, _local4, _local1, _local2, x[_local5 + 14], 17, -1502002290); _local2 = md5_ff(_local2, _local3, _local4, _local1, x[_local5 + 15], 22, 1236535329); _local1 = md5_gg(_local1, _local2, _local3, _local4, x[_local5 + 1], 5, -165796510); _local4 = md5_gg(_local4, _local1, _local2, _local3, x[_local5 + 6], 9, -1069501632); _local3 = md5_gg(_local3, _local4, _local1, _local2, x[_local5 + 11], 14, 643717713); _local2 = md5_gg(_local2, _local3, _local4, _local1, x[_local5 + 0], 20, -373897302); _local1 = md5_gg(_local1, _local2, _local3, _local4, x[_local5 + 5], 5, -701558691); _local4 = md5_gg(_local4, _local1, _local2, _local3, x[_local5 + 10], 9, 38016083); _local3 = md5_gg(_local3, _local4, _local1, _local2, x[_local5 + 15], 14, -660478335); _local2 = md5_gg(_local2, _local3, _local4, _local1, x[_local5 + 4], 20, -405537848); _local1 = md5_gg(_local1, _local2, _local3, _local4, x[_local5 + 9], 5, 568446438); _local4 = md5_gg(_local4, _local1, _local2, _local3, x[_local5 + 14], 9, -1019803690); _local3 = md5_gg(_local3, _local4, _local1, _local2, x[_local5 + 3], 14, -187363961); _local2 = md5_gg(_local2, _local3, _local4, _local1, x[_local5 + 8], 20, 1163531501); _local1 = md5_gg(_local1, _local2, _local3, _local4, x[_local5 + 13], 5, -1444681467); _local4 = md5_gg(_local4, _local1, _local2, _local3, x[_local5 + 2], 9, -51403784); _local3 = md5_gg(_local3, _local4, _local1, _local2, x[_local5 + 7], 14, 1735328473); _local2 = md5_gg(_local2, _local3, _local4, _local1, x[_local5 + 12], 20, -1926607734); _local1 = md5_hh(_local1, _local2, _local3, _local4, x[_local5 + 5], 4, -378558); _local4 = md5_hh(_local4, _local1, _local2, _local3, x[_local5 + 8], 11, -2022574463); _local3 = md5_hh(_local3, _local4, _local1, _local2, x[_local5 + 11], 16, 1839030562); _local2 = md5_hh(_local2, _local3, _local4, _local1, x[_local5 + 14], 23, -35309556); _local1 = md5_hh(_local1, _local2, _local3, _local4, x[_local5 + 1], 4, -1530992060); _local4 = md5_hh(_local4, _local1, _local2, _local3, x[_local5 + 4], 11, 1272893353); _local3 = md5_hh(_local3, _local4, _local1, _local2, x[_local5 + 7], 16, -155497632); _local2 = md5_hh(_local2, _local3, _local4, _local1, x[_local5 + 10], 23, -1094730640); _local1 = md5_hh(_local1, _local2, _local3, _local4, x[_local5 + 13], 4, 681279174); _local4 = md5_hh(_local4, _local1, _local2, _local3, x[_local5 + 0], 11, -358537222); _local3 = md5_hh(_local3, _local4, _local1, _local2, x[_local5 + 3], 16, -722521979); _local2 = md5_hh(_local2, _local3, _local4, _local1, x[_local5 + 6], 23, 76029189); _local1 = md5_hh(_local1, _local2, _local3, _local4, x[_local5 + 9], 4, -640364487); _local4 = md5_hh(_local4, _local1, _local2, _local3, x[_local5 + 12], 11, -421815835); _local3 = md5_hh(_local3, _local4, _local1, _local2, x[_local5 + 15], 16, 530742520); _local2 = md5_hh(_local2, _local3, _local4, _local1, x[_local5 + 2], 23, -995338651); _local1 = md5_ii(_local1, _local2, _local3, _local4, x[_local5 + 0], 6, -198630844); _local4 = md5_ii(_local4, _local1, _local2, _local3, x[_local5 + 7], 10, 1126891415); _local3 = md5_ii(_local3, _local4, _local1, _local2, x[_local5 + 14], 15, -1416354905); _local2 = md5_ii(_local2, _local3, _local4, _local1, x[_local5 + 5], 21, -57434055); _local1 = md5_ii(_local1, _local2, _local3, _local4, x[_local5 + 12], 6, 1700485571); _local4 = md5_ii(_local4, _local1, _local2, _local3, x[_local5 + 3], 10, -1894986606); _local3 = md5_ii(_local3, _local4, _local1, _local2, x[_local5 + 10], 15, -1051523); _local2 = md5_ii(_local2, _local3, _local4, _local1, x[_local5 + 1], 21, -2054922799); _local1 = md5_ii(_local1, _local2, _local3, _local4, x[_local5 + 8], 6, 1873313359); _local4 = md5_ii(_local4, _local1, _local2, _local3, x[_local5 + 15], 10, -30611744); _local3 = md5_ii(_local3, _local4, _local1, _local2, x[_local5 + 6], 15, -1560198380); _local2 = md5_ii(_local2, _local3, _local4, _local1, x[_local5 + 13], 21, 1309151649); _local1 = md5_ii(_local1, _local2, _local3, _local4, x[_local5 + 4], 6, -145523070); _local4 = md5_ii(_local4, _local1, _local2, _local3, x[_local5 + 11], 10, -1120210379); _local3 = md5_ii(_local3, _local4, _local1, _local2, x[_local5 + 2], 15, 718787259); _local2 = md5_ii(_local2, _local3, _local4, _local1, x[_local5 + 9], 21, -343485551); _local1 = safe_add(_local1, _local7); _local2 = safe_add(_local2, _local8); _local3 = safe_add(_local3, _local9); _local4 = safe_add(_local4, _local10); _local5 = _local5 + 16; } return(new Array(_local1, _local2, _local3, _local4)); } static function md5_cmn(q, a, b, x, s, t) { return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b)); } static function md5_ff(a, b, c, d, x, s, t) { return(md5_cmn((b & c) | ((b ^ 4294967000) & d), a, b, x, s, t)); } static function md5_gg(a, b, c, d, x, s, t) { return(md5_cmn((b & d) | (c & (d ^ 4294967000)), a, b, x, s, t)); } static function md5_hh(a, b, c, d, x, s, t) { return(md5_cmn((b ^ c) ^ d, a, b, x, s, t)); } static function md5_ii(a, b, c, d, x, s, t) { return(md5_cmn(c ^ (b | (d ^ 4294967000)), a, b, x, s, t)); } static function bit_rol(num, cnt) { return((num << cnt) | (num >>> (32 - cnt))); } static function safe_add(x, y) { var _local1 = (x & 65535) + (y & 65535); var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16); return((_local2 << 16) | (_local1 & 65535)); } static function str2binl(str) { var _local2 = new Array(); var _local4 = 255; var _local1 = 0; while (_local1 < (str.length * 8)) { _local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32)); _local1 = _local1 + 8; } return(_local2); } static function binl2hex(binarray) { var _local3 = new String(""); var _local4 = new String("0123456789abcdef"); var _local1 = 0; while (_local1 < (binarray.length * 4)) { _local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15)); _local1++; } return(_local3); } }
Symbol 144 MovieClip Frame 5
_root.groundfire = true;
Symbol 144 MovieClip Frame 6
_parent.nextFrame();
Symbol 153 MovieClip Frame 4
_root.groundfire = false; _parent.gotoAndStop(1);
Instance of Symbol 138 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { _parent.gotoAndStop(2); } }
Instance of Symbol 144 MovieClip in Symbol 154 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.lasers == true) { this.play(); } else { _parent.gotoAndStop(4); } }
Instance of Symbol 149 MovieClip in Symbol 154 MovieClip Frame 3
onClipEvent (load) { _root.groundfire = true; } onClipEvent (enterFrame) { if (_root.lasers == false) { _parent.nextFrame(); } }
Instance of Symbol 153 MovieClip in Symbol 154 MovieClip Frame 4
onClipEvent (load) { _root.groundfire = true; }
Symbol 159 MovieClip Frame 17
prevFrame();
Symbol 161 MovieClip Frame 17
prevFrame();
Symbol 163 MovieClip Frame 17
prevFrame();
Symbol 165 MovieClip Frame 17
prevFrame();
Symbol 191 MovieClip Frame 10
stop();
Symbol 192 MovieClip Frame 2
_root.spawnx = _x; _root.spawny = _y + 10; duplicateMovieClip (_root.manleft, "manleft" + _root.i, _root.i); _root.i++; duplicateMovieClip (_root.manright, "manright" + _root.i, _root.i); _root.i++;
Symbol 197 MovieClip Frame 11
stop();
Symbol 199 MovieClip Frame 793
_root.medal_popup.unlockMedal("Failure to Communicate"); _root.achieveSound.start(0, 1); stop();
Symbol 200 MovieClip Frame 330
stop();
Symbol 211 MovieClip Frame 1
function unlockMedal(m_name) { clearInterval(pop_delay); var _local2 = com.Newgrounds.NewgroundsAPI.getMedals(); var _local1 = null; for (i in _local2) { if (_local2[i].medal_name == m_name) { _local1 = _local2[i]; medal_name = _local1.medal_name; medal_value = _local1.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;
Symbol 211 MovieClip Frame 10
var myBitmapData = flash.display.BitmapData.loadBitmap(medal_name + ".gif"); medal_icon.attachBitmap(myBitmapData, 111); stop();

Library Items

Symbol 1 Sound [achievement]
Symbol 2 Sound [anger]
Symbol 3 Bitmap [Failure to Communicate.gif]
Symbol 4 BitmapUsed by:5 77
Symbol 5 GraphicUses:4Used by:Timeline
Symbol 6 GraphicUsed by:11
Symbol 7 GraphicUsed by:11
Symbol 8 FontUsed by:9 12 13
Symbol 9 TextUses:8Used by:11
Symbol 10 GraphicUsed by:11
Symbol 11 ButtonUses:6 7 9 10Used by:Timeline
Symbol 12 TextUses:8Used by:Timeline
Symbol 13 TextUses:8Used by:Timeline
Symbol 14 GraphicUsed by:63
Symbol 15 GraphicUsed by:16 52
Symbol 16 MovieClipUses:15Used by:63
Symbol 17 GraphicUsed by:63
Symbol 18 GraphicUsed by:63
Symbol 19 GraphicUsed by:63
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:22
Symbol 22 MovieClipUses:21Used by:51
Symbol 23 GraphicUsed by:51
Symbol 24 GraphicUsed by:25 26
Symbol 25 MovieClipUses:24Used by:51
Symbol 26 MovieClipUses:24Used by:51
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:49
Symbol 29 GraphicUsed by:33
Symbol 30 GraphicUsed by:33
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:33 36
Symbol 33 MovieClipUses:29 30 32Used by:47
Symbol 34 GraphicUsed by:36
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:34 35 32Used by:47
Symbol 37 GraphicUsed by:40
Symbol 38 GraphicUsed by:40 43
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:37 38 39Used by:44
Symbol 41 GraphicUsed by:43
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:41 38 42Used by:44
Symbol 44 MovieClipUses:40 43Used by:47
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:45Used by:47
Symbol 47 MovieClipUses:33 36 44 46Used by:48
Symbol 48 MovieClipUses:47Used by:49
Symbol 49 MovieClipUses:28 48Used by:51
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:22 23 25 26 49 50Used by:63
Symbol 52 ButtonUses:15Used by:63
Symbol 53 GraphicUsed by:55
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClipUses:53 54Used by:63
Symbol 56 GraphicUsed by:61
Symbol 57 GraphicUsed by:61
Symbol 58 GraphicUsed by:61
Symbol 59 GraphicUsed by:61
Symbol 60 GraphicUsed by:61
Symbol 61 ButtonUses:56 57 58 59 60Used by:63
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClipUses:14 16 17 18 19 51 52 55 61 62Used by:Timeline
Symbol 64 GraphicUsed by:75
Symbol 65 GraphicUsed by:66
Symbol 66 ButtonUses:65Used by:75
Symbol 67 FontUsed by:68 71 73
Symbol 68 TextUses:67Used by:75
Symbol 69 FontUsed by:70 72 74 205
Symbol 70 TextUses:69Used by:75
Symbol 71 TextUses:67Used by:75
Symbol 72 TextUses:69Used by:75
Symbol 73 TextUses:67Used by:75
Symbol 74 TextUses:69Used by:75
Symbol 75 MovieClipUses:64 66 68 70 71 72 73 74Used by:Timeline
Symbol 76 GraphicUsed by:Timeline
Symbol 77 GraphicUses:4Used by:212  Timeline
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:78Used by:Timeline
Symbol 213 MovieClip [__Packages.com.Newgrounds.NewgroundsAPIError]
Symbol 214 MovieClip [__Packages.com.Newgrounds.BaseN]
Symbol 215 MovieClip [__Packages.com.Newgrounds.NewgroundsAPI]
Symbol 216 MovieClip [__Packages.com.Newgrounds.RC4]
Symbol 217 MovieClip [__Packages.com.Newgrounds.JSON]
Symbol 218 MovieClip [__Packages.com.Newgrounds.NewgroundsAPISaveFile]
Symbol 219 MovieClip [__Packages.com.Newgrounds.ImageScanner]
Symbol 220 MovieClip [__Packages.com.Newgrounds.MD5]
Symbol 80 GraphicUsed by:Timeline
Symbol 81 GraphicUsed by:Timeline
Symbol 82 GraphicUsed by:Timeline
Symbol 83 GraphicUsed by:Timeline
Symbol 84 GraphicUsed by:86  Timeline
Symbol 85 GraphicUsed by:86  Timeline
Symbol 86 MovieClipUses:84 85Used by:Timeline
Symbol 87 GraphicUsed by:Timeline
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:Timeline
Symbol 90 GraphicUsed by:Timeline
Symbol 91 GraphicUsed by:Timeline
Symbol 92 GraphicUsed by:Timeline
Symbol 93 GraphicUsed by:Timeline
Symbol 94 GraphicUsed by:Timeline
Symbol 95 GraphicUsed by:Timeline
Symbol 96 GraphicUsed by:Timeline
Symbol 97 GraphicUsed by:Timeline
Symbol 98 GraphicUsed by:Timeline
Symbol 99 GraphicUsed by:Timeline
Symbol 100 GraphicUsed by:Timeline
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:Timeline
Symbol 103 GraphicUsed by:104
Symbol 104 MovieClipUses:103Used by:Timeline
Symbol 105 GraphicUsed by:Timeline
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:Timeline
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:108Used by:Timeline
Symbol 110 GraphicUsed by:115
Symbol 111 GraphicUsed by:115
Symbol 112 GraphicUsed by:115
Symbol 113 GraphicUsed by:115
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:110 111 112 113 114Used by:Timeline
Symbol 116 GraphicUsed by:Timeline
Symbol 117 GraphicUsed by:Timeline
Symbol 118 GraphicUsed by:Timeline
Symbol 119 GraphicUsed by:Timeline
Symbol 120 GraphicUsed by:Timeline
Symbol 121 GraphicUsed by:Timeline
Symbol 122 GraphicUsed by:Timeline
Symbol 123 GraphicUsed by:Timeline
Symbol 124 GraphicUsed by:Timeline
Symbol 125 GraphicUsed by:Timeline
Symbol 126 GraphicUsed by:Timeline
Symbol 127 GraphicUsed by:Timeline
Symbol 128 GraphicUsed by:Timeline
Symbol 129 GraphicUsed by:Timeline
Symbol 130 ShapeTweeningUsed by:133
Symbol 131 GraphicUsed by:133
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClipUses:130 131 132Used by:Timeline
Symbol 134 GraphicUsed by:136
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:134 135Used by:Timeline
Symbol 137 GraphicUsed by:138
Symbol 138 MovieClipUses:137Used by:154
Symbol 139 GraphicUsed by:144
Symbol 140 GraphicUsed by:144
Symbol 141 GraphicUsed by:144
Symbol 142 GraphicUsed by:144
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClipUses:139 140 141 142 143Used by:154
Symbol 145 GraphicUsed by:149
Symbol 146 GraphicUsed by:149
Symbol 147 GraphicUsed by:149
Symbol 148 GraphicUsed by:149
Symbol 149 MovieClipUses:145 146 147 148Used by:154
Symbol 150 GraphicUsed by:153
Symbol 151 GraphicUsed by:153
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClipUses:150 151 152Used by:154
Symbol 154 MovieClipUses:138 144 149 153Used by:Timeline
Symbol 155 GraphicUsed by:Timeline
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClipUses:156Used by:Timeline
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClipUses:158Used by:Timeline
Symbol 160 GraphicUsed by:161
Symbol 161 MovieClipUses:160Used by:Timeline
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClipUses:162Used by:Timeline
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:164Used by:Timeline
Symbol 166 GraphicUsed by:172
Symbol 167 GraphicUsed by:172
Symbol 168 GraphicUsed by:172
Symbol 169 GraphicUsed by:172
Symbol 170 GraphicUsed by:172
Symbol 171 GraphicUsed by:172
Symbol 172 MovieClipUses:166 167 168 169 170 171Used by:Timeline
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:179
Symbol 175 GraphicUsed by:179
Symbol 176 GraphicUsed by:179
Symbol 177 GraphicUsed by:179
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:174 175 176 177 178Used by:Timeline
Symbol 180 GraphicUsed by:192
Symbol 181 GraphicUsed by:191
Symbol 182 GraphicUsed by:191
Symbol 183 GraphicUsed by:191
Symbol 184 GraphicUsed by:191
Symbol 185 GraphicUsed by:191
Symbol 186 GraphicUsed by:191
Symbol 187 GraphicUsed by:191
Symbol 188 GraphicUsed by:191
Symbol 189 GraphicUsed by:191
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClipUses:181 182 183 184 185 186 187 188 189 190Used by:192
Symbol 192 MovieClipUses:180 191Used by:Timeline
Symbol 193 GraphicUsed by:197
Symbol 194 FontUsed by:195 196 202
Symbol 195 TextUses:194Used by:197
Symbol 196 TextUses:194Used by:197
Symbol 197 MovieClipUses:193 195 196Used by:200
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:198Used by:200
Symbol 200 MovieClipUses:197 199Used by:Timeline
Symbol 201 GraphicUsed by:211
Symbol 202 TextUses:194Used by:211
Symbol 203 GraphicUsed by:204
Symbol 204 MovieClipUses:203Used by:211
Symbol 205 EditableTextUses:69Used by:211
Symbol 206 FontUsed by:207 208
Symbol 207 TextUses:206Used by:211
Symbol 208 EditableTextUses:206Used by:211
Symbol 209 GraphicUsed by:210
Symbol 210 MovieClipUses:209Used by:211
Symbol 211 MovieClipUses:201 202 204 205 207 208 210Used by:Timeline
Symbol 212 MovieClipUses:77Used by:Timeline
Streaming Sound 1Used by:Timeline

Instance Names

"background"Frame 592Symbol 133 MovieClip
"sun"Frame 592Symbol 136 MovieClip
"eyebeams"Frame 592Symbol 154 MovieClip
"manleft"Frame 592Symbol 172 MovieClip
"manright"Frame 592Symbol 172 MovieClip
"fire"Frame 592Symbol 179 MovieClip
"medal_popup"Frame 592Symbol 211 MovieClip
"bar"Symbol 63 MovieClip Frame 1Symbol 16 MovieClip
"tankLogo"Symbol 63 MovieClip Frame 1Symbol 51 MovieClip
"loadingText"Symbol 63 MovieClip Frame 1Symbol 55 MovieClip
"hit"Symbol 179 MovieClip Frame 1Symbol 174 MovieClip
"medal_icon"Symbol 211 MovieClip Frame 10Symbol 210 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "achievement"
ExportAssets (56)Timeline Frame 1Symbol 2 as "anger"
ExportAssets (56)Timeline Frame 1Symbol 3 as "Failure to Communicate.gif"
ExportAssets (56)Timeline Frame 1Symbol 213 as "__Packages.com.Newgrounds.NewgroundsAPIError"
ExportAssets (56)Timeline Frame 1Symbol 214 as "__Packages.com.Newgrounds.BaseN"
ExportAssets (56)Timeline Frame 1Symbol 215 as "__Packages.com.Newgrounds.NewgroundsAPI"
ExportAssets (56)Timeline Frame 1Symbol 216 as "__Packages.com.Newgrounds.RC4"
ExportAssets (56)Timeline Frame 1Symbol 217 as "__Packages.com.Newgrounds.JSON"
ExportAssets (56)Timeline Frame 1Symbol 218 as "__Packages.com.Newgrounds.NewgroundsAPISaveFile"
ExportAssets (56)Timeline Frame 1Symbol 219 as "__Packages.com.Newgrounds.ImageScanner"
ExportAssets (56)Timeline Frame 1Symbol 220 as "__Packages.com.Newgrounds.MD5"

Labels

"loaded"Symbol 63 MovieClip Frame 2

Dynamic Text Variables

medal_nameSymbol 205 EditableText"medal name "
medal_valueSymbol 208 EditableText"100pts "




http://swfchan.com/13/61706/info.shtml
Created: 15/4 -2019 10:29:30 Last modified: 15/4 -2019 10:29:30 Server time: 22/12 -2024 10:50:39