Application.rejectconnection - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

Parameters
The name of a method. All requests to execute
methodName
instance are forwarded to the
proxyConnection
method specified by
in the
proxyConnection
the call. To unregister, or remove, the proxy, provide a value of
proxyMethodName
by the
proxyConnection
by the
methodName
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 Communication Server (or
different Flash Communication 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
proxyConnection
at all.
Example
In the following example, the
the
application.onAppStart
function block, a new NetConnection object called
application.registerProxy
object.
myProxy
application.onAppStart = function(){
var myProxy = new NetConnection();
myProxy.connect("rtmp://xyz.com/myApp");
application.registerProxy("getXyz", myProxy);
};

Application.rejectConnection

Availability
Flash Communication Server MX.
Usage
application.rejectConnection(clientObj, errObj)
Parameters
A client to reject.
clientObj
An object of any type that is sent to the client, explaining the reason for rejection. The
errObj
object is available in client-side scripts as the
errObj
object that is passed to the
more information, see the Appendix, "Client-Side Information Objects," in the Client-Side
Communication ActionScript Dictionary.
22
proxyConnection
A Client or NetConnection object. All requests to execute the remote
are sent to the Client or NetConnection object that is specified
methodName
parameter. Any result that is returned is sent back to the originator of
An optional parameter. The server calls this method on the object specified
parameter if
proxyMethodName
parameter.
parameter, which results in the same behavior as never registering the method
application.registerProxy
event handler and executes when the application starts. Inside the
method is then called to assign the method
application.onStatus
methodName
object.
for this parameter.
null
is different from the method specified
method is called in a function in
is created and connected. The
myProxy
property of the information
application
call when the connection is rejected. For
for this application
for the
null
to the
getXyz

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

This manual is also suitable for:

Flash communication server mx

Table of Contents