Advertisement
Guest User

Untitled

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