User Guide

Application class 37
Application.onDisconnect
Availability
Flash Communication Server MX 1.0.
Usage
application.onDisconnect = function (clientObj){}
Parameters
clientObj A Client object; a client disconnecting from the application.
Returns
The server ignores any return value.
Description
Event handler; invoked when a client disconnects from an application. You can use this event
handler to flush any client state information or to notify other users of this event. This event
handler is optional.
Example
The following example uses an anonymous function and assigns it to the
application.onDisconnect event handler:
// This code should be placed in the global scope.
application.onDisconnect = function (client){
// Do all the client-specific disconnect logic.
// Insert code here.
trace("user disconnected");
};
Application.onStatus
Availability
Flash Communication Server MX 1.0.
Usage
application.onStatus = function (infoObject){}
Parameters
infoObject An object that contains the error level, code, and sometimes a description. For
more information, see “Server-Side Information Objects” on page 229.