Application class
25
Application.disconnect()
Availability
Flash Communication Server MX 1.0.
Usage
application.disconnect(
clientObj
)
Parameters
clientObj
The client to disconnect. The object must be a Client object from the
application.clients
array.
Returns
A Boolean value of
true
if the disconnect was successful; otherwise,
false
.
Description
Method; causes the server to terminate a client connection to the application. When this
method is called,
NetConnection.onStatus
is invoked on the client side with a status
message of
NetConnection.Connection.Closed
. The
application.onDisconnect
handler is also invoked.
Example
The following example calls the
application.disconnect()
method to disconnect all users
from an application instance:
function disconnectAll(){
for (i=0; i < application.clients.length; i++){
application.disconnect(application.clients[i]);
}
}
Application.gc()
Availability
Flash Media Server 2.
Usage
application.gc()
Parameters
None.
Содержание FLASH MEDIA SERVER 2
Страница 1: ...Server Side ActionScript Language Reference...
Страница 4: ...4 Contents...
Страница 228: ...228 Server Side ActionScript Language Reference...
Страница 234: ...234 Server Side Information Objects...