MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 42

Server-side actionscript language reference
Table of Contents

Advertisement

Example
In the following example, the
in the
application.onAppStart
the function block, a new NetConnection object called
The
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 1.0.
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.
errObj
The
object is available in client-side scripts as the
errObj
information object that is passed to the
rejected. For more information, see the appendix, "Client-Side Information Objects," in the
Client-Side ActionScript Language Reference for Flash Media Server 2.
Returns
Nothing.
Description
Method; rejects the connection call from a client to the server. The
event handler notifies a script when a new client is connecting. In the function assigned to
application.onConnect
a function for
application.onConnect
that case, an application could call
server's response callback to disconnect the client from the server.
42
Server-Side ActionScript Language Reference
application.registerProxy
event handler and executes when the application starts. In
method is then called to assign the method
application.onStatus
, you can either accept or reject the connection. You can also define
that calls an application server for authentication. In
application.rejectConnection
method is called in a function
is created and connected.
myProxy
property of the
application
call when the connection is
application.onConnect
from the application
to the
getXyz

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash media server 2

Table of Contents