Application class
35
See also
Application.acceptConnection()
,
Application.onConnect
,
Application.onConnectReject
,
Application.rejectConnection()
Application.onConnectReject
Availability
Flash Media Server (with communication components only).
Usage
application.onConnectReject = function (clientObj [,p1, ..., pN]){}
Parameters
clientObj
A Client object; the client connecting to the application.
p1...pN
Optional parameters passed to the
application.onConnectReject
handler.
These parameters are passed from the client-side
NetConnection.connect()
method when a
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()
is called from the client side and a client fails to connect to an
application instance.
Use
onConnectReject
to handler the result of an rejected connection in an application that
contains components.
If you don’t use the Flash Media Server components framework, you can execute code in the
application.onConnect
handler after accepting or rejecting a connection. When you use
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
and
application.onConnectReject
. This architecture
allows all the components to decide whether a connection is accepted or rejected.
Содержание FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT...
Страница 1: ...Server Side ActionScript Language Reference...
Страница 4: ...4 Contents...
Страница 228: ...228 Server Side ActionScript Language Reference...
Страница 234: ...234 Server Side Information Objects...