MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spezifikationen Seite 314

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 313
14
Example
This example uses a for loop to iterate through each member of the application.clients array
and calls the method
serverUpdate on each client:
for (i = 0; i < application.clients.length; i++){
application.clients[i].call("serverUpdate");
}
Application.disconnect
Availability
Flash Communication Server MX.
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 method is also
invoked.
Example
This example calls the application.disconnect method to disconnect all users of an
application instance:
function disconnectAll(){
for (i=0; i < application.clients.length; i++){
application.disconnect(application.clients[i]);
}
}
Application.name
Availability
Flash Communication Server MX.
Usage
application.name
Description
Property (read-only); contains the name of the Flash Communication Server application instance.
Seitenansicht 313
1 2 ... 309 310 311 312 313 314 315 316 317 318 319 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare