Flash Media Server |
|||
| Developing Media Applications > Debugging and Monitoring Applications > About onStatus event handlers > About the System.onStatus handler | |||
In addition to the specific onStatus methods provided for the classes listed in About onStatus event handlers, Flash also provides a "super handler" called System.onStatus. If onStatus is invoked for a particular object with a level property of Error and no function is assigned to respond to it, Flash processes a function assigned to System.onStatus if it exists.
The following code example sends a message to the Output panel when an error message occurs for an object that hasn't been assigned an onStatus handler:
System.onStatus = function(genericError) {
// Your script would do something more meaningful here.
trace("An error has occurred. Please try again.");
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000097.html