OSFlash: swfresize
According to the swfresize page on OSFlash, swfresize is "a small bit of JavaScript that helps a 'full-screen' Flash application be as large as possible and still maintain it’s aspect ratio, and keep everything within the viewable area of the browser."
Swfresize works with SWFObject and takes just two lines of code to implement. It keeps the aspect ratio of your SWF file and stops off-stage assets from appearing.
Basically, it sounds like a better alternative to setting your movie to have 100% width and height.
Although the link to the swfresize page on James's blog doesn't seem to be working at the moment, the download link for the swfresize.zip file does work.
See swfresize on OSFlash.
The OSFlash: swfresize article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.

Geoff
Hmm, that could be simplified a bit by extending SWFObject.prototype instead of making an entirely separate utility.
Then you wouldn’t have to pass the element id or the sizes of the swf.
March 6th, 2007 at 7:33 pmAran
So Geoff, are you going to be baking it in to a new release of SWFObject then?
March 7th, 2007 at 1:34 amaral
… or the first release of SWFFix, possibly?
http://www.swffix.org/devblog/
March 7th, 2007 at 7:12 amSavvas
Nice..Thanks Aral.
March 7th, 2007 at 9:07 amjimjay
So how does this replace the parameters that you set when creating the SWFObject object?
Guess I’m confused on its usage.
var sr = new SWFResize(’flashcontent’, 300, 450, 400);
March 7th, 2007 at 3:33 pmvar so = new SWFObject(”swf/Player_Shell.swf”, “CoursePlayer”, “100%”, “100%”, “8″, “#FFFFFF”);
james.eberhardt
Hey there;
I guess I got caught with egg on my face on this one. I put up the URL to a “homepage” for SWFResize without actually creating it. I didn’t think anyone would pay attention to this little script so soon.
To answer a few questions:
– yes, it could be a SWFObject.prototype. It would be great to see this incorporated into SWFFix.
– this is different than simply using the parameters set within the SWFObject tag because this actually resizes the DIV rather than the SWF itself. The SWF within the DIV is set to be 100% of the width and height of the DIV. This way I can set some constraints around the size of the SWF, forcing a minimum width, and a minimum amount of content above the fold. The size of the DIV gets updated when the browser window gets resized.
Anyway, I put up an example on the SWFResize page. (here: http://osflash.org/projects/swfresize)
March 14th, 2007 at 11:08 pmaral
Thanks for the update, James!
March 15th, 2007 at 12:35 am