See also
Application.acceptConnection()
Application.onConnectReject
Application.onConnectReject
Availability
Flash Media Server (with communication components only).
Usage
application.onConnectReject = function (clientObj [,p1, ..., pN]){}
Parameters
A Client object; the client connecting to the application.
clientObj
Optional parameters passed to the
p1...pN
These parameters are passed from the client-side
client connects to the application.
Returns
Nothing.
Description
Event handler; invoked only when communication components are used (that is, when the
components.asc script is loaded into your server-side script) when
NetConnection.connect()
application instance.
Use
onConnectReject
contains components.
If you don't use the Flash Media Server components framework, you can execute code in the
application.onConnect
the components framework, however, any code you want to execute after the connection is
accepted or rejected must be placed in the framework event handlers
application.onConnectAccept
allows all the components to decide whether a connection is accepted or rejected.
,
Application.onConnect
,
Application.rejectConnection()
is called from the client side and a client fails to connect to an
to handler the result of an rejected connection in an application that
handler after accepting or rejecting a connection. When you use
and
application.onConnectReject
,
application.onConnectReject
NetConnection.connect()
handler.
method when a
. This architecture
Application class
35
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?