38
Server-Side ActionScript Language Reference
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 don’t 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.
Example
The following example defines a function that sends a trace statement whenever the
application.onStatus
method is invoked. You can also define a function that gives users
specific feedback about the type of error that occurred.
appInstance.onStatus = function(infoObject){
trace("An application error occurred");
};
Application.registerClass()
Availability
Flash Communication Server MX 1.0.
Usage
application.registerClass(
className
,
constructor
)
Parameters
className
The name of an ActionScript class.
constructor
A constructor function used to create an object of a specific class type during
object deserialization. The name of the constructor function must be the same as
className
.
During object serialization, the name of the constructor function is serialized as the object’s
type. To unregister the class, pass the value
null
as the
constructor
parameter. Serialization
is the process of turning an object into something you can send to another computer over the
network.