User Guide

Application class 33
If the password is incorrect, the user is rejected and an information object with a message
property set to “Invalid password” is returned to the client side. The object is assigned to
infoObject.application. To access the message property, use the following code on the
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.onConnectAccept,
Application.onConnectReject, Application.rejectConnection()
Application.onConnectAccept
Availability
Flash Media Server (with communication components only).
Usage
application.onConnectAccept = function (clientObj [,p1, ..., pN]){}
Parameters
clientObj A Client object; the client connecting to the application.
p1...pN Optional parameters passed to the application.onConnectAccept() method.
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 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 successfully connects to an application instance.
Use
onConnectAccept to handle the result of an accepted connection in an application that
contains components.