Cerin
04-16-2008, 02:14 PM
Hi,
I've noticed that some corporate firewalls block Flash content from sites like Youtube, Myspace, etc, and I'm trying to find some way if I can detect this on the client for my own Flash content. If the content failed to load, I'd want to display a help or error message, rather than just some blank space.
I've researched this pretty heavily, and while it's pretty easy to tell if Flash is installed, there doesn't seem to be any easy way to tell if Flash has loaded or had problems loading. I tried adding an onload event to the <object> and/or <embed> tags, but they're never called. The only other solution I could think of would be to write a custom SWF that loads a target SWF, and then uses ExternalInterface() to call some Javascript function that'll log any loading errors.
Does this seem practical? Are there easier ways to tell when a Flash object has failed to load, even if there's nothing wrong with the client's player?
I've noticed that some corporate firewalls block Flash content from sites like Youtube, Myspace, etc, and I'm trying to find some way if I can detect this on the client for my own Flash content. If the content failed to load, I'd want to display a help or error message, rather than just some blank space.
I've researched this pretty heavily, and while it's pretty easy to tell if Flash is installed, there doesn't seem to be any easy way to tell if Flash has loaded or had problems loading. I tried adding an onload event to the <object> and/or <embed> tags, but they're never called. The only other solution I could think of would be to write a custom SWF that loads a target SWF, and then uses ExternalInterface() to call some Javascript function that'll log any loading errors.
Does this seem practical? Are there easier ways to tell when a Flash object has failed to load, even if there's nothing wrong with the client's player?