Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 94637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:31:58+00:00 2026-05-10T23:31:58+00:00

My product opens a web browser and points it at an HTML file containing

  • 0

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?

Checking externally whether the file exists on disk is not enough because I’ve seen other failures occur (race conditions might be involved).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:31:58+00:00Added an answer on May 10, 2026 at 11:31 pm

    Answering my own question: https://sourceforge.net/forum/message.php?msg_id=5929756

    1. Define a Javascript function that should be invoked if Flash loaded.
    2. Invoke this method from the top of your Flash file.
    3. Use a timer to detect if the callback is never invoked.
    4. Prefer invoking Javascript functions from Flash rather than invoking Flash functions from Javascript. Either way you cannot invoke a function that has not been loaded yet. It is far easier to guarantee that the browser has finished loading your Javascript function before invoking it from Flash, than guaranteeing that Flash finished loading your Flash function before invoking it from Javascript.

    Here is an example:

    • I am using swfobject to embed Flash.
    • I use FlashVars to tell Flash which Javascript function to invoke. This is useful if there are multiple Flash objects on the page.

    Flash

    var params:Object = LoaderInfo(this.root.loaderInfo).parameters; if (ExternalInterface.available) {     var onLoaded:String = params['onLoaded'];     if (onLoaded != null)         ExternalInterface.call(onLoaded, true); } 

    Javascript

    var flashLoaded = false; var flashTimer;  function onFlashLoaded() {     flashLoaded = true;     clearTimeout(flashTimer); }  function onFlashTimeout() {     if (!isFlashLoaded)     {         // Remove the Flash object in case it is partially loaded         $('#videoFeed').empty();         $('#videoFeed').append('<div id='flashObject'></div>');         alert('Failed to load video player');     }     clearTimeout(flashTimer); }  function connectToVideo() {     var flashvars = {};     flashvars.onLoaded = 'onFlashLoaded';      var params = {};     params.menu = false;      var attributes = {};      isFlashLoaded = false;     flashTimer = setTimeout('onFlashTimeout()', 5000);      swfobject.embedSWF('flash/VideoFeed.swf', 'flashObject', '800', '600', '11', 'expressInstall.swf', flashvars, params, attributes); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 116k
  • Answers 116k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer At the least, in the first option, the generated class… May 11, 2026 at 10:36 pm
  • Editorial Team
    Editorial Team added an answer I think it could work. We do #3 on one… May 11, 2026 at 10:36 pm
  • Editorial Team
    Editorial Team added an answer yes, the Properties class itself provides accessor methods for convertions:… May 11, 2026 at 10:36 pm

Related Questions

We are trying to do a loose-integration of our product with another in the
I've been tasked with creating a tool that can diff and merge the configuration
Guys, I’ve been writing code for 15+ years, but managed to avoid Web Development
I'm currently developing a web app on Django/Python, and I consider moving to ASP.NET

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.