====== swfresize ====== {{tag>project swfresize}} ===== Summary ===== * **Homepage **: [[http://www.eberhardt.ca/swfresize]] * **License **: **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. **Features:** * Allow SWF to be 100% within the browser window * Force minimum width for SWF * Force a certain amount of the SWF height to always be "above the fold" (perfect for SWFs that are taller than they are wider) * Keeps the aspect ratio of original SWF file * Great for "full-screen" Flash applications * Works with SWFObject * Only takes two lines of code to implement * Prevents movieclips and shapes that are not on the stage from being seen (bleeding over the edge of the SWF stage) * A much better option than simply saying your movie is 100% wide and 100% high ===== Tutorials ===== [[projects:swfresize:tutorials|Tutorials]] ===== Demos ===== [[projects:swfresize:demos|Demos]] ===== Examples ===== * Burnt Toast Opera ([[http://www.burnttoastopera.com]]) -- Notice how the "Buy Me Love" section is always above the fold no matter what size the browser is at, as long as it's wider than the minimum width. ===== Download ===== [[http://www.eberhardt.ca/swfresize/swfresize.zip]] ===== Discussion ===== [[projects:swfresize:discussion|discussion]]