Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

JavaScript Exceptions

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial