home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 136 / MOBICLIC136.ISO / pc / DATA / HOTE / libs / amfphp / amfphp.swf / scripts / __Packages / mx / remoting / debug / NetDebugConfig.as < prev    next >
Text File  |  2011-07-20  |  2KB  |  76 lines

  1. class mx.remoting.debug.NetDebugConfig
  2. {
  3.    function NetDebugConfig()
  4.    {
  5.       super();
  6.       Object.registerClass("NetDebugConfig",mx.remoting.debug.NetDebugConfig);
  7.    }
  8.    static function getNetDebugVersion()
  9.    {
  10.       return 1;
  11.    }
  12.    static function attachNetDebugConfigFunctions(ndc)
  13.    {
  14.       var _loc1_ = ndc;
  15.       _loc1_.setDebug = function(setval)
  16.       {
  17.          this.m_debug = setval;
  18.       };
  19.       _loc1_.getDebug = function()
  20.       {
  21.          return this.m_debug;
  22.       };
  23.       for(var _loc2_ in _loc1_)
  24.       {
  25.          if(typeof _loc1_[_loc2_] == "object")
  26.          {
  27.             mx.remoting.debug.NetDebugConfig.attachNetDebugConfigFunctions(_loc1_[_loc2_]);
  28.          }
  29.       }
  30.       return null;
  31.    }
  32.    static function getDefaultNetDebugConfig(isController)
  33.    {
  34.       var _loc1_ = _global;
  35.       if(_loc1_.netDebugConfigSO == undefined)
  36.       {
  37.          var _loc2_ = "TestMovie_Config_Info";
  38.          if(isController)
  39.          {
  40.             _loc2_ = "Controller_Config_Info";
  41.          }
  42.          _loc1_.netDebugConfigSO = SharedObject.getLocal(_loc2_);
  43.       }
  44.       if(_loc1_.netDebugConfigSO.data.config == undefined)
  45.       {
  46.          _loc1_.netDebugConfigSO.data.config = mx.remoting.debug.NetDebugConfig.getRealDefaultNetDebugConfig();
  47.       }
  48.       _loc1_.netDebugConfigSO.flush();
  49.       return _loc1_.netDebugConfigSO.data.config;
  50.    }
  51.    static function getRealDefaultNetDebugConfig()
  52.    {
  53.       var _loc1_ = new mx.remoting.debug.NetDebugConfig();
  54.       _loc1_.m_debug = true;
  55.       _loc1_.client = new mx.remoting.debug.NetDebugConfig();
  56.       _loc1_.client.m_debug = true;
  57.       _loc1_.client.trace = true;
  58.       _loc1_.client.recordset = true;
  59.       _loc1_.client.http = true;
  60.       _loc1_.client.rtmp = true;
  61.       _loc1_.realtime_server = new mx.remoting.debug.NetDebugConfig();
  62.       _loc1_.realtime_server.m_debug = true;
  63.       _loc1_.realtime_server.trace = true;
  64.       _loc1_.app_server = new mx.remoting.debug.NetDebugConfig();
  65.       _loc1_.app_server.m_debug = true;
  66.       _loc1_.app_server.trace = true;
  67.       _loc1_.app_server.error = true;
  68.       _loc1_.app_server.recordset = true;
  69.       _loc1_.app_server.httpheaders = false;
  70.       _loc1_.app_server.amf = false;
  71.       _loc1_.app_server.amfheaders = false;
  72.       _loc1_.app_server.coldfusion = true;
  73.       return _loc1_;
  74.    }
  75. }
  76.