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
Wrap
Text File
|
2011-07-20
|
1KB
|
48 lines
class mx.remoting.debug.NetDebugResponseProxy extends Object
{
function NetDebugResponseProxy(source, original)
{
super();
this._sourceNC = source;
this._originalNR = original;
}
function onDebugEvents(debugevents)
{
var _loc3_ = debugevents;
var _loc2_ = _loc3_.length;
var _loc1_ = 0;
while(_loc1_ < _loc2_)
{
this._sourceNC.sendServerEvent(_loc3_[_loc1_]);
_loc1_ = _loc1_ + 1;
}
}
function onResult(resultobj)
{
this._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugResult(resultobj));
this._originalNR.onResult(resultobj);
}
function onStatus(statusobj)
{
var _loc1_ = this;
var _loc2_ = statusobj;
_loc1_._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugStatus(_loc2_));
if(_loc1_._originalNR.onStatus != undefined)
{
_loc1_._originalNR.onStatus(_loc2_);
}
else
{
_global.System.onStatus(_loc2_);
}
}
function __resolve(name)
{
var _loc1_ = name;
trace("NetDebugResponseProxy.__resolve name: " + _loc1_);
this._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugReceiveCall(_loc1_,arguments));
this._originalNR[_loc1_].apply(arguments);
return null;
}
}