[Flashcoders] Flash remoting - when is the service call made?

2005-11-09 Thread Judah Frangipane
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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash remoting - when is the service call made?

2005-11-09 Thread JesterXL
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 flashcoders@chattyfig.figleaf.com
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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders