Server-Side Communication ActionScript > Application.onDisconnect |
![]() ![]() ![]() |
Application.onDisconnect
Availability
Flash Communication Server MX.
Usage
application.onDisconnect = function (clientObj
){
// insert code here
};
Parameters
clientObj
A client disconnecting from the application.
Returns
The server ignores any return value.
Description
Event handler; invoked when a client disconnects from the 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
This 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"); };
![]() ![]() ![]() |