Problem with SWFObject 2.1 in IE7 / Vista

I have a site where I’m using the SWFObject javascript library to handle Flash detection and embedding of flash movies. I noticed a javascript error in IE7 that was preventing the alternate content being replaced with the flash movie – the end result was a banner showing ‘get a new version of flash’ etc.

After a little investigation the problem appears to only affect the minified version of the library. I haven’t found the exact issue, but it looks like a problem with the obfuscation applied in publishing the minified js file.

I have a custom endpoint handling minification and caching of the javascript anyhow, so after switching to the source version of the library and handling minification myself, all is good in IE7.

Posted:

March 18, 2009 @ 12:03

Categories:

Development

Tags:

,

Comments:

2 comments so far

Comments RSS feed for comments on this post.

  1. Is it minified or packed?

    The jQuery flash plugin has a similar issue when packed and unpacked using eval, but minified works.

    http://jquery.lukelutman.com/plugins/flash/

    Comment by Robert Price, March 18, 2009 @ 1:09 pm

  2. Looks like the packed version that has issues.

    Comment by Oli, March 19, 2009 @ 10:26 am

Leave a comment