Wednesday, October 13, 2010

Got a Flash Animation that mysteriously shrinks in Firefox? This might help...

This one plagued me for months, literally.

I was tasked with fixing a website that contains Flash - the problem is that the Flash displays 100% correctly in Internet Explorer and in Google Chrome.
Throw Firefox into the mix and the Flash suddenly shrinks to about 20% of it's full size, tucked up against the top margin of the browser.

Very odd - especially considering that I had checked and double checked all my scaling settings etc. etc.
After much Googling and research though, The Daily Reviewer came to my rescue, with a magical little piece of code which you can find here.

Just insert the code into your page, substitute the values "Untitled-1.swf" with the name of your own SWF file, and VOILA!