PDA

View Full Version : NetConnection Debugger doesn't work


vladbc
04-21-2005, 06:07 PM
My NetConnection Debugger doesn't work. Though remoting woks.

I have this code:

import mx.remoting.NetServices;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();

// !!!!!!!!!!! - this is UNDEFINED
trace(NetDebug)

NetServices.setDefaultGatewayUrl("http://localhost/remoting/gateway.aspx");
var gatewayConnection:Object = NetServices.createGatewayConnection();

var service:Object = gatewayConnection.getService("remoting",this);

service.Test( "mmm" );

function Test_Result(result:Object):Void{
_root.ttt.text += T.Get( result, "Result");// WORKS FINE
}




The strange thing is that after I import mx.remoting.debug.NetDebug; NetDebug is still undefined but my NetDebug class is there at
C:\Documents and Settings\myuser\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes\mx\remoting\debug

vladbc
04-21-2005, 07:05 PM
I have found it. The new mx.remoting.debug.NetDebug was loaded but not compiled. So I just made a change inside this and several other classes (that were undefined) in order to cause Compiletion error. So this way I forced recompilation and now it works.

Blindeye
04-18-2006, 02:25 PM
Could you post exactly what you did? I'm having the same problem.

mrluke
05-24-2006, 01:44 PM
I am having the debugger of a problem also, can you please post your changes.
:)