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

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

API_17891c1d8cb5e7d6a713dfe97d436647.swf

This is the info page for
Flash #87556

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


ActionScript [AS1/AS2]
Frame 1
APIBootstrap.main(this); _lockroot = true;
Symbol 20480 MovieClip [__Packages.com.kongregate.client.RequestHandler] Frame 0
class com.kongregate.client.RequestHandler { var mResponseHandlers; function RequestHandler () { reset(); } function reset() { mNextRequestID = 0; mResponseHandlers = new Object(); } function addRequest(callback, thisObject) { if (callback != undefined) { mResponseHandlers[getRequestID()] = (thisObject ? (com.kongregate.common.util.Utils.bind(callback, thisObject)) : (callback)); } } function getRequestID() { return(mNextRequestID); } function nextRequest() { mNextRequestID++; } function getResponseHandler(requestID) { return(mResponseHandlers[requestID]); } function removeResponseHandler(requestID) { mResponseHandlers[requestID] = undefined; } function fireResponse(requestID, args) { var _local4 = getResponseHandler(requestID); if (_local4) { _local4(args); removeResponseHandler(requestID); } } static var mNextRequestID = 0; }
Symbol 20481 MovieClip [__Packages.com.kongregate.common.comm.MessageHandler] Frame 0
class com.kongregate.common.comm.MessageHandler { function MessageHandler () { } }
Symbol 20482 MovieClip [__Packages.com.kongregate.client.SaveGameServices] Frame 0
class com.kongregate.client.SaveGameServices extends com.kongregate.client.RequestHandler implements com.kongregate.common.comm.MessageHandler { var addRequest, getRequestID, fireResponse; function SaveGameServices () { super(); } static function getInstance() { if (!mInstance) { mInstance = new com.kongregate.client.SaveGameServices(); } return(mInstance); } function save(game, callback, thisObject) { addRequest(callback, thisObject); var _local5 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_SAVE); _local5.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, game); if (!com.kongregate.client.KongregateServices.getInstance().sendMessage(_local5)) { var _local6 = getRequestID(); fireResponse(_local6, {success:false, error:com.kongregate.common.error.Error.SAVE_TOO_LARGE}); } } function load(callback, thisObject) { addRequest(callback, thisObject); var _local4 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_LOAD); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local4); } function clear(callback, thisObject) { addRequest(callback, thisObject); var _local4 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_DELETE); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local4); } function handleMessage(msg) { if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_GAME_SAVE) { fireResponse(msg.getRequestID(), {success:msg.isSuccessful(), error:msg.getError()}); } else if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_GAME_LOAD) { var _local3 = new Object(); _local3.data = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_DATA); _local3.success = msg.isSuccessful(); _local3.error = msg.getError(); fireResponse(msg.getRequestID(), _local3); } else if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_GAME_DELETE) { fireResponse(msg.getRequestID(), {success:msg.isSuccessful(), error:msg.getError()}); } } static var mInstance = undefined; }
Symbol 20483 MovieClip [__Packages.Base64] Frame 0
#initclip if (!Base64) { //(_global.Base64 = function () { super(); }) extends Object var _local1 = (_global.Base64 /* register */).prototype; (_global.Base64 /* register */).Encode = function (str) { var _local3 = new Base64(); return(_local3.encodeBase64(str)); }; (_global.Base64 /* register */).Decode = function (str) { var _local3 = new Base64(); return(_local3.decodeBase64(str)); }; (_global.Base64 /* register */).StringReplaceAll = function (source, find, replacement) { return(source.split(find).join(replacement)); }; (_global.Base64 /* register */).InitReverseChars = function () { Base64._CharsReverseLookup = new Array(); var _local2 = 0; for ( ; _local2 < Base64._Chars.length ; _local2++) { Base64._CharsReverseLookup[Base64._Chars[_local2]] = _local2; } return(true); }; (_global.Base64 /* register */).UrlDecode = function (str) { str = Base64.StringReplaceAll(str, "+", " "); str = _global.unescape(str); return(str); }; (_global.Base64 /* register */).UrlEncode = function (str) { str = _global.escape(str); str = Base64.StringReplaceAll(str, "+", "%2B"); str = Base64.StringReplaceAll(str, "%20", "+"); return(str); }; _local1.setBase64Str = function (str) { this._base64Str = str; this._base64Count = 0; }; _local1.readBase64 = function () { if (!this._base64Str) { return(Base64._EndOfInput); } if (this._base64Count >= this._base64Str.length) { return(Base64._EndOfInput); } var _local2 = this._base64Str.charCodeAt(this._base64Count) & 255; this._base64Count++; return(_local2); }; _local1.encodeBase64 = function (str) { this.setBase64Str(str); var _local3 = ""; var _local4 = new Array(3); var _local5 = 0; var _local6 = false; while ((!_local6) && (((_local4[0] = this.readBase64())) != Base64._EndOfInput)) { _local4[1] = this.readBase64(); _local4[2] = this.readBase64(); _local3 = _local3 + Base64._Chars[_local4[0] >> 2]; if (_local4[1] != Base64._EndOfInput) { _local3 = _local3 + Base64._Chars[((_local4[0] << 4) & 48) | (_local4[1] >> 4)]; if (_local4[2] != Base64._EndOfInput) { _local3 = _local3 + Base64._Chars[((_local4[1] << 2) & 60) | (_local4[2] >> 6)]; _local3 = _local3 + Base64._Chars[_local4[2] & 63]; } else { _local3 = _local3 + Base64._Chars[(_local4[1] << 2) & 60]; _local3 = _local3 + "="; _local6 = true; } } else { _local3 = _local3 + Base64._Chars[(_local4[0] << 4) & 48]; _local3 = _local3 + "="; _local3 = _local3 + "="; _local6 = true; } _local5 = _local5 + 4; if (_local5 >= 76) { _local3 = _local3 + newline; _local5 = 0; } } return(_local3); }; _local1.readReverseBase64 = function () { if (!this._base64Str) { return(Base64._EndOfInput); } while (true) { if (this._base64Count >= this._base64Str.length) { return(Base64._EndOfInput); } var _local2 = this._base64Str.charAt(this._base64Count); this._base64Count++; if (Base64._CharsReverseLookup[_local2]) { return(Base64._CharsReverseLookup[_local2]); } if (_local2 == "A") { return(0); } } return(Base64._EndOfInput); }; _local1.ntos = function (n) { var _local3 = n.toString(16); if (_local3.length == 1) { _local3 = "0" + _local3; } _local3 = "%" + _local3; return(_global.unescape(_local3)); }; _local1.decodeBase64 = function (str) { this.setBase64Str(str); var _local3 = ""; var _local4 = new Array(4); var _local5 = false; while ((!_local5) && ((((_local4[0] = this.readReverseBase64())) != Base64._EndOfInput) && (((_local4[1] = this.readReverseBase64())) != Base64._EndOfInput))) { _local4[2] = this.readReverseBase64(); _local4[3] = this.readReverseBase64(); _local3 = _local3 + this.ntos(((_local4[0] << 2) & 255) | (_local4[1] >> 4)); if (_local4[2] != Base64._EndOfInput) { _local3 = _local3 + this.ntos(((_local4[1] << 4) & 255) | (_local4[2] >> 2)); if (_local4[3] != Base64._EndOfInput) { _local3 = _local3 + this.ntos(((_local4[2] << 6) & 255) | _local4[3]); } else { _local5 = true; } } else { _local5 = true; } } return(_local3); }; _local1.toHex = function (n) { var _local3 = ""; var _local4 = true; var _local5 = 32; while (_local5 > 0) { _local5 = _local5 - 4; var _local6 = (n >> _local5) & 15; if ((!_local4) || (_local6 != 0)) { _local4 = false; _local3 = _local3 + Base64._Digits[_local6]; } } return(((_local3 == "") ? "0" : (_local3))); }; _local1.pad = function (str, len, pad) { var _local5 = str; var _local6 = str.length; for ( ; _local6 < len ; _local6++) { _local5 = pad + _local5; } return(_local5); }; _local1.encodeHex = function (str) { var _local3 = ""; var _local4 = 0; for ( ; _local4 < str.length ; _local4++) { _local3 = _local3 + this.pad(this.toHex(str.charCodeAt(_local4) & 255), 2, "0"); } return(_local3); }; _local1.decodeHex = function (str) { var _local3 = ""; var _local4 = ""; var _local5 = 0; for ( ; _local5 < str.length ; _local5++) { _local4 = _local4 + str.charAt(_local5); if (_local4.length == 2) { _local3 = _local3 + this.ntos(_global.parseInt("0x" + _local4)); _local4 = ""; } } return(_local3); }; ASSetPropFlags(_local1, null, 1); (_global.Base64 /* register */)._EndOfInput = -1; (_global.Base64 /* register */)._Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"); (_global.Base64 /* register */)._CharsReverseLookupInited = Base64.InitReverseChars(); (_global.Base64 /* register */)._Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"); } #endinitclip
Symbol 20484 MovieClip [__Packages.com.kongregate.common.comm.local.MessageConnectionListener] Frame 0
class com.kongregate.common.comm.local.MessageConnectionListener { function MessageConnectionListener () { } }
Symbol 20485 MovieClip [__Packages.com.kongregate.common.comm.local.DefaultMessageListener] Frame 0
class com.kongregate.common.comm.local.DefaultMessageListener implements com.kongregate.common.comm.local.MessageConnectionListener { function DefaultMessageListener () { } function onMessage(msg) { if (message != undefined) { message(msg); } } function onConnect() { if (connect != undefined) { connect(); } } function onError() { if (error != undefined) { error(); } } function onClose() { if (close != undefined) { close(); } } var message = undefined; var connect = undefined; var error = undefined; var close = undefined; }
Symbol 20486 MovieClip [__Packages.com.kongregate.common.error.Error] Frame 0
class com.kongregate.common.error.Error { function Error () { } static function getErrorDescription(code) { if (ERROR_CODES[code]) { return(ERROR_CODES[code]); } return("Unknown error code: " + code); } static var NONE = 0; static var NOT_AUTHORIZED = 1; static var SERVER_ERROR = 2; static var SAVE_TOO_LARGE = 3; static var NOT_INITIALIZED = 4; static var ERROR_CODES = {nogame:"Game not found", not_host:"You are not the game host", game_started:"The game has already started", server:"Server error", owngame:"You can not join your own game", full:"The game is full", hostfailed:"Failed to host a game"}; }
Symbol 20487 MovieClip [__Packages.com.kongregate.client.ChatServices] Frame 0
class com.kongregate.client.ChatServices implements com.kongregate.common.comm.MessageHandler { function ChatServices () { } static function getInstance() { if (mInstance == undefined) { mInstance = new com.kongregate.client.ChatServices(); } return(mInstance); } function handleMessage(msg) { if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_CHAT_MSG) { var _local3 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_DATA); if (onUserMessage != undefined) { onUserMessage({text:_local3}); } } } function displayMessage(text, username) { var _local4 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_CHAT_DISPLAY); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_USER, username); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, text); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local4); } function displayCanvasImage(name, url, position) { var _local5 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_CHAT_CANVAS_ELEMENT); var _local6 = {type:"image", name:name, url:url, position:position}; _local5.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, _local6); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local5); } function displayCanvasText(name, text, position, options) { var _local6 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_CHAT_CANVAS_ELEMENT); var _local7 = {type:"text", name:name, text:text, position:position, options:options}; _local6.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, _local7); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local6); } function removeCanvasObject(name) { var _local3 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_CHAT_CANVAS_ELEMENT); var _local4 = {type:"remove", name:name}; _local3.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, _local4); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local3); } function showTab(name, description) { var _local4 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_CHAT_TAB); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_NAME, name); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_DESCRIPTION, description); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local4); } function showDefaultTab() { showTab(DEFAULT_TAB, undefined); } function closeTab() { showDefaultTab(); } function showSignInBox() { com.kongregate.client.KongregateServices.getInstance().showSignInBox(); } static var DEFAULT_TAB = "Default"; static var mInstance = undefined; var onUserMessage = undefined; }
Symbol 20488 MovieClip [__Packages.com.kongregate.common.stats.Statistic] Frame 0
class com.kongregate.common.stats.Statistic { var mName, mDisplayName, mType, mShow, mDesc; function Statistic (name, displayName, type, show, desc) { mName = name; mDisplayName = displayName; mType = type; mShow = show; mDesc = desc; } function getName() { return(mName); } function getDisplayName() { return(mDisplayName); } function getType() { return(mType); } function isDisplayedInTable() { return(mShow); } function isGreaterThanOrEqualTo(left, right) { return(comparator(left, right) > -1); } function comparator(left, right) { if (left == right) { return(0); } if (mType == TYPE_REPLACE) { return(0); } if (null == left) { return(1); } if (null == right) { return(-1); } var _local4 = -1; if (left > right) { _local4 = 1; } if (mType == TYPE_MIN) { _local4 = _local4 * -1; } return(_local4); } function toHash() { return({name:mName, stat_type:mType, description:mDesc}); } function sort(array) { var _local3 = new Array(); _local3 = _local3.concat(array); _local3.sort(comparator.bind(this)); return(_local3); } static var TYPE_MAX = "Max"; static var TYPE_MIN = "Min"; static var TYPE_ADD = "Add"; static var TYPE_REPLACE = "Replace"; static var HIGH_SCORE = "HighScore"; static var SORT_ASCENDING = "asc"; static var SORT_DESCENDING = "desc"; }
Symbol 20489 MovieClip [__Packages.AbstractAPIBootstrap] Frame 0
class AbstractAPIBootstrap { static var _subclassListener; function AbstractAPIBootstrap () { } static function init(callbackListener) { System.security.allowDomain("*"); _subclassListener = callbackListener; _global.kongregate_vars = new Object(); for (var i in _level0) { if (i != "kongregate") { _global.kongregate_vars[i] = _level0[i]; } } var _local3 = new MovieClipLoader(); var _local4 = new Object(); _local4.onLoadStart = onAbstractLoadStart; _local4.onLoadInit = onAbstractLoadInit; _local3.addListener(_local4); _local3.loadClip(_global.kongregate_vars.game_swf, "_level0"); } static function onAbstractLoadStart(target) { target._lockroot = true; for (var i in _global.kongregate_vars) { target[i] = _global.kongregate_vars[i]; _global.ASSetPropFlags(target, i, 7); _global[i] = _global.kongregate_vars[i]; _global.ASSetPropFlags(_global, i, 7); } com.kongregate.common.util.Log.init(); com.kongregate.common.util.Log.info("Creating services..."); target.kongregateServices = (_global.kongregateServices = com.kongregate.client.KongregateServices.getInstance()); target.kongregateScores = (_global.kongregateScores = com.kongregate.client.HighScoreServices.getInstance()); target.kongregateStats = (_global.kongregateStats = com.kongregate.client.StatServices.getInstance()); target.kongregateChat = (_global.kongregateChat = com.kongregate.client.ChatServices.getInstance()); target.kongregateMtx = (_global.kongregateMtx = com.kongregate.client.MicrotransactionServices.getInstance()); target.kongregate = (_global.kongregate = {services:com.kongregate.client.KongregateServices.getInstance(), scores:com.kongregate.client.HighScoreServices.getInstance(), stats:com.kongregate.client.StatServices.getInstance(), chat:com.kongregate.client.ChatServices.getInstance(), mtx:com.kongregate.client.MicrotransactionServices.getInstance()}); _global.ASSetPropFlags(_global, ["kongregate", "kongregateServices", "kongregateScores", "kongregateStats", "kongregateChat", "kongregateMtx"], 7); _global.ASSetPropFlags(target, ["kongregate", "kongregateServices", "kongregateScores", "kongregateStats", "kongregateChat", "kongregateMtx"], 7); _subclassListener.onLoadStart(target); } static function onAbstractLoadInit(target) { _subclassListener.onLoadInit(target); } //ASSetPropFlags(_local1, null, 1); }
Symbol 20490 MovieClip [__Packages.APIBootstrap] Frame 0
#initclip if (!APIBootstrap) { //(_global.APIBootstrap = function () { super(); }) extends AbstractAPIBootstrap var _local1 = (_global.APIBootstrap /* register */).prototype; (_global.APIBootstrap /* register */).main = function () { AbstractAPIBootstrap.init(); }; ASSetPropFlags(_local1, null, 1); } #endinitclip
Symbol 20491 MovieClip [__Packages.com.kongregate.client.MicrotransactionServices] Frame 0
class com.kongregate.client.MicrotransactionServices extends com.kongregate.client.RequestHandler { var fireResponse, addRequest; function MicrotransactionServices () { super(); com.kongregate.common.comm.external.ExternalMessageDispatcher.getInstance().addGlobalListener(com.kongregate.common.util.Utils.bind(handlePurchaseResult, this)); } static function getInstance() { if (!mInstance) { mInstance = new com.kongregate.client.MicrotransactionServices(); } return(mInstance); } function handleMessage(msg) { var _local3 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_REQUEST_ID); var _local4 = {}; switch (msg.getOpcode()) { case com.kongregate.common.comm.Opcode.OP_ITEM_LIST : com.kongregate.common.util.Log.info("Item list received"); _local4 = {success:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_SUCCESS), data:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_DATA)}; fireResponse(_local3, _local4); break; case com.kongregate.common.comm.Opcode.OP_ITEM_INSTANCES : com.kongregate.common.util.Log.info("Item instance list received"); _local4 = {success:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_SUCCESS), data:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_DATA), username:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_USER)}; fireResponse(_local3, _local4); break; case com.kongregate.common.comm.Opcode.OP_USE_ITEM_INSTANCE : com.kongregate.common.util.Log.info("Item use result"); _local4 = {success:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_SUCCESS), id:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_ID)}; fireResponse(_local3, _local4); } } function purchaseItems(items, callback) { if (com.kongregate.client.KongregateServices.getInstance().isGuest()) { if (callback != undefined) { callback({success:false, error:"guest"}); } return(undefined); } if (items && (items.length > 0)) { mPurchaseCallback = callback; attemptPurchaseThroughLocalConnection(items); } else { throw new Error("purchaseItems requires a non-empty item identifier array"); } } function handlePurchaseResult(msg) { if (msg.getOpcode() != "purchase_result") { return(undefined); } com.kongregate.common.util.Log.info("Purchase result: " + msg.toString()); if (mPurchaseCallback != undefined) { mPurchaseCallback({success:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_SUCCESS), error:msg.getParam(com.kongregate.common.comm.Opcode.PARAM_ERROR)}); } } function attemptPurchaseThroughLocalConnection(items) { var _local3 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_ITEM_CHECKOUT); _local3.addParam(com.kongregate.common.comm.Opcode.PARAM_ITEMS, items); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local3); } function requestItemList(tags, callback, thisObject) { com.kongregate.common.util.Log.info("Requesting item list, tags: " + tags); var _local5 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_ITEM_LIST); if ((tags != undefined) && (tags.length > 0)) { _local5.addParam(com.kongregate.common.comm.Opcode.PARAM_ITEM_TAGS, tags); } addRequest(callback, thisObject); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local5); } function requestUserItemList(username, callback, thisObject) { var _local5 = com.kongregate.client.KongregateServices.getInstance(); if ((username == undefined) || (username.length == 0)) { username = _local5.getUsername(); } var _local6 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_ITEM_INSTANCES); _local6.addParam(com.kongregate.common.comm.Opcode.PARAM_USER, username); addRequest(callback, thisObject); _local5.sendMessage(_local6); } function useItemInstance(itemInstanceId, callback, thisObject) { var _local5 = com.kongregate.client.KongregateServices.getInstance(); var _local6 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_USE_ITEM_INSTANCE); _local6.addParam(com.kongregate.common.comm.Opcode.PARAM_ID, itemInstanceId); addRequest(callback, thisObject); _local5.sendMessage(_local6); } static var mInstance = undefined; var mPurchaseCallback = undefined; }
Symbol 20492 MovieClip [__Packages.com.kongregate.common.util.JSON] Frame 0
class com.kongregate.common.util.JSON { function JSON () { } static function encode(arg) { return(stringify(arg)); } static function decode(arg) { return(parse(arg)); } static function stringify(arg) { var _local6 = ""; switch (typeof(arg)) { case "object" : if (arg) { if (arg instanceof Array) { var _local4 = 0; for ( ; _local4 < arg.length ; _local4++) { var _local7 = stringify(arg[_local4]); if (_local6) { _local6 = _local6 + ","; } _local6 = _local6 + _local7; } return(("[" + _local6) + "]"); } if (typeof(arg.toString) != "undefined") { for (var _local4 in arg) { var _local7 = arg[_local4]; if ((typeof(_local7) != "undefined") && (typeof(_local7) != "function")) { _local7 = stringify(_local7); if (_local6) { _local6 = _local6 + ","; } _local6 = _local6 + ((stringify(_local4) + ":") + _local7); } } return(("{" + _local6) + "}"); } } return("null"); case "number" : return((_global.isFinite(arg) ? (String(arg)) : "null")); case "string" : var _local5 = arg.length; _local6 = "\""; var _local4 = 0; for ( ; _local4 < _local5 ; _local4 = _local4 + 1) { var _local3 = arg.charAt(_local4); if (_local3 >= " ") { if ((_local3 == "\\") || (_local3 == "\"")) { _local6 = _local6 + "\\"; } _local6 = _local6 + _local3; } else { switch (_local3) { case "\b" : _local6 = _local6 + "\\b"; break; case "\f" : _local6 = _local6 + "\\f"; break; case newline : _local6 = _local6 + "\\n"; break; case "\r" : _local6 = _local6 + "\\r"; break; case "\t" : _local6 = _local6 + "\\t"; break; default : _local3 = _local3.charCodeAt(); _local6 = _local6 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16)); } } } return(_local6 + "\""); case "boolean" : return(String(arg)); } return("null"); } static function parse(text) { if ((text == null) || ((text == undefined) || ((text.length == 0) || (typeof(text) != "string")))) { return(new Object()); } var at = 0; var ch = " "; var _value; var _error = function (m) { }; var _next = function () { ch = text.charAt(at); at = at + 1; return(ch); }; var _white = function () { while (ch) { if (ch <= " ") { _next(); } else if (ch == "/") { switch (_next()) { case "/" : while (_next() && ((ch != newline) && (ch != "\r"))) { } break; case "*" : _next(); for(;;){ if (ch) { if (ch == "*") { if (_next() == "/") { _next(); // unexpected jump } } else { _next(); } } else { _error("Unterminated comment"); } }; break; default : _error("Syntax error"); } } else { break; } } }; var _string = function () { var _local3 = ""; var _local6 = false; if (ch == "\"") { while (_next()) { if (ch == "\"") { _next(); return(_local3); } if (ch == "\\") { switch (_next()) { case "b" : _local3 = _local3 + "\b"; break; case "f" : _local3 = _local3 + "\f"; break; case "n" : _local3 = _local3 + newline; break; case "r" : _local3 = _local3 + "\r"; break; case "t" : _local3 = _local3 + "\t"; break; case "u" : var _local5 = 0; var _local2 = 0; for ( ; _local2 < 4 ; _local2 = _local2 + 1) { var _local4 = _global.parseInt(_next(), 16); if (!_global.isFinite(_local4)) { _local6 = true; break; } _local5 = (_local5 * 16) + _local4; } if (_local6) { _local6 = false; break; } _local3 = _local3 + String.fromCharCode(_local5); break; default : _local3 = _local3 + ch; } } else { _local3 = _local3 + ch; } } } _error("Bad string"); }; var _array = function () { var _local2 = []; if (ch == "[") { _next(); _white(); if (ch == "]") { _next(); return(_local2); } while (ch) { _local2.push(_value()); _white(); if (ch == "]") { _next(); return(_local2); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad array"); }; var _object = function () { var _local3 = {}; if (ch == "{") { _next(); _white(); if (ch == "}") { _next(); return(_local3); } while (ch) { var _local2 = _string(); _white(); if (ch != ":") { break; } _next(); _local3[_local2] = _value(); _white(); if (ch == "}") { _next(); return(_local3); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad object"); }; var _number = function () { var _local2 = ""; if (ch == "-") { _local2 = "-"; _next(); } while ((ch >= "0") && (ch <= "9")) { _local2 = _local2 + ch; _next(); } if (ch == ".") { _local2 = _local2 + "."; while (_next() && ((ch >= "0") && (ch <= "9"))) { _local2 = _local2 + ch; } } var _local3 = 1 * _local2; if (!_global.isFinite(_local3)) { _error("Bad number"); } else { return(_local3); } }; 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 20493 MovieClip [__Packages.com.kongregate.common.comm.Message] Frame 0
class com.kongregate.common.comm.Message { var mOpcode, mParams; function Message () { mOpcode = ""; mParams = new Object(); } function setOpcode(opcode) { mOpcode = opcode; } function addParam(key, value) { mParams[key] = value; } function getOpcode() { return(mOpcode); } function getParam(key) { return(mParams[key]); } function getParams() { return(mParams); } function setParams(params) { mParams = params; } function getRequestID() { return(getParam(com.kongregate.common.comm.Opcode.PARAM_REQUEST_ID)); } function getMessageID() { return(getParam(com.kongregate.common.comm.Opcode.PARAM_MESSAGE_ID)); } function isSuccessful() { return(getParam(com.kongregate.common.comm.Opcode.PARAM_SUCCESS)); } function getError() { var _local2 = getParam(com.kongregate.common.comm.Opcode.PARAM_ERROR); return((_local2 ? (com.kongregate.common.error.Error.NONE) : (_local2))); } static function fromOpcode(opcode) { var _local3 = new com.kongregate.common.comm.Message(); _local3.setOpcode(opcode); return(_local3); } static function fromString(text) { var _local3 = com.kongregate.common.util.JSON.parse(text); var _local4 = fromOpcode(_local3.mOpcode); for (var key in _local3.mParams) { _local4.addParam(key, _local3.mParams[key]); } return(_local4); } function toString() { return(com.kongregate.common.util.JSON.stringify(this)); } function toBase64() { return(Base64.Encode(toString())); } static function fromBase64(base64) { return(fromString(Base64.Decode(base64))); } static function fromObject(obj) { var _local3 = fromOpcode(obj.mOpcode); _local3.setParams(obj.mParams); return(_local3); } static var mInitialized = false; }
Symbol 20494 MovieClip [__Packages.com.kongregate.client.StatServices] Frame 0
class com.kongregate.client.StatServices implements com.kongregate.common.comm.MessageHandler { var mQueue, mGameLifeCycleCustomCallbacks; function StatServices () { mQueue = new Array(); mGameLifeCycleCustomCallbacks = new Object(); } static function getInstance() { if (undefined == mInstance) { mInstance = new com.kongregate.client.StatServices(); } return(mInstance); } function handleMessage(msg) { switch (msg.getOpcode()) { case com.kongregate.common.comm.Opcode.OP_HELLO : if (mQueue.length > 0) { var _local3 = createSubmitMessage(); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local3); } break; case com.kongregate.common.comm.Opcode.OP_GAME_PAUSE : onGamePause(); break; case com.kongregate.common.comm.Opcode.OP_GAME_UNPAUSE : onGameUnpause(); break; case com.kongregate.common.comm.Opcode.OP_GAME_MUTE : onGameMute(); break; case com.kongregate.common.comm.Opcode.OP_GAME_UNMUTE : onGameUnmute(); break; case com.kongregate.common.comm.Opcode.OP_GAME_SET_MODE : onSetGameMode(msg.getParam("mode_name")); break; case com.kongregate.common.comm.Opcode.OP_GAME_RESTART : onGameRestart(); break; case com.kongregate.common.comm.Opcode.OP_GAME_SETTING_OFF : onGameSettingOff(msg.getParam("setting_name")); break; case com.kongregate.common.comm.Opcode.OP_GAME_SETTING_ON : onGameSettingOff(msg.getParam("setting_name")); break; case com.kongregate.common.comm.Opcode.OP_GAME_MENU : onGameMenu(); break; case com.kongregate.common.comm.Opcode.OP_GAME_CONTINUE : if ("function" == typeof(mGameLifeCycleCustomCallbacks.onGameContinue)) { mGameLifeCycleCustomCallbacks.onGameContinue(); } onGameContinue(); } } function isQueueRequired() { return(!com.kongregate.client.KongregateServices.getInstance().isConnected()); } function queueSubmit(name, value) { if ((name != undefined) && (value != undefined)) { mQueue.push({name:name, value:value}); } } function createSubmitMessage(name, value) { var _local4 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_STATS_SUBMIT); var _local5 = new Array(); var _local6 = 0; for ( ; _local6 < mQueue.length ; _local6++) { _local5.push(mQueue[_local6]); } mQueue.splice(0); if ((name != undefined) && (value != undefined)) { _local5.push({name:name, value:value}); } _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_STATS, _local5); return(_local4); } function submit(name, value) { if (isQueueRequired()) { queueSubmit(name, value); } else { var _local4 = createSubmitMessage(name, value); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local4); } } function submitArray(stats) { var _local3 = 0; for ( ; _local3 < stats.length ; _local3++) { queueSubmit(stats[_local3].name, stats[_local3].value); } if (!isQueueRequired()) { var _local4 = createSubmitMessage(); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local4); } } function gameStart() { com.kongregate.client.KongregateServices.getInstance().sendMessage(com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_START)); } function gameEnd() { com.kongregate.client.KongregateServices.getInstance().sendMessage(com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_END)); } function gameBreak(onGameContinueCallback) { mGameLifeCycleCustomCallbacks.onGameContinue = onGameContinueCallback; com.kongregate.client.KongregateServices.getInstance().sendMessage(com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_BREAK)); } function gamePause() { com.kongregate.client.KongregateServices.getInstance().sendMessage(com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_PAUSE)); } function gameUnpause() { com.kongregate.client.KongregateServices.getInstance().sendMessage(com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_UNPAUSE)); } function gameMute() { com.kongregate.client.KongregateServices.getInstance().sendMessage(com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_MUTE)); } function gameUnmute() { com.kongregate.client.KongregateServices.getInstance().sendMessage(com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_GAME_UNMUTE)); } function onGamePause() { } function onGameUnpause() { } function onGameMute() { } function onGameUnmute() { } function onSetGameMode(game_mode) { } function onGameSettingOn(setting_name) { } function onGameSettingOff(setting_name) { } function onGameRestart() { } function onGameMenu() { } function onGameContinue() { } static var mInstance = undefined; var mStatsRegistered = false; }
Symbol 20495 MovieClip [__Packages.com.kongregate.client.KongregateServices] Frame 0
class com.kongregate.client.KongregateServices extends com.kongregate.client.RequestHandler { var mUsername, mGameAuthToken, mUserId, mMessageHandlers, mConnectionListener, mMessageQueue, getRequestID, nextRequest, addRequest, fireResponse; function KongregateServices () { super(); mConnectedToServer = false; mUsername = rootObject.kongregate_username; mGameAuthToken = rootObject.kongregate_game_auth_token; mUserId = _global.parseInt(rootObject.kongregate_user_id); mMessageHandlers = new Array(); mMessageHandlers.push(com.kongregate.client.StatServices.getInstance()); mMessageHandlers.push(com.kongregate.client.HighScoreServices.getInstance()); mMessageHandlers.push(com.kongregate.client.SaveGameServices.getInstance()); mMessageHandlers.push(com.kongregate.client.ChatServices.getInstance()); mMessageHandlers.push(com.kongregate.client.MicrotransactionServices.getInstance()); mMessageHandlers.push(com.kongregate.common.comm.external.ExternalMessageDispatcher.getInstance()); mConnectionListener = new com.kongregate.common.comm.local.DefaultMessageListener(); mConnectionListener.connect = com.kongregate.common.util.Utils.bind(handleConnect, this); mConnectionListener.message = com.kongregate.common.util.Utils.bind(handleMessage, this); mMessageQueue = new Array(); } static function init(connectHandler, disconnectHandler, thisObject) { var _local5 = getInstance(); return(_local5); } function addMessageHandler(handler) { mMessageHandlers.push(handler); } function isKongregate() { return(rootObject.kongregate != undefined); } function isGuest() { return(getUsername().toLowerCase().indexOf("guest") == 0); } function getUsername() { return(mUsername); } function getChannelID() { return(rootObject.kongregate_channel_id); } function getGameID() { return(_global.parseInt(rootObject.kongregate_game_id)); } function getUserID() { return(mUserId); } function getUserId() { return(getUserID()); } function getBaseURL() { return(rootObject.kongregate_host); } function getSessionID() { return(rootObject.session_id); } function getGameURL() { return(rootObject.game_url); } function connect() { if (isKongregate() && ((!isConnected()) && (!mAttemptingConnect))) { createNewConnection(); return(true); } return(false); } function setMessageConnection(messageConnection) { mConnection = messageConnection; mConnection.setListener(mConnectionListener); } function createNewConnection() { mAttemptingConnect = true; if (!mConnection) { mConnection = new com.kongregate.common.comm.local.MessageConnection(true, getChannelID(), mConnectionListener); } mConnection.doConnect(); } static function getInstance() { if (!mInstance) { mInstance = new com.kongregate.client.KongregateServices(); } return(mInstance); } function isConnected() { return((mConnection != undefined) && (mConnectedToServer)); } function sendMessage(msg) { msg.addParam(com.kongregate.common.comm.Opcode.PARAM_REQUEST_ID, getRequestID()); nextRequest(); if (!isConnected()) { mMessageQueue.push(msg); return(true); } return(deliverMessage(msg)); } function doHttpRequest(url, data, type, callback, thisObject, timeout) { addRequest(callback, thisObject); var _local8 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_HTTP_REQUEST); _local8.addParam(com.kongregate.common.comm.Opcode.PARAM_URL, url); _local8.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, data); _local8.addParam(com.kongregate.common.comm.Opcode.PARAM_TYPE, type); if (timeout != undefined) { _local8.addParam(com.kongregate.common.comm.Opcode.PARAM_TIMEOUT, timeout); } sendMessage(_local8); } function doAuthenticatedHttpRequest(theURL, params, type, callback, thisObject, timeout, requestID) { var _local8 = ((theURL.indexOf("http") == 0) ? (theURL) : (getBaseURL() + theURL)); var boundCallback = (thisObject ? (com.kongregate.common.util.Utils.bind(callback, thisObject)) : (callback)); if (!isGuest()) { params.uid = getUID(); } var result = function (data, timedOut) { var _local4 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_HTTP_REQUEST); var _local5 = com.kongregate.common.util.JSON.parse(data); var _local6 = (data != undefined) && (_local5 != undefined); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_HTTP_SUCCESS, _local6); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_HTTP_TIMEOUT, timedOut); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_REQUEST_ID, requestID); if (_local6) { for (var i in _local5) { _local4.addParam(i, _local5[i]); } } else { _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_SUCCESS, false); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_ERROR, com.kongregate.common.error.Error.SERVER_ERROR); } boundCallback({msg:_local4, params:_local4.getParams(), success:_local6, error:_local4.getParam(com.kongregate.common.comm.Opcode.PARAM_ERROR)}); }; if (type.toLowerCase() == "get") { com.kongregate.common.util.Utils.httpGet(_local8, params, com.kongregate.common.util.Utils.bind(result, this), timeout); } else if (type.toLowerCase() == "post") { com.kongregate.common.util.Utils.sendHttpRequest(_local8, params, com.kongregate.common.util.Utils.bind(result, this), timeout); } } function sendToPlayer(msg, username) { var _local4 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_FORWARD); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_USER, username); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, msg); sendMessage(_local4); } function submitAlert(body) { com.kongregate.common.util.Log.info("Sending alert: " + body); var _local3 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_ALERT); _local3.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, body); sendMessage(_local3); } function flushQueue() { var _local2 = 0; for ( ; _local2 < mMessageQueue.length ; _local2++) { deliverMessage(mMessageQueue[_local2]); } mMessageQueue.splice(0); } function deliverMessage(msg) { return(mConnection.sendMessage(msg)); } function getGameVersion() { if (!isKongregate()) { return(-1); } return(_global.parseInt(rootObject.kongregate_game_version)); } function getUID() { return(getGameAuthToken()); } function getGameAuthToken() { return(mGameAuthToken); } function handleConnect() { var _local2 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_HELLO); _local2.addParam(com.kongregate.common.comm.Opcode.PARAM_CLIENT_VERSION, CLIENT_VERSION); _local2.addParam(com.kongregate.common.comm.Opcode.PARAM_REQUEST_ID, getRequestID()); nextRequest(); deliverMessage(_local2); } function handleMessage(msg) { if ((msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_HELLO) && (!mConnectedToServer)) { mConnectedToServer = true; mAttemptingConnect = false; flushQueue(); com.kongregate.client.StatServices.getInstance().handleMessage(msg); } else if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_USER_INFO) { var _local3 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_GAME_AUTH_TOKEN); var _local4 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_USER); var _local5 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_USER_ID); if (_local4.toLowerCase().indexOf("guest") != 0) { mUsername = _local4; if (_local3.length > 0) { mGameAuthToken = _local3; } if (_global.isFinite(_local5)) { mUserId = _local5; } } broadcastMessage(msg); } else if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_ALERT) { com.kongregate.common.util.Utils.submitGameAlert(); } else if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_ALERT_REQUEST) { var _local6 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_ALERT_REQUEST); _local6.addParam(com.kongregate.common.comm.Opcode.PARAM_DATA, com.kongregate.common.util.Log.getErrorReport()); sendMessage(_local6); broadcastMessage(msg); } else if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_HTTP_REQUEST) { var _local7 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_REQUEST_ID); var _local8 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_HTTP_SUCCESS); var _local9; if (msg.getParam(com.kongregate.common.comm.Opcode.PARAM_ERROR) != undefined) { _local9 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_ERROR); } fireResponse(_local7, {msg:msg, success:_local8, error:_local9}); } else { broadcastMessage(msg); } } function broadcastMessage(msg) { var _local3 = 0; for ( ; _local3 < mMessageHandlers.length ; _local3++) { mMessageHandlers[_local3].handleMessage(msg); } } function get rootObject() { return(_global); } function showSignInBox() { if (isGuest()) { var _local2 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_CHAT_DISPLAY_SIGN_IN); sendMessage(_local2); } } static var CLIENT_VERSION = 1; static var mInstance = undefined; var mConnection = undefined; var mAttemptingConnect = false; var mConnectedToServer = false; static var EVENT_CONNECT = "onConnect"; static var EVENT_DISCONNECT = "onDisconnect"; }
Symbol 20496 MovieClip [__Packages.com.kongregate.client.HighScoreServices] Frame 0
class com.kongregate.client.HighScoreServices extends com.kongregate.client.RequestHandler implements com.kongregate.common.comm.MessageHandler { var addRequest, fireResponse; function HighScoreServices () { super(); } static function getInstance() { if (mInstance == undefined) { mInstance = new com.kongregate.client.HighScoreServices(); } return(mInstance); } function isAuthorized() { return(!com.kongregate.client.KongregateServices.getInstance().isGuest()); } function submit(score) { var _local3 = com.kongregate.common.stats.Statistic.HIGH_SCORE; if (getMode().length > 0) { _local3 = _local3 + ("-" + getMode()); } com.kongregate.client.StatServices.getInstance().submit(_local3, score); } function requestList(callback, thisObject) { } function requestHighScores(callback, thisObject, statName) { addRequest(callback, thisObject); var _local5 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_SCORE_LIST); _local5.addParam(com.kongregate.common.comm.Opcode.PARAM_STAT_NAME, statName); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local5); } function setMode(mode) { mMode = mode; var _local3 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_SCORE_MODE); _local3.addParam(com.kongregate.common.comm.Opcode.PARAM_SCORE_MODE, mode); com.kongregate.client.KongregateServices.getInstance().sendMessage(_local3); } function getMode() { return(mMode); } function handleMessage(msg) { var _local3 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_SUCCESS); var _local4 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_REQUEST_ID); var _local5 = (_local3 ? (com.kongregate.common.error.Error.NONE) : (com.kongregate.common.error.Error.SERVER_ERROR)); if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_SCORE_LIST) { var _local6 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_SCORE_LIST); fireResponse(_local4, {success:_local3, error:_local5, list:_local6}); } } static var mInstance = undefined; var mMode = ""; }
Symbol 20497 MovieClip [__Packages.com.kongregate.common.util.Utils] Frame 0
class com.kongregate.common.util.Utils { function Utils () { } static function allowKongregateDomains() { for (var domain in ALLOWED_DOMAINS) { System.security.allowDomain(ALLOWED_DOMAINS[domain]); for (var subdomain in ALLOWED_PREFIXES) { System.security.allowDomain((ALLOWED_PREFIXES[subdomain] + ".") + ALLOWED_DOMAINS[domain]); } } } static function bind(functionToApply, object) { var _local2 = function () { return(function () { functionToApply.apply(object, arguments); }); }; return(_local2.apply(undefined)); } static function getFlashMajorVersion() { var _local2 = getVersion(); if ((!_local2) || (_local2.length == 0)) { return(5); } var _local3 = _local2.split(","); var _local4 = _local3[0].indexOf(" "); return(Number(_local3[0].substr(_local4))); } static function submitAlert(body, type, username, reportName, game, automatic, onComplete) { var _local9 = "/alerts"; var _local10 = new LoadVars(); var _local11 = new LoadVars(); _local11.onData = onComplete; var _local12 = com.kongregate.common.util.Log.getErrorReport(); if (body) { _local10.body = body; } if (game) { _local10.game_id = game; } _local10.automatic = (((automatic == 1) || (automatic == true)) ? 1 : 0); _local10.report_name = reportName; _local10.username = username; _local10.version = _local12.version; _local10[type] = com.kongregate.common.util.JSON.stringify(_local12.log); _local10.sendAndLoad(_local9, _local11, "POST"); } static function submitGameAlert() { var _local2 = com.kongregate.client.KongregateServices.getInstance().getChannelID(); submitAlert("Automatically generated game alert", "game_log", com.kongregate.client.KongregateServices.getInstance().getUsername(), _local2, com.kongregate.client.KongregateServices.getInstance().getGameID(), 1); } static function getTimeStamp() { return((Math.floor(Math.random() * 10000000).toString() + "_") + getTimer()); } static function setCallbackWithTimeout(result, resultCallback, timeout, url, callbackReceiver) { if ((timeout == undefined) || (timeout <= 0)) { result.onData = resultCallback; return(undefined); } var _local7 = function (data) { _global.clearTimeout(this.timeoutInterval); delete this.timeoutInterval; this.callback(data, false); }; var _local8 = function (resultlv, timeoutCallbackReceiver) { com.kongregate.common.util.Log.warn("Http request timed out! url=" + resultlv.url); _global.clearTimeout(resultlv.timeoutInterval); delete resultlv.timeoutInterval; try { resultlv.callback(undefined, true); } catch(_local) { var err = ( /* Error999 */ ); com.kongregate.common.util.Log.warn("there was an error exercising the callback function on timeout! url=" + resultlv.url); } }; result.timeoutInterval = _global.setTimeout(_local8, timeout, result, callbackReceiver); result.callback = resultCallback; result.url = url; result.onData = bind(_local7, result); result.onTimeout = _local8.bind(result); } static function crudUpdate(url, dataObj, resultCallback, timeout) { dataObj._method = "put"; sendHttpRequest(url, dataObj, resultCallback, timeout); } static function crudDestroy(url, resultCallback, timeout) { sendHttpRequest(url, {_method:"delete"}, resultCallback, timeout); } static function crudCreate(url, dataObj, resultCallback, timeout) { sendHttpRequest(url, dataObj, resultCallback, timeout); } static function sendHttpRequest(url, dataObj, resultCallback, timeout) { var _local6 = new LoadVars(); var _local7 = new LoadVars(); setCallbackWithTimeout(_local7, resultCallback, timeout, url); for (var i in dataObj) { populateSendLvWithObject(_local6, i, dataObj[i]); } _local6.ts = getTimeStamp(); _local6.sendAndLoad(url, _local7, "POST"); } static function populateSendLvWithObject(container, base_property_name, val) { if ("function" == typeof(val)) { return(undefined); } if ("object" != typeof(val)) { container[base_property_name] = val; } for (var i in val) { var _local5 = val[i]; if ("function" == typeof(_local5)) { continue; } var _local6 = ((base_property_name + "[") + i) + "]"; populateSendLvWithObject(container, _local6, _local5); } } static function httpGet(url, dataObj, resultCallback, timeout) { var _local6 = new LoadVars(); var _local7 = new LoadVars(); setCallbackWithTimeout(_local7, resultCallback, timeout, url); for (var i in dataObj) { if ("function" != typeof(dataObj[i])) { _local6[i] = dataObj[i]; } } _local6.ts = getTimeStamp(); _local6.sendAndLoad(url, _local7, "GET"); } static function createBrowserImageTag(url) { flash.external.ExternalInterface.call("createImageTag", url); } static var ALLOWED_PREFIXES = ["a", "www", "chat", "internal"]; static var ALLOWED_DOMAINS = ["kongregatestage.com", "kongregatetrunk.com", "kongregate.com", "kongshred.com", "kongregatedev.com"]; }
Symbol 20498 MovieClip [__Packages.com.kongregate.common.comm.external.ExternalMessageDispatcher] Frame 0
class com.kongregate.common.comm.external.ExternalMessageDispatcher implements com.kongregate.common.comm.MessageHandler { static var mInstance; function ExternalMessageDispatcher () { } function addCallbacks() { flash.external.ExternalInterface.addCallback("dispatchEvent", this, handleExternalMessage); } static function getInstance() { if (!mInstance) { mInstance = new com.kongregate.common.comm.external.ExternalMessageDispatcher(); } return(mInstance); } function addListener(cmd, listener) { getListenersFor(cmd).push(listener); } function addGlobalListener(listener) { mGlobalListeners.push(listener); } function handleExternalMessage(event) { var _local3 = event.type; var _local4 = event.data; var _local5 = com.kongregate.common.comm.Message.fromOpcode(_local3); _local5.setParams(_local4); broadcastMessage(_local5); } function handleMessage(localMessage) { if (localMessage.getOpcode() == com.kongregate.common.comm.Opcode.OP_EXTERNAL_MESSAGE) { var _local3 = com.kongregate.common.comm.Message.fromOpcode(localMessage.getParam(com.kongregate.common.comm.Opcode.PARAM_OPCODE)); _local3.setParams(localMessage.getParam(com.kongregate.common.comm.Opcode.PARAM_DATA)); broadcastMessage(_local3); } } function broadcastMessage(msg) { com.kongregate.common.util.Log.debug("External message received: " + msg.toString()); var _local3 = getListenersFor(msg.getOpcode()); var _local4 = 0; _local4 = 0; for ( ; _local4 < _local3.length ; _local4++) { _local3[_local4](msg); } _local4 = 0; for ( ; _local4 < mGlobalListeners.length ; _local4++) { mGlobalListeners[_local4](msg); } } function getListenersFor(cmd) { var _local3 = mListeners[cmd]; if (!_local3) { _local3 = new Array(); mListeners[cmd] = _local3; } return(_local3); } var mGlobalListeners = new Array(); var mListeners = new Object(); }
Symbol 20499 MovieClip [__Packages.com.kongregate.common.comm.Opcode] Frame 0
class com.kongregate.common.comm.Opcode { function Opcode () { } static var OP_CONNECT = "connect"; static var OP_CONNECTED = "connected"; static var OP_DISCONNECT = "disconnect"; static var OP_DISCONNECTED = "disconnected"; static var OP_HELLO = "hello"; static var OP_GOODBYE = "goodbye"; static var PARAM_SKIP_STAT_LIST = "skip_stats"; static var OP_USER_INFO = "user.info"; static var OP_PING = "ping"; static var OP_KICK = "kick"; static var OP_SILENCE = "silence"; static var OP_SILENCED = "silenced"; static var OP_PARTICIPATE = "participate"; static var PARAM_SILENCE_DURATION = "sil_duration"; static var OP_ALERT = "alert"; static var OP_ALERT_REQUEST = "alert.rq"; static var PARAM_ALERT_NAME = "alert.name"; static var OP_FORWARD = "fwd"; static var OP_CHAT = "chat"; static var PARAM_MESSAGE = "message"; static var OP_HTTP_REQUEST = "http"; static var PARAM_URL = "url"; static var OP_AVATAR_SUBMIT = "avatar.submit"; static var OP_AVATAR_FINISHED = "avatar.finished"; static var OP_GAME_SAVE = "gm.save"; static var OP_GAME_LOAD = "gm.load"; static var OP_GAME_LOAD_ALL = "gm.load.all"; static var OP_GAME_LIST_SAVES = "gm.list"; static var OP_GAME_DELETE = "gm.del"; static var PARAM_SLOT = "slot"; static var PARAM_DESCRIPTION = "desc"; static var PARAM_SAVE_LIST = "list"; static var PARAM_SAVE_GAME = "game"; static var PARAM_SAVE_GAMES = "games"; static var PARAM_CONFLICTS = "conflicts"; static var OP_STATS_REGISTER = "stat.reg"; static var OP_STATS_LIST = "stat.list"; static var OP_STATS_SUBMIT = "stat.submit"; static var OP_STATS_PLAYER = "stat.player"; static var PARAM_STATS = "stats"; static var PARAM_STAT_NAME = "stat"; static var PARAM_STAT_MAX = "max"; static var PARAM_STAT_START = "start"; static var PARAM_STAT_SORT = "sort"; static var OP_GAME_START = "game_start"; static var OP_GAME_END = "game_end"; static var OP_GAME_BREAK = "game_break"; static var OP_GAME_CONTINUE = "game_cont"; static var OP_GAME_PAUSE = "game_pause"; static var OP_GAME_UNPAUSE = "game_unpause"; static var OP_GAME_MUTE = "game_mute"; static var OP_GAME_UNMUTE = "game_unmute"; static var OP_GAME_SET_MODE = "game_set_mode"; static var OP_GAME_RESTART = "game_restart"; static var OP_GAME_SETTING_ON = "game_setting_on"; static var OP_GAME_SETTING_OFF = "game_setting_off"; static var OP_GAME_MENU = "game_menu"; static var PARAM_GAME_START = "game_start"; static var PARAM_GAME_BREAK = "game_break"; static var PARAM_GAME_END = "game_end"; static var OP_SCORE_SUBMIT = "score.submit"; static var OP_SCORE_LIST = "score.list"; static var OP_SCORE_MODE = "score.mode"; static var PARAM_SCORE = "score"; static var PARAM_SCORE_LIST = "list"; static var PARAM_SCORE_POSITION = "pos"; static var PARAM_SCORE_POSTED = "posted"; static var PARAM_SCORE_LOW = "lowscore"; static var PARAM_SCORE_MODE = "mode"; static var OP_CHAT_TAB = "chat.tab"; static var OP_CHAT_MSG = "chat.msg"; static var OP_CHAT_DISPLAY = "chat.disp"; static var OP_CHAT_CANVAS_ELEMENT = "chat.elm"; static var OP_CHAT_DISPLAY_SIGN_IN = "chat.sign"; static var OP_CHAT_CLEAR_DIALOG = "chat.dlg.clear"; static var PARAM_CANVAS_SIZE = "chat.canvas.size"; static var OP_META_INFO = "meta.info"; static var OP_META_INVALIDATE = "meta.inval"; static var OP_META_STATE = "meta.state"; static var OP_META_EVENT = "meta.event"; static var OP_META_CREATE = "meta.create"; static var OP_META_JOIN = "meta.join"; static var OP_META_JOINED = "meta.joined"; static var OP_META_PLAYNOW = "meta.playnow"; static var OP_META_QUIT = "meta.quit"; static var OP_META_LIST = "meta.list"; static var OP_META_WAITING = "meta.waiting"; static var OP_META_DECK_SELECTED = "meta.deck"; static var OP_META_KICK = "meta.kick"; static var OP_META_MSG = "meta.msg"; static var PARAM_OPPONENT = "opponent"; static var PARAM_PATHS = "paths"; static var PARAM_PLAYER_NO = "player_no"; static var PARAM_TYPE = "type"; static var PARAM_CHOICE = "choice"; static var PARAM_INVALIDATED = "invalidated"; static var PARAM_WAIT = "wait"; static var PARAM_STATE = "state"; static var PARAM_GAME_TYPE = "game_type"; static var PARAM_PHASE_NO = "phase_no"; static var PARAM_DECKS = "decks"; static var PARAM_DECKS_SELECTED = "decks_selected"; static var PARAM_INFO = "info"; static var PARAM_NUM_GAMES = "num_games"; static var OP_REQUEST_GAME_ROOM = "room.rq"; static var PARAM_ROOM_NAME = "room.name"; static var PARAM_ROOM_NATURAL_NAME = "room.natural"; static var OP_ITEM_LIST = "mtx.item_list"; static var OP_ITEM_INSTANCES = "mtx.item_instances"; static var OP_ITEM_CHECKOUT = "mtx.checkout"; static var OP_USE_ITEM_INSTANCE = "mtx.use_item_instance"; static var PARAM_ITEM_TAGS = "item_tags"; static var PARAM_ITEM_IDENTIFIERS = "item_ids"; static var PARAM_ITEMS = "items"; static var OP_USER_PROFILE = "user.profile"; static var OP_EXTERNAL_MESSAGE = "ext.msg"; static var OP_LOG = "log.msg"; static var PARAM_LOG_LEVEL = "level"; static var PARAM_LOG_MESSAGE = "msg"; static var PARAM_USER = "user"; static var PARAM_USER_ID = "user_id"; static var PARAM_CHANNEL = "chnl"; static var PARAM_SUCCESS = "success"; static var PARAM_SESSION_ID = "sessionid"; static var PARAM_SESSION_LOOKUP_KEY = "slk"; static var PARAM_DURATION = "duration"; static var PARAM_REASON = "reason"; static var PARAM_GAME_ID = "game_id"; static var PARAM_GAME_NAME = "game_name"; static var PARAM_DATA = "data"; static var PARAM_CLIENT_VERSION = "client.ver"; static var PARAM_GAME_VERSION = "gm.ver"; static var PARAM_ERROR = "error"; static var PARAM_ERROR_DESC = "error_desc"; static var PARAM_REQUEST_ID = "req.id"; static var PARAM_MESSAGE_ID = "msg.id"; static var PARAM_MESSAGES = "msgs"; static var PARAM_JAVASCRIPT = "javascript"; static var PARAM_RESULTS = "results"; static var PARAM_RESULT = "result"; static var PARAM_RESEND = "resend"; static var PARAM_TIME = "time"; static var PARAM_ID = "id"; static var PARAM_KEY = "key"; static var PARAM_CONFIRMATION = "conf"; static var PARAM_FROM = "from"; static var PARAM_FROM_PLAYER = "from.pl"; static var PARAM_LIST = "list"; static var PARAM_PERMALINK = "permalink"; static var PARAM_SESSION_STAMP = "stamp"; static var PARAM_NAME = "name"; static var PARAM_AVATAR = "avatar"; static var PARAM_TIMEOUT = "timeout"; static var PARAM_HTTP_SUCCESS = "http_success"; static var PARAM_HTTP_TIMEOUT = "http_timeout"; static var PARAM_OPCODE = "opcode"; static var PARAM_GAME_AUTH_TOKEN = "auth_token"; static var PARAM_CAPABILITIES = "caps"; }
Symbol 20500 MovieClip [__Packages.com.kongregate.common.util.Log] Frame 0
class com.kongregate.common.util.Log { function Log () { } static function init() { mLogEntries = new Array(); debug("Log initialized."); debug(_root._url.split("?")[0]); debug(getOSInfo()); } static function setClient(isClient) { mIsClient = isClient; } static function setHandler(type, handler) { if ((type == TYPE_DEBUG) || (type == TYPE_ALL)) { onDebug = handler; } if ((type == TYPE_INFO) || (type == TYPE_ALL)) { onInfo = handler; } if ((type == TYPE_WARN) || (type == TYPE_ALL)) { onWarn = handler; } if ((type == TYPE_ERROR) || (type == TYPE_ALL)) { onError = handler; } } static function debug(text) { if (mLogLevel >= 4) { if (onDebug != undefined) { onDebug(text); } } addLogEntry("Debug", text); } static function info(text) { if (mLogLevel >= 3) { if (onInfo != undefined) { onInfo(text); } } addLogEntry("Info", text); } static function warn(text) { if (mLogLevel >= 2) { if (onWarn != undefined) { onWarn(text); } } addLogEntry("Warn", text); } static function error(text) { if (mLogLevel >= 1) { if (onError != undefined) { onError(text); } } addLogEntry("Error", text); } static function setLogLevel(level) { mLogLevel = level; } static function isDebug() { return(mLogLevel >= 4); } static function getTimestamp() { var _local2 = new Date(); return(_local2.toString().split("GMT")[0]); } static function getErrorReport() { var _local2 = new Object(); _local2.url = _root._url; _local2.version = getVersion(); _local2.log = mLogEntries; return(_local2); } static function getOSInfo() { return((((((("OS: " + System.capabilities.os) + ", ") + System.capabilities.screenResolutionX) + "x") + System.capabilities.screenResolutionY) + ", current version: ") + getVersion()); } static function addLogEntry(type, text) { trace((type + ": ") + text); if (mLogEntries.length > MAX_LOG_ENTRIES) { mLogEntries.splice(0, 1); } mLogEntries.push({type:type, time:getTimestamp(), text:sanitize(text)}); if (mIsClient) { var _local4 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_LOG); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_LOG_LEVEL, type); _local4.addParam(com.kongregate.common.comm.Opcode.PARAM_LOG_MESSAGE, text); var _local5 = com.kongregate.client.KongregateServices.getInstance(); if (_local5.isConnected()) { _local5.sendMessage(_local4); } } } static function sanitize(text) { return(text.split("<").join("&lt;")); } static function prompt(label) { return(flash.external.ExternalInterface.call("prompt", label)); } static function console(text) { flash.external.ExternalInterface.call("console.log", text); } static function alert(text) { var _local3 = com.kongregate.common.util.JSON.stringify(text); getURL (((("javascript:try{console.log(" + _local3) + ")}catch(e){alert(") + _local3) + ");}", "_self"); if (_root.debugText) { if (!_root.debugText.text) { _root.debugText.text = ""; } _root.debugText.text = _root.debugText.text + (_local3 + newline); if (_root.debugText.maxscroll) { _root.debugText.scroll = _root.debugText.maxscroll; } } } static function groupStart(groupTitle) { try { flash.external.ExternalInterface.call("console.group", groupTitle); } catch(_local) { var err = ( /* Error999 */ ); trace(err); } } static function groupEnd() { try { flash.external.ExternalInterface.call("console.groupEnd"); } catch(_local) { var err = ( /* Error999 */ ); trace(err); } } static function logToFirebug(type, text) { try { flash.external.ExternalInterface.call("console." + type, text); } catch(e:Error) { } } static function submit(text) { var _local3 = com.kongregate.common.util.JSON.stringify(text); } static var onDebug = undefined; static var onInfo = undefined; static var onError = undefined; static var onWarn = undefined; static var mLogLevel = 0; static var TYPE_DEBUG = "debug"; static var TYPE_INFO = "info"; static var TYPE_WARN = "warn"; static var TYPE_ERROR = "error"; static var TYPE_ALL = "all"; static var MAX_LOG_ENTRIES = 250; static var mLogEntries = undefined; static var mIsClient = true; }
Symbol 20501 MovieClip [__Packages.com.kongregate.common.comm.local.MessageConnection] Frame 0
class com.kongregate.common.comm.local.MessageConnection extends LocalConnection { var allowDomain, allowInsecureDomain, onStatus, mListener, connect, send; function MessageConnection (_isClient, channelName, listener) { super(); allowDomain = function (sendingDomain) { if (!this.isConnected()) { com.kongregate.common.util.Log.debug((("sendingDomain: " + sendingDomain) + ", thisDomain: ") + this.domain()); } if (sendingDomain == this.domain()) { return(true); } var _local3 = this.domainAllowed(sendingDomain); var _local4 = this.domainAllowed(this.domain()); if (!this.isConnected()) { com.kongregate.common.util.Log.debug((("sendingFound: " + _local3) + ", thisFound: ") + _local4); } return(_local3 && (_local4)); }; allowInsecureDomain = function (sendingDomain) { return(sendingDomain == this.domain()); }; onStatus = handleStatus; mIsClient = _isClient; setListener(listener); mSendChannel = ((CHANNEL_PREFIX + (isClient() ? (SERVICE_NAME) : (CLIENT_NAME))) + "_") + channelName; listen(((isClient() ? (CLIENT_NAME) : (SERVICE_NAME)) + "_") + channelName); } function domainAllowed(rawDomain) { var _local3 = rawDomain.toLowerCase(); var _local4 = 0; for ( ; _local4 < com.kongregate.common.util.Utils.ALLOWED_PREFIXES.length ; _local4++) { var _local5 = 0; for ( ; _local5 < com.kongregate.common.util.Utils.ALLOWED_DOMAINS.length ; _local5++) { var _local6 = (com.kongregate.common.util.Utils.ALLOWED_PREFIXES[_local4] + ".") + com.kongregate.common.util.Utils.ALLOWED_DOMAINS[_local5]; if (_local6 == _local3) { return(true); } } } return(false); } function handleStatus(status) { if (status.level == "error") { com.kongregate.common.util.Log.error("MessageConnection Error"); if (mListener && (!mAttemptingConnection)) { mListener.onError(); } } } function listen(channelName) { com.kongregate.common.util.Log.info("Listening for connection..."); mReceiveChannel = CHANNEL_PREFIX + channelName; var _local3 = connect(mReceiveChannel); com.kongregate.common.util.Log.debug((("Channel: " + channelName) + ", success=") + _local3); if ((!_local3) && (!mReportSent)) { mReportSent = true; } } function doConnect() { mAttemptingConnection = true; mConnectionAttempts = 0; sendConnectionRequest(); mConnectionInterval = _global.setInterval(this, "retryConnection", CONNECT_RETRY_INTERVAL); } function sendConnectionRequest() { com.kongregate.common.util.Log.debug(("Attempting connection (Retry #" + mConnectionAttempts) + ")"); var _local2 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_CONNECT); _local2.addParam(com.kongregate.common.comm.Opcode.PARAM_CHANNEL, mReceiveChannel); _local2.addParam(com.kongregate.common.comm.Opcode.PARAM_CLIENT_VERSION, MY_CAPABILITIES); var _local3 = sendMessage(_local2); com.kongregate.common.util.Log.debug("connection request sent, success=" + _local3); } function retryConnection() { if (mAttemptingConnection && (!mConnected)) { mConnectionAttempts++; sendConnectionRequest(); } } function setListener(listener) { mListener = listener; } function handleMessage(msgObject) { var _local3 = new com.kongregate.common.comm.Message(); _local3.setOpcode(msgObject.opcode); _local3.setParams(msgObject.params); var _local4 = dumpMessage(_local3); if (_local4 && (_local4.length > 0)) { com.kongregate.common.util.Log.debug((((("[" + getSendNickname()) + "->") + getReceiveNickname()) + "]: ") + _local4); } if (_local3.getOpcode() == com.kongregate.common.comm.Opcode.OP_CONNECT) { handleConnect(); } else if (_local3.getOpcode() == com.kongregate.common.comm.Opcode.OP_CONNECTED) { mAttemptingConnection = false; _global.clearInterval(mConnectionInterval); if (!mConnected) { mConnected = true; if (mListener) { mListener.onConnect(); } } } else if (mListener != null) { mListener.onMessage(_local3); } } function handleConnect() { com.kongregate.common.util.Log.info((("Handling connection..., isConnected=" + mConnected) + ", attemptingConnection=") + mAttemptingConnection); if (!mConnected) { mConnected = true; var _local2 = com.kongregate.common.comm.Message.fromOpcode(com.kongregate.common.comm.Opcode.OP_CONNECTED); sendMessage(_local2); if (mListener != null) { mListener.onConnect(); } } } function sendMessage(msg) { var _local3 = dumpMessage(msg); if (_local3 && (_local3.length > 0)) { com.kongregate.common.util.Log.debug((((("[" + getReceiveNickname()) + "->") + getSendNickname()) + "]: ") + _local3); } var _local4 = send(mSendChannel, RECEIVE_FUNCTION, {opcode:msg.getOpcode(), params:msg.getParams()}); if (!_local4) { com.kongregate.common.util.Log.warn(("Send operation [" + msg.getOpcode()) + "] failed!"); } return(_local4); } function isConnected() { return(mConnected); } function isClient() { return(mIsClient); } function isServer() { return(!isClient()); } function getSendNickname() { if (mSendChannel.indexOf("Service") >= 0) { return("Chat"); } return("Game"); } function getReceiveNickname() { if (mReceiveChannel.indexOf("Service") >= 0) { return("Chat"); } return("Game"); } function dumpMessage(msg) { var _local3 = msg.getOpcode(); if (msg.getOpcode() == com.kongregate.common.comm.Opcode.OP_FORWARD) { var _local4 = com.kongregate.common.comm.Message.fromObject(msg.getParam(com.kongregate.common.comm.Opcode.PARAM_DATA)); return((("<FWD:" + msg.getParam(com.kongregate.common.comm.Opcode.PARAM_USER)) + "> ") + dumpMessage(_local4)); } if ((_local3 == com.kongregate.common.comm.Opcode.OP_PING) || (_local3 == com.kongregate.common.comm.Opcode.OP_CHAT_CANVAS_ELEMENT)) { return(undefined); } if (_local3 == com.kongregate.common.comm.Opcode.OP_LOG) { return(undefined); } if (_local3 == com.kongregate.common.comm.Opcode.OP_HTTP_REQUEST) { var _local5 = msg.getParam(com.kongregate.common.comm.Opcode.PARAM_URL); if (!_local5) { return(("<HTTP_RESPONSE, success=" + msg.getParam(com.kongregate.common.comm.Opcode.PARAM_HTTP_SUCCESS)) + ">"); } return(("<HTTP: " + _local5) + ">"); } if (_local3 == com.kongregate.common.comm.Opcode.OP_META_INVALIDATE) { return(undefined); } if (com.kongregate.common.util.Log.isDebug()) { return(msg.toString()); } return(_local3); } static var RECEIVE_FUNCTION = "handleMessage"; static var CHANNEL_PREFIX = "_"; static var CONNECT_RETRY_INTERVAL = 3500; static var SERVICE_NAME = "KongregateService"; static var CLIENT_NAME = "KongregateClient"; static var MY_CAPABILITIES = 0; var mReceiveChannel = ""; var mSendChannel = ""; var mIsClient = false; var mAttemptingConnection = false; var mConnectionAttempts = 0; var mConnectionInterval = undefined; var mConnected = false; var mReportSent = false; }

Library Items

Symbol 20480 MovieClip [__Packages.com.kongregate.client.RequestHandler]
Symbol 20481 MovieClip [__Packages.com.kongregate.common.comm.MessageHandler]
Symbol 20482 MovieClip [__Packages.com.kongregate.client.SaveGameServices]
Symbol 20483 MovieClip [__Packages.Base64]
Symbol 20484 MovieClip [__Packages.com.kongregate.common.comm.local.MessageConnectionListener]
Symbol 20485 MovieClip [__Packages.com.kongregate.common.comm.local.DefaultMessageListener]
Symbol 20486 MovieClip [__Packages.com.kongregate.common.error.Error]
Symbol 20487 MovieClip [__Packages.com.kongregate.client.ChatServices]
Symbol 20488 MovieClip [__Packages.com.kongregate.common.stats.Statistic]
Symbol 20489 MovieClip [__Packages.AbstractAPIBootstrap]
Symbol 20490 MovieClip [__Packages.APIBootstrap]
Symbol 20491 MovieClip [__Packages.com.kongregate.client.MicrotransactionServices]
Symbol 20492 MovieClip [__Packages.com.kongregate.common.util.JSON]
Symbol 20493 MovieClip [__Packages.com.kongregate.common.comm.Message]
Symbol 20494 MovieClip [__Packages.com.kongregate.client.StatServices]
Symbol 20495 MovieClip [__Packages.com.kongregate.client.KongregateServices]
Symbol 20496 MovieClip [__Packages.com.kongregate.client.HighScoreServices]
Symbol 20497 MovieClip [__Packages.com.kongregate.common.util.Utils]
Symbol 20498 MovieClip [__Packages.com.kongregate.common.comm.external.ExternalMessageDispatcher]
Symbol 20499 MovieClip [__Packages.com.kongregate.common.comm.Opcode]
Symbol 20500 MovieClip [__Packages.com.kongregate.common.util.Log]
Symbol 20501 MovieClip [__Packages.com.kongregate.common.comm.local.MessageConnection]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 20480 as "__Packages.com.kongregate.client.RequestHandler"
ExportAssets (56)Timeline Frame 1Symbol 20481 as "__Packages.com.kongregate.common.comm.MessageHandler"
ExportAssets (56)Timeline Frame 1Symbol 20482 as "__Packages.com.kongregate.client.SaveGameServices"
ExportAssets (56)Timeline Frame 1Symbol 20483 as "__Packages.Base64"
ExportAssets (56)Timeline Frame 1Symbol 20484 as "__Packages.com.kongregate.common.comm.local.MessageConnectionListener"
ExportAssets (56)Timeline Frame 1Symbol 20485 as "__Packages.com.kongregate.common.comm.local.DefaultMessageListener"
ExportAssets (56)Timeline Frame 1Symbol 20486 as "__Packages.com.kongregate.common.error.Error"
ExportAssets (56)Timeline Frame 1Symbol 20487 as "__Packages.com.kongregate.client.ChatServices"
ExportAssets (56)Timeline Frame 1Symbol 20488 as "__Packages.com.kongregate.common.stats.Statistic"
ExportAssets (56)Timeline Frame 1Symbol 20489 as "__Packages.AbstractAPIBootstrap"
ExportAssets (56)Timeline Frame 1Symbol 20490 as "__Packages.APIBootstrap"
ExportAssets (56)Timeline Frame 1Symbol 20491 as "__Packages.com.kongregate.client.MicrotransactionServices"
ExportAssets (56)Timeline Frame 1Symbol 20492 as "__Packages.com.kongregate.common.util.JSON"
ExportAssets (56)Timeline Frame 1Symbol 20493 as "__Packages.com.kongregate.common.comm.Message"
ExportAssets (56)Timeline Frame 1Symbol 20494 as "__Packages.com.kongregate.client.StatServices"
ExportAssets (56)Timeline Frame 1Symbol 20495 as "__Packages.com.kongregate.client.KongregateServices"
ExportAssets (56)Timeline Frame 1Symbol 20496 as "__Packages.com.kongregate.client.HighScoreServices"
ExportAssets (56)Timeline Frame 1Symbol 20497 as "__Packages.com.kongregate.common.util.Utils"
ExportAssets (56)Timeline Frame 1Symbol 20498 as "__Packages.com.kongregate.common.comm.external.ExternalMessageDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 20499 as "__Packages.com.kongregate.common.comm.Opcode"
ExportAssets (56)Timeline Frame 1Symbol 20500 as "__Packages.com.kongregate.common.util.Log"
ExportAssets (56)Timeline Frame 1Symbol 20501 as "__Packages.com.kongregate.common.comm.local.MessageConnection"




http://swfchan.com/18/87556/info.shtml
Created: 7/10 -2018 14:57:21 Last modified: 7/10 -2018 14:57:21 Server time: 18/11 -2024 21:35:30