Advertisement
Guest User

Untitled

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