views:

452

answers:

1

Hi people,

Is there any way of detecting an error when a Flash-plugin loads its content?

Basically, what I want to do is to provide some alternate content, in case something goes wrong when the Flash-plugin tries to load it's .swf file.

The .swf file is managed by the client and hence I want to create some kind of fall back default content, in case something has gone wrong, e.g the .swf file has been deleted.

I know how to detect the flash version etc. but I can't find any resources on this type of scenario.

Cheers

+1  A: 

If you are embedding with SWFObject, then I think you want to look at the result of your embedding javascript:

var so = swfobject.createSWF( ... );

Here are some details: http://pipwerks.com/lab/swfobject/test-embed-success/index.html

jedierikb