If the password is incorrect, the user is rejected and an information object with a
property set to "Invalid password" is returned to the client side. The object is assigned to
infoObject.application
client side:
ClientCom.onStatus = function (info){
trace(info.application.message);
// Prints "Invalid password"
// in the Output panel on the client-side.
};
See also
Application.acceptConnection()
Application.onConnectReject
Application.onConnectAccept
Availability
Flash Media Server (with communication components only).
Usage
application.onConnectAccept = 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 components are used (that is, when the components.asc
script is loaded into your server-side script) when
the client-side and a client successfully connects to an application instance.
Use
onConnectAccept
contains components.
. To access the
message
,
Application.onConnectAccept
,
Application.rejectConnection()
to handle the result of an accepted connection in an application that
property, use the following code on the
application.onConnectAccept()
NetConnection.connect()
NetConnection.connect()
message
,
method.
method when a
is called from
Application class
33
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?