132
Client-Side ActionScript Language Reference
SharedObject.onStatus
Availability
■
Flash Player 6.
■
Flash Media Server (not required).
Usage
public
onStatus = function(
infoObject
) {}
Parameters
infoObject
A parameter defined according to the status message. For more information
about this parameter, see
“SharedObject information objects” on page 156
.
Returns
Nothing.
Description
Event handler; invoked every time an error, warning, or informational note is posted for a
shared object. If you want to respond to this event handler, you must create a function to
process the information object generated by the shared object. The information object has a
code
property containing a string that describes the result of the
onStatus
handler, and a
level
property containing a string that is either
"Status"
or
"Error"
. For more
information, see
Appendix A, “Client-Side Information Objects,” on page 149
.
In addition to this
onStatus
handler, Flash also provides a super function called
System.onStatus
. If
onStatus
is invoked for a particular object and no function is assigned
to respond to it, Flash processes a function assigned to
System.onStatus
, if it exists.
SharedObject.onSync
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
myRemote_so
.onSync = function(
objArray
){
// your code here
}