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

  1. class mx.remoting.debug.NetDebugResponseProxy extends Object
  2. {
  3.    function NetDebugResponseProxy(source, original)
  4.    {
  5.       super();
  6.       this._sourceNC = source;
  7.       this._originalNR = original;
  8.    }
  9.    function onDebugEvents(debugevents)
  10.    {
  11.       var _loc3_ = debugevents;
  12.       var _loc2_ = _loc3_.length;
  13.       var _loc1_ = 0;
  14.       while(_loc1_ < _loc2_)
  15.       {
  16.          this._sourceNC.sendServerEvent(_loc3_[_loc1_]);
  17.          _loc1_ = _loc1_ + 1;
  18.       }
  19.    }
  20.    function onResult(resultobj)
  21.    {
  22.       this._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugResult(resultobj));
  23.       this._originalNR.onResult(resultobj);
  24.    }
  25.    function onStatus(statusobj)
  26.    {
  27.       var _loc1_ = this;
  28.       var _loc2_ = statusobj;
  29.       _loc1_._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugStatus(_loc2_));
  30.       if(_loc1_._originalNR.onStatus != undefined)
  31.       {
  32.          _loc1_._originalNR.onStatus(_loc2_);
  33.       }
  34.       else
  35.       {
  36.          _global.System.onStatus(_loc2_);
  37.       }
  38.    }
  39.    function __resolve(name)
  40.    {
  41.       var _loc1_ = name;
  42.       trace("NetDebugResponseProxy.__resolve name: " + _loc1_);
  43.       this._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugReceiveCall(_loc1_,arguments));
  44.       this._originalNR[_loc1_].apply(arguments);
  45.       return null;
  46.    }
  47. }
  48.