Application.onDisconnect
Availability
Flash Communication Server MX 1.0.
Usage
application.onDisconnect = function (clientObj){}
Parameters
A Client object; a client disconnecting from the application.
clientObj
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
// 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
An object that contains the error level, code, and sometimes a description. For
infoObject
more information, see
event handler:
"Server-Side Information Objects" on page
229.
Application class
37
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?