Application.onstatus - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

Example
Usage
The following example defines a function that sends a trace statement whenever the
application.onDisconnect = function (clientObj){
// insert code here

application.onStatus

};
Parameters
A client disconnecting from the application.
clientObj
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
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
An object that contains the error level, code, and sometimes a description. See the
infoObject
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
any
Stream.onStatus
there are a few status calls that come only to
used for debugging messages that generate errors.
20
application.onStatus
or
NetConnection.onStatus
application.onStatus
application.onDisconnect
event handler is the root for
messages that don't find handlers. Also,
. This event handler can be
Server-Side Communication ActionScript
19

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash communication server mx

Table of Contents