User Guide
Application class 41
Application.registerProxy()
Availability
Flash Communication Server MX 1.0.
Usage
application.registerProxy(methodName, proxyConnection [, proxyMethodName])
Parameters
methodName The name of a method. All requests to execute methodName for this
application instance are forwarded to the
proxyConnection object.
proxyConnection A Client or NetConnection object. All requests to execute the remote
method specified by
methodName are sent to the Client or NetConnection object specified in
the
proxyConnection parameter. Any result returned is sent back to the originator of the call.
To unregister or remove the proxy, provide a value of
null for this parameter.
proxyMethodName An optional parameter. The server calls this method on the object
specified by the
proxyConnection parameter if proxyMethodName is different from the
method specified by the
methodName parameter.
Returns
A value that is sent back to the client that made the call.
Description
Method; maps a method call to another function. You can use this method to communicate
between different application instances that can be on the same Flash Media Server
(or different Flash Media Servers). Clients can execute server-side methods of any application
instances to which they are connected. Server-side scripts can use this method to register
methods to be proxied to other application instances on the same server or a different server.
You can remove or unregister the proxy by calling this method and passing
null for the
proxyConnection parameter, which results in the same behavior as never registering the
method at all.