title: Detect if Flash application loaded correctly using Javascript?
body: <p>My product opens a web browser and points it at an HTML file containing a local Flash application. How do I detect programmatically whether this file loaded successfully and if not what exception was thrown? Is there a way to do this using Javascript?</p>
  
  <p>Checking externally whether the file exists on disk is not enough because I've seen other failures occur (race conditions might be involved).</p>