swffit – Smart Flash Resize Script

swffit is a cool tool for the one whose site deals with flash objects or for the one who uses agregated flash content where there is no control of the width and height of the flash objects.

swffit (formerly know as FitFlash) is a smart script that re-sizes your flash movie (can be flash games, youtube videos, slide shows etc.) automatically if your browser window size is smaller or greater than your flash minimum desired size keeping it accessible independent of screen resolution.

swffit - Smart Flash Resize Script
swffit - Smart Flash Resize Script

This is the best add-on script to reach your site visitors who has different screen resolution and re-sizes the browser window at custom sizes.

What this swffit exactly does?

swffit automatically re-sizes your flash to 100% width and 100% height (full bleed) when your browser window is greater than the minimum desired size and re-sizes flash to the minimum desired size when the browser window is smaller… It can also re-size the flash movie to a maximum size if the browser window size is greater than the maximum size…

Using this script is pretty simple just include the swffit.js within your head tags and place this javascript code:

swffit.fit('flashID', minWid, minHei, maxWid, maxHei, hCenter, vCenter);

The above variables are well explained in their documentation and also about lot more customization involved. The script is browser compatible too and is released under the MIT License.

Here are few examples which demonstrates the tool:

  1. Basic Example Page (Dynamic Publishing)
  2. Basic Example Page – Static (Static Publishing)
  3. Basic Example Page with SWFAddress (Dynamic Publishing)
  4. Example Page With Maximum Size – Centered (Dynamic Publishing)
  5. Example Page With Maximum Size – Centered Horizontally (Dynamic)
  6. Example Page With Maximum Size – Not Centered (Dynamic Publishing)
  7. Example Page With Vertical Scrollbar (Dynamic Publishing)

Hope you found this tool useful, and don’t forget to share your opinion/experience about this cool tool.

Published by Sravan Kumar Kandagatla

Sravan is the Founder of WittySparks, a global content publishing platform that offers witty stories and information across multiple industry domains. Under his leadership, WittySparks today has become a go-to destination for in-depth knowledge of healthcare, business, and marketing topics. Besides, Sravan is a highly experienced web designer, developer, and user experience designer. You can connect with him on Twitter or LinkedIn and initiate a chat.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Send this to a friend