MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifiche Pagina 319

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 369
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 318
Server-Side Communication ActionScript 19
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");
};
Application.onStatus
Availability
Flash Communication Server MX.
Usage
application.onStatus = function (infoObject){
// insert code here
};
Parameters
infoObject An object that contains the error level, code, and sometimes a description. See the
Appendix, “Server-Side Information Objects,” on page 67.
Returns
Any value that the callback function returns.
Description
Event handler; invoked when the server encounters an error while processing a message that was
targeted at this application instance. The
application.onStatus event handler is the root for
any
Stream.onStatus or NetConnection.onStatus messages that dont find handlers. Also,
there are a few status calls that come only to
application.onStatus. This event handler can be
used for debugging messages that generate errors.
Vedere la pagina 318
1 2 ... 314 315 316 317 318 319 320 321 322 323 324 ... 368 369

Commenti su questo manuale

Nessun commento