It's when you call the service.  However, since Flash is single-threaded, it 
won't get returned until after you've created your RelayResponder, which is 
a good thing.


----- Original Message ----- 
From: "Judah Frangipane" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Wednesday, November 09, 2005 12:13 PM
Subject: [Flashcoders] Flash remoting - when is the service call made?


We are using flash remoting and I am trying to figure out when the call
is getting made. Is it at the time that I call the service method or
after I create the Relay Responder object? Does the pending call object
get and hold the data until a relay responder has been created or after
it has been created?

// call service
var temp_pc:PendingCall = myService.readDirectory(dirPath);

// create a responder.
temp_pc.responder = new RelayResponder(this, "gotMilk", "gotFault");

function gotMilk( re:mx.rpc.ResultEvent ):Void {
    // do stuff
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to