swffit: Smart Flash Resize Script

Wed, Dec 24, 2008

Design, Flash, Javascript, Scripts

As every user has different screen resolutions & browsers can be resized to custom sizes, the browser won’t generate scrollbars at Flash movies with 100% sizes and possibly a part of the content may not be shown to the user.

swffit is a script that that resizes your flash movie automatically if your browser window size is smaller or greater than your flash minimum desired size to keep it accessible.

How to use it?

  • Include swffit.js to your webpage
  • Call the function: swffit.fit("my_flash", 1000, 590);
  • That’s all

swffit can also be controlled with an API including enabling/disabling it or adding functions when it is activated & more.

Website: http://swffit.millermedeiros.com/
Demo: http://swffit.millermedeiros.com/example.html

Share/Save/Bookmark

,

This post was written by:

saif - who has written 224 posts on Greepit.com | Open Source Resources for Designers & Developers.


Leave a Reply