|
| 1 | +class com.hypeCP.loader.loader |
| 2 | +{ |
| 3 | + var PLUGIN_HOLDER, loadSWFb, CLIENT, onEnterFrame; |
| 4 | + function loader(arg) |
| 5 | + { |
| 6 | + HANDLERS.SHELL = {}; |
| 7 | + HANDLERS.AIRTOWER = {}; |
| 8 | + HANDLERS.LOCAL_CRUMBS = {}; |
| 9 | + HANDLERS.GLOBAL_CRUMBS = {}; |
| 10 | + HANDLERS.ENGINE = {}; |
| 11 | + HANDLERS.INTERFACE = {}; |
| 12 | + this._addReplace(function (url) |
| 13 | + { |
| 14 | + return (url); |
| 15 | + }); |
| 16 | + _global.baseURL = "http://localhost/"; |
| 17 | + System.security.allowDomain("*"); |
| 18 | + loadMovieNum("http://localhost/play/v2/client/load.swf?cp1356", 1); |
| 19 | + _root.onEnterFrame = function () |
| 20 | + { |
| 21 | + for (var _loc11 in _level1) |
| 22 | + { |
| 23 | + if (typeof(_level1[_loc11]) == "movieclip") |
| 24 | + { |
| 25 | + _level1.bootLoader.messageFromAS3({type: "setEnvironmentData", data: {clientPath: "http://localhost/play/v2/client/", contentPath: "http://localhost/play/v2/content/", gamesPath: "http://localhost/play/v2/games/", connectionID: "hype127", language: "en", basePath: "", affiliateID: "0"}}); |
| 26 | + _root.onEnterFrame = function () |
| 27 | + { |
| 28 | + if (_level1.shellContainer.DEPENDENCIES_FILENAME) |
| 29 | + { |
| 30 | + _level1.bootLoader.messageFromAS3({type: "showLogin"}); |
| 31 | + _level0.CLIENT.handleContainerFound(_level0.CLIENT.PENGUIN = _level1.shellContainer); |
| 32 | + } // end if |
| 33 | + }; |
| 34 | + } // end if |
| 35 | + } // end of for...in |
| 36 | + }; |
| 37 | + } // End of the function |
| 38 | + function handlePluginLoaded(pluginFunction, inter) |
| 39 | + { |
| 40 | + if (PENGUIN.AIRTOWER && (!inter || PENGUIN.INTERFACE)) |
| 41 | + { |
| 42 | + pluginFunction(); |
| 43 | + } |
| 44 | + else |
| 45 | + { |
| 46 | + PLUGINS.push([pluginFunction, inter]); |
| 47 | + } // end else if |
| 48 | + } // End of the function |
| 49 | + function handleContainerFound(container) |
| 50 | + { |
| 51 | + this.PLUGIN_HOLDER = this.PENGUIN.createEmptyMovieClip("pluginContainer_mc", 65535); |
| 52 | + _global.PenguBackup = container; |
| 53 | + with (container) |
| 54 | + { |
| 55 | + if (LOCAL_CRUMBS) |
| 56 | + { |
| 57 | + _level0.CLIENT._fireEvent("LOCAL_CRUMBS"); |
| 58 | + } // end if |
| 59 | + if (GLOBAL_CRUMBS) |
| 60 | + { |
| 61 | + _level0.CLIENT._fireEvent("GLOBAL_CRUMBS"); |
| 62 | + } // end if |
| 63 | + if (AIRTOWER) |
| 64 | + { |
| 65 | + _level0.CLIENT._fireEvent("AIRTOWER"); |
| 66 | + } // end if |
| 67 | + if (SHELL) |
| 68 | + { |
| 69 | + _level0.CLIENT._fireEvent("SHELL"); |
| 70 | + } // end if |
| 71 | + if (!LOCAL_CRUMBS) |
| 72 | + { |
| 73 | + return; |
| 74 | + } // end if |
| 75 | + for (var i in this.FAKE_LANG) |
| 76 | + { |
| 77 | + LOCAL_CRUMBS.lang[i] = this.FAKE_LANG[i]; |
| 78 | + } // end of for...in |
| 79 | + if (!GLOBAL_CRUMBS || !AIRTOWER || !SHELL) |
| 80 | + { |
| 81 | + return; |
| 82 | + } // end if |
| 83 | + createEmptyMovieClip("addons_mc", _level1.getNextHighestDepth()); |
| 84 | + SHELL.analytics = false; |
| 85 | + SHELL.hideErrorPrompt(); |
| 86 | + GLOBAL_CRUMBS.login_server.ip = [this.HOST]; |
| 87 | + GLOBAL_CRUMBS.login_server.even_port = 6112; |
| 88 | + GLOBAL_CRUMBS.login_server.odd_port = 6112; |
| 89 | + GLOBAL_CRUMBS.redemption_server.ip = this.HOST; |
| 90 | + GLOBAL_CRUMBS.redemption_server.port = 6114; |
| 91 | + AIRTOWER.LOGIN_IP = this.HOST; |
| 92 | + AIRTOWER.LOGIN_PORT_EVEN = 6112; |
| 93 | + AIRTOWER.LOGIN_PORT_ODD = 6112; |
| 94 | + AIRTOWER.SET_SIZE = "ssp"; |
| 95 | + AIRTOWER.SET_ALPHA = "ssa"; |
| 96 | + AIRTOWER.SET_BLEND = "ssb"; |
| 97 | + AIRTOWER.PLUGIN_LOAD = "pl"; |
| 98 | + AIRTOWER.SERVER_DATA = "sd"; |
| 99 | + AIRTOWER.GET_VERSION = "gv"; |
| 100 | + AIRTOWER.GET_SERVERS = "gs"; |
| 101 | + AIRTOWER.MOD_REQUEST = "xy"; |
| 102 | + AIRTOWER.SWF_COMMAND = "fc"; |
| 103 | + AIRTOWER.UPDATE_MOOD = "umo"; |
| 104 | + AIRTOWER.PRIVATE_MSG = "pmsg"; |
| 105 | + AIRTOWER.GET_USERLOG = "glog"; |
| 106 | + AIRTOWER.NEW_USERLOG = "nlog"; |
| 107 | + AIRTOWER.TIMER_KICK = "tk"; |
| 108 | + AIRTOWER.LOAD_MOVIE = "lm"; |
| 109 | + SHELL.e_func[SHELL.KICK] = function () |
| 110 | + { |
| 111 | + trace ("Kicked"); |
| 112 | + }; |
| 113 | + AIRTOWER.addListener(AIRTOWER.SET_SIZE, this.handleSetSize); |
| 114 | + AIRTOWER.addListener(AIRTOWER.SET_BLEND, this.handleSetBlend); |
| 115 | + AIRTOWER.addListener(AIRTOWER.SET_ALPHA, this.handleSetAlpha); |
| 116 | + AIRTOWER.addListener(AIRTOWER.PLUGIN_LOAD, this.handlePluginLoad); |
| 117 | + AIRTOWER.addListener(AIRTOWER.SERVER_DATA, this.handleServerData); |
| 118 | + AIRTOWER.addListener(AIRTOWER.GET_VERSION, this.handleGetVersion); |
| 119 | + AIRTOWER.addListener(AIRTOWER.GET_SERVERS, this.handleServers); |
| 120 | + AIRTOWER.addListener(AIRTOWER.MOD_REQUEST, this.handleModRequest); |
| 121 | + AIRTOWER.addListener(AIRTOWER.SWF_COMMAND, this.handleSwfCommand); |
| 122 | + AIRTOWER.addListener(AIRTOWER.UPDATE_MOOD, this.handleUpdateMood); |
| 123 | + AIRTOWER.addListener(AIRTOWER.PRIVATE_MSG, this.handlePrivateMsg); |
| 124 | + AIRTOWER.addListener(AIRTOWER.TIMER_KICK, this.handleTimerKick); |
| 125 | + AIRTOWER.addListener(AIRTOWER.LOAD_MOVIE, this.handleLoadMovie); |
| 126 | + AIRTOWER.addListener(AIRTOWER.GET_USERLOG, this.bakeHandler(AIRTOWER.GET_USERLOG)); |
| 127 | + AIRTOWER.addListener(AIRTOWER.NEW_USERLOG, this.bakeHandler(AIRTOWER.NEW_USERLOG)); |
| 128 | + GLOBAL_CRUMBS.mascots_crumbs = new Object(); |
| 129 | + GLOBAL_CRUMBS.mascots_crumbs[1] = {name: "Lynx", gift_id: 9056}; |
| 130 | + SHELL.redemption_server.ip = this.HOST; |
| 131 | + SHELL.redemption_server.port = 6114; |
| 132 | + SHELL.createEmptyMovieClip("core_mc", SHELL.getNextHighestDepth()); |
| 133 | + SHELL.loadSWFb = SHELL.loadSWF; |
| 134 | + SHELL.loadSWF = function (a, b, c, d, e, f) |
| 135 | + { |
| 136 | + for (var _loc3 in _level0.CLIENT.REPLACES) |
| 137 | + { |
| 138 | + b = _level0.CLIENT.REPLACES[_loc3](b); |
| 139 | + } // end of for...in |
| 140 | + return (this.loadSWFb(a, b, c, d, e, f)); |
| 141 | + }; |
| 142 | + SHELL.makePlayerObjectFromStringB = SHELL.makePlayerObjectFromString; |
| 143 | + SHELL.makePlayerObjectFromString = function (str) |
| 144 | + { |
| 145 | + var _loc1 = SHELL.makePlayerObjectFromStringB(str); |
| 146 | + _loc1.data = str.split("|"); |
| 147 | + return (_loc1); |
| 148 | + }; |
| 149 | + LOCAL_CRUMBS.lang.chat_restrict = "a-z A-Z z-A 0-9 !-} ?!.,;:`´-_/\\(){}=&$§\"=?@\'*+-ßäöüÄÖÜ#?<>\n\t"; |
| 150 | + } // End of with |
| 151 | + System.security.allowDomain.call(_level1, "*"); |
| 152 | + for (var i in this.PLUGINS) |
| 153 | + { |
| 154 | + if (!this.PLUGINS[i][1]) |
| 155 | + { |
| 156 | + this.PLUGINS[i][0](); |
| 157 | + } // end if |
| 158 | + } // end of for...in |
| 159 | + _root.onEnterFrame = this.waitForInterface; |
| 160 | + } // End of the function |
| 161 | + |
| 162 | + function handleSetSize(obj) |
| 163 | + { |
| 164 | + var _loc1 = obj.shift(); |
| 165 | + var _loc3 = obj.shift(); |
| 166 | + var _loc4 = obj.shift(); |
| 167 | + _level0.CLIENT.PENGUIN.ENGINE.room_mc.load_mc.p(_loc1)._XSCALE = _loc3; |
| 168 | + var _loc2 = "ENGINE.room_mc.load_mc.p" + _loc1 + "._XSCALE"; |
| 169 | + _level0.CLIENT._setProperty(_loc2.split("."), _loc3); |
| 170 | + _loc2 = "ENGINE.room_mc.load_mc.p" + _loc1 + "._YSCALE"; |
| 171 | + _level0.CLIENT._setProperty(_loc2.split("."), _loc4); |
| 172 | + trace (_loc1); |
| 173 | + trace (_loc3); |
| 174 | + trace (_loc4); |
| 175 | + } // End of the function |
| 176 | + function handleSetAlpha(obj) |
| 177 | + { |
| 178 | + var _loc1 = obj.shift(); |
| 179 | + var _loc2 = obj.shift(); |
| 180 | + var _loc3 = "ENGINE.room_mc.load_mc.p" + _loc1 + "._alpha"; |
| 181 | + _level0.CLIENT._setProperty(_loc3.split("."), _loc2); |
| 182 | + trace (_loc1); |
| 183 | + trace (_loc2); |
| 184 | + } // End of the function |
| 185 | + function handleSetBlend(obj) |
| 186 | + { |
| 187 | + var _loc1 = obj.shift(); |
| 188 | + var _loc2 = obj.shift(); |
| 189 | + var _loc3 = "ENGINE.room_mc.load_mc.p" + _loc1 + ".blendMode"; |
| 190 | + _level0.CLIENT._setProperty(_loc3.split("."), _loc2); |
| 191 | + trace (_loc1); |
| 192 | + trace (_loc2); |
| 193 | + } // End of the function |
| 194 | + |
| 195 | + function handleServers(obj) |
| 196 | + { |
| 197 | + trace ("Handling Servers"); |
| 198 | + for (var _loc3 in _level0.CLIENT.PENGUIN.GLOBAL_CRUMBS.servers) |
| 199 | + { |
| 200 | + delete _level0.CLIENT.PENGUIN.GLOBAL_CRUMBS.servers[_loc3]; |
| 201 | + delete _level0.CLIENT.PENGUIN.SHELL.world_crumbs[_loc3]; |
| 202 | + } // end of for...in |
| 203 | + var _loc2 = obj[1].split("|"); |
| 204 | + for (var _loc3 in _loc2) |
| 205 | + { |
| 206 | + _loc3 = _loc2[_loc3]; |
| 207 | + var _loc1 = _loc3.split(":"); |
| 208 | + _level0.CLIENT.addServer(_loc1[2], _loc1[0], _loc1[1], _loc1[3]); |
| 209 | + } // end of for...in |
| 210 | + } // End of the function |
| 211 | + function addServer(name, ip, port, population) |
| 212 | + { |
| 213 | + var _loc1 = 0; |
| 214 | + for (var _loc2 in _level0.CLIENT.PENGUIN.GLOBAL_CRUMBS.servers) |
| 215 | + { |
| 216 | + ++_loc1; |
| 217 | + } // end of for...in |
| 218 | + ++_loc1; |
| 219 | + trace (_loc1); |
| 220 | + _level0.CLIENT.PENGUIN.SHELL.world_crumbs[_loc1] = {name: "Alpine", ip: "127.0.0.1", port: "6113", id: _loc1, population: population}; |
| 221 | + } // End of the function |
| 222 | + function bakeHandler(handler) |
| 223 | + { |
| 224 | + if (!_level0.CLIENT.HANDLERS[handler]) |
| 225 | + { |
| 226 | + _level0.CLIENT.HANDLERS[handler] = {}; |
| 227 | + } // end if |
| 228 | + return (function (rObj) |
| 229 | + { |
| 230 | + _level0.CLIENT.HANDLERVARS = []; |
| 231 | + for (var _loc2 in rObj) |
| 232 | + { |
| 233 | + _level0.CLIENT.HANDLERVARS[_loc2] = rObj[_loc2]; |
| 234 | + } // end of for...in |
| 235 | + for (var _loc2 in _level0.CLIENT.HANDLERS[handler]) |
| 236 | + { |
| 237 | + _level0.CLIENT.HANDLERS[handler][_loc2](_level0.CLIENT.HANDLERVARS); |
| 238 | + } // end of for...in |
| 239 | + }); |
| 240 | + } // End of the function |
| 241 | + function handlePrivateMsg(obj) |
| 242 | + { |
| 243 | + obj.shift(); |
| 244 | + var sender = obj.shift(); |
| 245 | + var sendID = obj.shift(); |
| 246 | + var msg = obj.shift(); |
| 247 | + with (_level0.CLIENT.PENGUIN) |
| 248 | + { |
| 249 | + INTERFACE.openLog(); |
| 250 | + addToChatLog({player_id: sendID, nickname: sender, message: msg, type: SEND_BLOCKED_MESSAGE}); |
| 251 | + } // End of with |
| 252 | + } // End of the function |
| 253 | + function handleTimerKick(obj) |
| 254 | + { |
| 255 | + var timeout = obj.shift(); |
| 256 | + var from = obj.shift(); |
| 257 | + with (_level0.CLIENT.PENGUIN) |
| 258 | + { |
| 259 | + INTERFACE.showPrompt("ok", from + "Egg timer has been set."); |
| 260 | + SHELL.egg_timer_milliseconds_remaining = timeout * 60000; |
| 261 | + SHELL.setIsEggTimerActive(true); |
| 262 | + } // End of with |
| 263 | + } // End of the function |
| 264 | + function handleLoadMovie(obj) |
| 265 | + { |
| 266 | + trace ("Loading Movie..."); |
| 267 | + obj.shift(); |
| 268 | + loadMovieNum(obj.shift(), 5); |
| 269 | + } // End of the function |
| 270 | + function handleUpdateMood(obj) |
| 271 | + { |
| 272 | + var _loc1 = obj.shift(); |
| 273 | + var _loc2 = obj.shift(); |
| 274 | + _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[19] = _loc2; |
| 275 | + if (_level0.CLIENT.PENGUIN.INTERFACE.getActivePlayerId() == _loc1) |
| 276 | + { |
| 277 | + } // end if |
| 278 | + } // End of the function |
| 279 | + function handleSwfCommand(obj) |
| 280 | + { |
| 281 | + obj.shift(); |
| 282 | + var func = obj.shift(); |
| 283 | + var returnValue = this[func].apply(this, obj); |
| 284 | + with (_level0.CLIENT.PENGUIN.AIRTOWER) |
| 285 | + { |
| 286 | + send(PLAY_EXT, ICP_HANDLER + "#" + SWF_COMMAND, [returnValue], "str", -1); |
| 287 | + } // End of with |
| 288 | + } // End of the function |
| 289 | + function handleession(obj) |
| 290 | + { |
| 291 | + obj.shift(); |
| 292 | + var _loc4 = obj.shift(); |
| 293 | + var _loc5 = obj.shift(); |
| 294 | + var _loc2 = obj.shift(); |
| 295 | + var _loc3 = obj.shift(); |
| 296 | + _level0.CLIENT.PENGUIN.SHELL.showErrorPrompt(_loc4, _loc5, _loc2, undefined, _loc3); |
| 297 | + } // End of the function |
| 298 | + function waitForInterface() |
| 299 | + { |
| 300 | + with (_level0.CLIENT.PENGUIN) |
| 301 | + { |
| 302 | + if (INTERFACE) |
| 303 | + { |
| 304 | + _level0.CLIENT._fireEvent("INTERFACE"); |
| 305 | + } // end if |
| 306 | + if (ENGINE) |
| 307 | + { |
| 308 | + _level0.CLIENT._fireEvent("ENGINE"); |
| 309 | + } // end if |
| 310 | + if (!INTERFACE || !ENGINE) |
| 311 | + { |
| 312 | + return; |
| 313 | + } // end if |
| 314 | + INTERFACE.DOCK.chat_mc.chat_input.maxChars = 4096; |
| 315 | + INTERFACE.convertToSafeCase = function (txt) |
| 316 | + { |
| 317 | + return (txt); |
| 318 | + }; |
| 319 | + INTERFACE.isClickableLogItem = function () |
| 320 | + { |
| 321 | + return (true); |
| 322 | + }; |
| 323 | + INTERFACE.updatePlayerWidgetB = function (a, b, c, d, e, f, g) |
| 324 | + { |
| 325 | + if (!g) |
| 326 | + { |
| 327 | + var _loc1 = INTERFACE.updatePlayerWidgetB(a, b, c, d, e, f, g); |
| 328 | + } // end if |
| 329 | + return (_loc1); |
| 330 | + }; |
| 331 | + ENGINE.randomizeNearPosition = function (player, x, y, range) |
| 332 | + { |
| 333 | + player.x = x; |
| 334 | + player.y = y; |
| 335 | + return (true); |
| 336 | + }; |
| 337 | + } // End of with |
| 338 | + for (var i in this.CLIENT.PLUGINS) |
| 339 | + { |
| 340 | + if (this.CLIENT.PLUGINS[i][1]) |
| 341 | + { |
| 342 | + this.CLIENT.PLUGINS[i][0](); |
| 343 | + } // end if |
| 344 | + } // end of for...in |
| 345 | + delete this.onEnterFrame; |
| 346 | + delete _root.onEnterFrame; |
| 347 | + this.onEnterFrame = function () |
| 348 | + { |
| 349 | + |
| 350 | + }; |
| 351 | + } // End of the function |
| 352 | + function doModeratorAction(action) |
| 353 | + { |
| 354 | + switch (action) |
| 355 | + { |
| 356 | + case "openChatlog": |
| 357 | + case "joinRoom": |
| 358 | + case "goInvisible": |
| 359 | + case "getPlayerInfos": |
| 360 | + case "leaveMeAlone": |
| 361 | + } // End of switch |
| 362 | + } // End of the function |
| 363 | + function handleModRequest(obj) |
| 364 | + { |
| 365 | + obj.shift(); |
| 366 | + var _loc7 = Number(obj.shift()); |
| 367 | + var _loc5 = String(obj.shift()); |
| 368 | + var _loc6 = String(obj.shift()); |
| 369 | + var _loc3 = Number(obj.shift()); |
| 370 | + var _loc8 = String(obj.shift()); |
| 371 | + var _loc9 = Number(obj.shift()); |
| 372 | + var _loc4 = "fv?"; |
| 373 | + PLUGIN_HOLDER.Core.modReport_mc.reason.text = _loc5; |
| 374 | + PLUGIN_HOLDER.Core.modReport_mc.roomID.text = _loc7; |
| 375 | + PLUGIN_HOLDER.Core.modReport_mc.roomName.text = _loc4; |
| 376 | + PLUGIN_HOLDER.Core.modReport_mc.reporterPlayerName.text = _loc6; |
| 377 | + PLUGIN_HOLDER.Core.modReport_mc.reporterPlayerID.text = _loc3; |
| 378 | + PLUGIN_HOLDER.Core.modReport_mc.reportedPlayerName.text = _loc8; |
| 379 | + PLUGIN_HOLDER.Core.modReport_mc.reportedPlayerID.text = _loc9; |
| 380 | + _level2.debug_txt.text = "Received mod report."; |
| 381 | + _level0.modReport_mc._visible = false; |
| 382 | + } // End of the function |
| 383 | + function handlePluginLoad(obj) |
| 384 | + { |
| 385 | + obj.shift(); |
| 386 | + with (_level0.CLIENT) |
| 387 | + { |
| 388 | + PLUGIN_HOLDER.createEmptyMovieClip(obj[0], PLUGIN_HOLDER.getNextHighestDepth()); |
| 389 | + PLUGIN_HOLDER[obj[0]].loadMovie(obj[1]); |
| 390 | + } // End of with |
| 391 | + with (_level0.CLIENT.PENGUIN.AIRTOWER) |
| 392 | + { |
| 393 | + send(PLAY_EXT, ICP_HANDLER + "#" + PLUGIN_LOAD, ["I Can Haz airtower..."], "str", -1); |
| 394 | + } // End of with |
| 395 | + } // End of the function |
| 396 | + function handleServerData(obj) |
| 397 | + { |
| 398 | + obj.shift(); |
| 399 | + with (_level0.CLIENT.PENGUIN) |
| 400 | + { |
| 401 | + SHELL.world_crumbs = new Array(); |
| 402 | + var servers = new Array(); |
| 403 | + for (var index in obj) |
| 404 | + { |
| 405 | + var rawServer = obj[index].split("|"); |
| 406 | + SHELL.world_crumbs[rawServer[0]] = {id: rawServer[0], name: rawServer[1], ip: rawServer[2], port: rawServer[3]}; |
| 407 | + } // end of for...in |
| 408 | + } // End of with |
| 409 | + with (_level0.CLIENT.PENGUIN.AIRTOWER) |
| 410 | + { |
| 411 | + send(PLAY_EXT, ICP_HANDLER + "#" + SERVER_DATA, ["Lalalala."], "str", -1); |
| 412 | + } // End of with |
| 413 | + } // End of the function |
| 414 | + function handleGetVersion(obj) |
| 415 | + { |
| 416 | + with (_level0.CLIENT.PENGUIN.AIRTOWER) |
| 417 | + { |
| 418 | + send(PLAY_EXT, ICP_HANDLER + "#" + GET_VERSION, [org.iCPTeam.iCPThree.iCPLoader.VNUMBER], "str", -1); |
| 419 | + } // End of with |
| 420 | + } // End of the function |
| 421 | + function _fireEvent(evtName) |
| 422 | + { |
| 423 | + for (var _loc2 in _level0.CLIENT.HANDLERS[evtName]) |
| 424 | + { |
| 425 | + _level0.CLIENT.HANDLERS[evtName][_loc2](); |
| 426 | + } // end of for...in |
| 427 | + _level0.CLIENT.HANDLERS[evtName] = {}; |
| 428 | + } // End of the function |
| 429 | + function _airtowerHandler(handler) |
| 430 | + { |
| 431 | + return (PENGUIN.AIRTOWER.addListener(handler, this.bakeHandler(handler))); |
| 432 | + } // End of the function |
| 433 | + function _setTextFormat(array, o) |
| 434 | + { |
| 435 | + var _loc5 = this._getProperty(array); |
| 436 | + var _loc3 = new TextFormat(); |
| 437 | + for (var _loc4 in o) |
| 438 | + { |
| 439 | + _loc3[_loc4] = o[_loc4]; |
| 440 | + } // end of for...in |
| 441 | + return (_loc5.setTextFormat(_loc3)); |
| 442 | + } // End of the function |
| 443 | + function _getProperty(array) |
| 444 | + { |
| 445 | + var _loc3 = PENGUIN; |
| 446 | + for (var _loc2 = 0; _loc2 < array.length; ++_loc2) |
| 447 | + { |
| 448 | + _loc3 = _loc3[array[_loc2]]; |
| 449 | + } // end of for |
| 450 | + return (_loc3); |
| 451 | + } // End of the function |
| 452 | + function _setProperty(array, data) |
| 453 | + { |
| 454 | + var _loc4 = PENGUIN; |
| 455 | + for (var _loc2 = 0; _loc2 < array.length; ++_loc2) |
| 456 | + { |
| 457 | + if (array.length == _loc2 + 1) |
| 458 | + { |
| 459 | + _loc4[array[_loc2]] = data; |
| 460 | + } // end if |
| 461 | + _loc4 = _loc4[array[_loc2]]; |
| 462 | + } // end of for |
| 463 | + } // End of the function |
| 464 | + function _call(array, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) |
| 465 | + { |
| 466 | + var _loc4 = PENGUIN; |
| 467 | + for (var i = 0; i < array.length; ++i) |
| 468 | + { |
| 469 | + if (array.length == i + 1) |
| 470 | + { |
| 471 | + return (_loc4[array[i]](a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)); |
| 472 | + } // end if |
| 473 | + _loc4 = _loc4[array[i]]; |
| 474 | + } // end of for |
| 475 | + } // End of the function |
| 476 | + function _makeCallback(shareVar) |
| 477 | + { |
| 478 | + var original = SHAREVARS[shareVar]; |
| 479 | + SHAREVARS[shareVar] = function (a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) |
| 480 | + { |
| 481 | + return (original(a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)); |
| 482 | + }; |
| 483 | + } // End of the function |
| 484 | + function _callWithShareVars(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) |
| 485 | + { |
| 486 | + a = SHAREVARS[a]; |
| 487 | + b = SHAREVARS[b]; |
| 488 | + c = SHAREVARS[c]; |
| 489 | + d = SHAREVARS[d]; |
| 490 | + e = SHAREVARS[e]; |
| 491 | + f = SHAREVARS[f]; |
| 492 | + g = SHAREVARS[g]; |
| 493 | + h = SHAREVARS[h]; |
| 494 | + i = SHAREVARS[i]; |
| 495 | + j = SHAREVARS[j]; |
| 496 | + k = SHAREVARS[k]; |
| 497 | + l = SHAREVARS[l]; |
| 498 | + m = SHAREVARS[m]; |
| 499 | + n = SHAREVARS[n]; |
| 500 | + o = SHAREVARS[o]; |
| 501 | + p = SHAREVARS[p]; |
| 502 | + q = SHAREVARS[q]; |
| 503 | + r = SHAREVARS[r]; |
| 504 | + s = SHAREVARS[s]; |
| 505 | + t = SHAREVARS[t]; |
| 506 | + u = SHAREVARS[u]; |
| 507 | + v = SHAREVARS[v]; |
| 508 | + w = SHAREVARS[w]; |
| 509 | + x = SHAREVARS[x]; |
| 510 | + y = SHAREVARS[y]; |
| 511 | + z = SHAREVARS[z]; |
| 512 | + return (this._call(array, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)); |
| 513 | + } // End of the function |
| 514 | + function _callBase(array, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) |
| 515 | + { |
| 516 | + return (this._useBase(this._call(array, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z))); |
| 517 | + } // End of the function |
| 518 | + function _apply(array, base, args) |
| 519 | + { |
| 520 | + var _loc4 = PENGUIN; |
| 521 | + for (var _loc2 = 0; _loc2 < array.length; ++_loc2) |
| 522 | + { |
| 523 | + if (array.length == _loc2 + 1) |
| 524 | + { |
| 525 | + return (_loc4[array[_loc2]].apply(base, args)); |
| 526 | + } // end if |
| 527 | + _loc4 = _loc4[array[_loc2]]; |
| 528 | + } // end of for |
| 529 | + } // End of the function |
| 530 | + function _foreach(array) |
| 531 | + { |
| 532 | + var _loc2 = PENGUIN; |
| 533 | + var _loc4 = {}; |
| 534 | + for (var _loc5 = 0; _loc5 < array.length; ++_loc5) |
| 535 | + { |
| 536 | + _loc2 = _loc2[array[_loc5]]; |
| 537 | + } // end of for |
| 538 | + for (var _loc5 in _loc2) |
| 539 | + { |
| 540 | + _loc4[_loc5] = _loc2[_loc5]; |
| 541 | + } // end of for...in |
| 542 | + return (_loc4); |
| 543 | + } // End of the function |
| 544 | + function _clone(array, level, a) |
| 545 | + { |
| 546 | + var _loc3 = PENGUIN; |
| 547 | + var _loc5 = {}; |
| 548 | + for (var _loc2 = 0; _loc2 < array.length; ++_loc2) |
| 549 | + { |
| 550 | + _loc3 = _loc3[array[_loc2]]; |
| 551 | + } // end of for |
| 552 | + _loc5 = this.secretForeach(_loc3, level, a); |
| 553 | + return (_loc5); |
| 554 | + } // End of the function |
| 555 | + function secretForeach(object, level, a) |
| 556 | + { |
| 557 | + var _loc3 = {}; |
| 558 | + for (var _loc6 in object) |
| 559 | + { |
| 560 | + if ((typeof(object[_loc6]) == "object" || a) && level != 0) |
| 561 | + { |
| 562 | + _loc3[_loc6] = this.secretForeach(object[_loc6], level - 1); |
| 563 | + continue; |
| 564 | + } // end if |
| 565 | + _loc3[_loc6] = object[_loc6]; |
| 566 | + } // end of for...in |
| 567 | + return (_loc3); |
| 568 | + } // End of the function |
| 569 | + function _delete(array) |
| 570 | + { |
| 571 | + var _loc4 = PENGUIN; |
| 572 | + for (var _loc2 = 0; _loc2 < array.length; ++_loc2) |
| 573 | + { |
| 574 | + if (array.length == _loc2 + 1) |
| 575 | + { |
| 576 | + delete _loc4[array[_loc2]]; |
| 577 | + } // end if |
| 578 | + _loc4 = _loc4[array[_loc2]]; |
| 579 | + } // end of for |
| 580 | + } // End of the function |
| 581 | + function _setTimeout(cmd, interval) |
| 582 | + { |
| 583 | + PENGUIN.setTimeout(cmd, interval); |
| 584 | + } // End of the function |
| 585 | + function _useBase(base) |
| 586 | + { |
| 587 | + return (PENGUIN = base); |
| 588 | + } // End of the function |
| 589 | + function _restoreBase() |
| 590 | + { |
| 591 | + return (PENGUIN = _global.PenguBackup); |
| 592 | + } // End of the function |
| 593 | + function _glow(mcP, a, b, c, d, e, f, g, h) |
| 594 | + { |
| 595 | + var _loc3 = this._getProperty(mcP); |
| 596 | + var _loc4 = new flash.filters.GlowFilter(a, b, c, d, e, f, g, h); |
| 597 | + var _loc2 = new Array(); |
| 598 | + _loc2.push(_loc4); |
| 599 | + _loc3.filters = _loc2; |
| 600 | + } // End of the function |
| 601 | + function _initLoader() |
| 602 | + { |
| 603 | + _level0.CLIENT.loader = new MovieClipLoader(); |
| 604 | + _level0.CLIENT.loader.addListener({onLoadInit: dumbHandler, onLoadError: dumbHandler, onLoadProgress: dumbHandler, onLoadStart: dumbHandler, onLoadComplete: dumbHandler}); |
| 605 | + return (_level0.CLIENT.loader); |
| 606 | + } // End of the function |
| 607 | + function _addReplace(func) |
| 608 | + { |
| 609 | + var _loc2 = REPLACES.length; |
| 610 | + REPLACES[_loc2] = func; |
| 611 | + return (_loc2); |
| 612 | + } // End of the function |
| 613 | + function _removeReplace(id) |
| 614 | + { |
| 615 | + if (REPLACES[id]) |
| 616 | + { |
| 617 | + delete REPLACES[id]; |
| 618 | + } |
| 619 | + else |
| 620 | + { |
| 621 | + for (var _loc3 in REPLACES) |
| 622 | + { |
| 623 | + if (REPLACES[_loc3] == id) |
| 624 | + { |
| 625 | + delete REPLACES[_loc3]; |
| 626 | + } // end if |
| 627 | + } // end of for...in |
| 628 | + } // end else if |
| 629 | + } // End of the function |
| 630 | + function dumbHandler(mc) |
| 631 | + { |
| 632 | + _level0.CLIENT.PENGUIN.LAST_EVENT_MC = mc; |
| 633 | + } // End of the function |
| 634 | + var PLUGINS = new Array(); |
| 635 | + var HOST = "127.0.0.1"; |
| 636 | + var PENGUIN = "Not found yet"; |
| 637 | + var REPLACES = new Array(); |
| 638 | + var FAKE_LANG = {}; |
| 639 | + var HANDLERS = {}; |
| 640 | + var SHAREVARS = {}; |
| 641 | + var HANDLERVARS = {}; |
| 642 | + var AUTHOR = "Inject[Seether/G.N.]"; |
| 643 | + var VERSION = "1.27alpha"; |
| 644 | +} // End of Class |
0 commit comments