PDA

View Full Version : Flash remoting error


rainingcats
08-13-2007, 09:51 PM
Hi,

I've been working with flash remoting for a while and just stumbled on an issue. The problem is that when I try to call my remoting method using an ExternalInterface call from javascript, the required function on the server side is executed properly, but the success ResultEvent is not generated (neither is the FaultEvent).

My remoting code looks like this: -

----------------------------------------------------------------------
function callremote() {
var callremote:PendingCall = service.callremote();
callremote.responder = new RelayResponder(this, "callremote_Result", "callremote_Fault");
}
function callremote_Result(result:ResultEvent) {
trace("DONE");
}
function callremote_Fault(fault:FaultEvent) {
trace(fault.fault.description);
}
ExternalInterface.addCallback("callremote", null, callremote);
--------------------------------------------------------------------

My javascript is just calling the function "callremote" on the flash object.

Everything works fine if I call "callremote" from within the flash movie :confused:

Any help much appreciated,
Nik