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.
2 Comments
1 Robert Price says...
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/
(Posted at 1:09 pm on March 18th, 2009)
2 Oli says...
Looks like the packed version that has issues.
(Posted at 10:26 am on March 19th, 2009)