Skip to main content

swffit auto-resizes Flash websites to browser window size

Among the many usability problems plaguing Flash websites is the problem of fluidity. Pure CSS based websites has the property of auto adjusting the contents of the page to fit the browser window size. If the window size is small the content can wrap itself to always remain visible. Of course, the site designer must allow for this behavior.

swffit_logoOn the other hand, on a Flash website if you set the Flash size to 100% width and/or height (full bleed) the browser won't generate scrollbars and maybe an important content will be hidden for the user. If you must use Flash on a website, you should take a look at swffit.

swffit, formerly called FitFlash, is a smart script that resizes your flash movie automatically if your browser window size is smaller or greater than your flash minimum desired size keeping it accessible independent of screen resolution.

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

Using swffit is simple. Just include the swffit.js Javascript file in your pages and then just call one simple javascript function with the desired dimensions.

<script type="text/javascript" src="swffit.js"></script>
<script type="text/javascript">
<!--
swffit.fit("my_flash", 1000, 590);
//-->
</script>

You can find a number of live examples (and download link) at the bottom of this page.

Comments

Popular posts from this blog

How to Record CPU and Memory Usage Over Time in Windows?

Whenever the computer is lagging or some application is taking too long to respond, we usually fire up task manager and look under the Performance tab or under Processes to check on processor utilization or the amount of free memory available. The task manager is ideal for real-time analysis of CPU and memory utilization. It even displays a short history of CPU utilization in the form of a graph. You get a small time-window, about 30 seconds or so, depending on how large the viewing area is.

How to Schedule Changes to Your Facebook Page Cover Photo

Facebook’s current layout, the so called Timeline, features a prominent, large cover photo that some people are using in a lot of different creative ways. Timeline is also available for Facebook Pages that people can use to promote their website or business or event. Although you can change the cover photo as often as you like, it’s meant to be static – something which you design and leave it for at least a few weeks or months like a redesigned website. However, there are times when you may want to change the cover photo frequently and periodically to match event dates or some special promotion that you are running or plan to run. So, here is how you can do that.

Diagram 101: Different Types of Diagrams and When To Use Them

Diagrams are a great way to visualize information and convey meaning. The problem is that there’s too many different types of diagrams, so it can be hard to know which ones you should use in any given situation. To help you out, we’ve created this diagram that lays out the 7 most common types of diagrams and when they’re best used: