PDA

View Full Version : remoting for .net and as2.0 RelayResponder problem


GeoBart
05-12-2005, 03:06 PM
Hello,

I'm using remoting mx for .net and as components for as2.0.
I've set up 2 aspx pages: 1 that returns the string hello world, and 1 that returns the params array passed from flash movie. When i look at the netconnection debugger window, the result contains the expected values. However the result and fault events are not triggerd after the call of the service.
The code i use (in the first frame of my flash movie):


var inited:Boolean = null;
if(inited == null)
{
inited = true;
NetDebug.initialize();
var testService:Service = new Service("http://localhost/projects/testprojects/testFlashRemoting/gateway.aspx", null, "projects.testprojects.testflashremoting", null, null);
var pc:PendingCall = testService.testParams("param1","param2",3,4);
//var pc:PendingCall = testService.helloWorldNet();
pc.responder = new RelayResponder(this, "gotResult", "gotFault");
}
function gotResult(re:ResultEvent):Void {
trace("got result");
}
function gotFault(fa:FaultEvent):Void {
trace("got fault");
}


Anyone has an idea on this one?

Regards,

Bart

GeoBart
05-12-2005, 04:17 PM
ok, sorry for this stupid one, forgot to import RelayResponder class;