Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Should an exception be thrown from JavaScript and not handled with a try/catch statement, the HTML control will dispatch an uncaughtScriptException event. By default, this event will output the JavaScript error message into the FlexBuilder Output View, however you can determine exactly what you want it to do by adding an event listener for this event.
An event listener can be registered in ActionScript in exactly the same way you would listen for any other ActionScript event, or it can be registered in JavaScript on the window.htmlLoader object.