4

Flash Remoting : Passing responder object with remote function calls.

 2 years ago
source link: http://www.mikechambers.com/blog/2002/07/09/flash-remoting-passing-responder-object-with-remote-function-calls/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Flash Remoting : Passing responder object with remote function calls.

Tuesday, July 9, 2002

Branden Hall and Christian Cantrell are on the same DC - NYC train that I am. Branden showed me some useful Flash Remoting stuff he figured out.

You can pass a responder object for a remote method as the first argument to the method call. This allows you to pass a separate instance of an object when you are calling the same remote method multiple times. The only caveat is that the responder function must have an onResult method. It will not work if your use functionName_Result. Here is an example:

var result = new Object();
result.onResult = function(data)

{
	trace("data received");
}

 //netservices code snipped
 service.functionName(result, "foo");

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK