MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Instrukcja Użytkownika Strona 16

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 155
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 15
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
13
trace("I am " + application.config.user_name + " and I work in the " +
application.config.dept_name + " department.");
trace("I am " + application.config["user_name"] + " and I work in the " +
application.config["dept_name"] + " department.");
The following code is sent to the application log file and the Administration Console:
I am jdoe and I work in the engineering department.
application.disconnect()
application.disconnect(clientObj)
Terminates a client connection to the application. When this method is called, NetConnection.onStatus() is
invoked on the client with
info.code set to "NetConnection.Connect.Closed". The
application.onDisconnect() handler is also invoked.
Availability
Flash Communication Server 1
Parameters
clientObj A Client object indicating the client to disconnect. The object must be a Client object from the
application.clients array.
Returns
A boolean value of
true if the disconnection was successful; otherwise, false.
Example
The following example calls
application.disconnect() 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()
application.gc()
Invokes the garbage collector to reclaim any unused resources for this application instance.
Availability
Flash Media Server 2
application.getStats()
application.getStats()
Returns statistics about an application.
Availability
Flash Communication Server 1
Przeglądanie stron 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 154 155

Komentarze do niniejszej Instrukcji

Brak uwag