OSFlash: swfresize

James Everhardt has just released swfresize on OSFlash.

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.

Comments