Howto: Allow the flash to scale down if the screen resolution is too small
In today’s Internet, we can finally create website intended to work in 1024*768 as a minimum resolution. Some might say even higher.
One advantage of Flash over HTML is the ability to scale the content to the window’s size. Unfortunately that’s a pretty silly feature most of the time: if someone was to resize its browser window or have it small by default, your website is not readable, intros and home page become cryptic and the first impression is ruined.
But let’s come back to our topic. Yes, some people are still in 800*600. And yes they deserve to enjoy your website, so why wouldn’t they get a resized version? Obviously fonts and bitmaps become a bit fuzzy but hey, they’re used to watch the web in the worst conditions.
So the idea is simple, if our visitor’s screen resolution is smaller than 1024, we want to have a flash that resizes, if it’s 1024 or higher, we want to give him our intended size with a noscale.
Just in front of the javascript embbed of flash, you add:
if(screen.width < 1020)
{
var myScale = 'showall';
}
else
{
var myScale = 'noscale';
}
then within the Adobe’s embed, change the line
’scale’, ‘noscale’, (or whatever else)
to
’scale’, myScale,
And that’s it.
The screen resolution detection is very basic and will work with most modern browser. If it doesn’t work because they’re still using an old Netscape, ah well, they will go stuff emself with a noscale!
Let me know your thoughts if any.
cheers,
nic.
Adobe can be used to create great templates for mobile software. With the increase in popularity of cell phones, its application are increasing as well. To reach potential clients on should consider launching a site. This can be done at low cost and much ease. With the help of microsoft training, one can utilize microsoft software to develop the site. After the site is developed, the internet can be searched for cheap hosting companies. One might want to look for companies which hires people with ccie certification, as they are very capable of handling web hosting services. And marketing programs can be used to let people know about the site. Seo tips can be brought into play increase the site’s search engine ranking, where as ppc search engines can be employed to boost the traffic. An affiliate programs are also a good idea to increase the scope of marketing.
Related
About this entry
You’re currently reading “Howto: Allow the flash to scale down if the screen resolution is too small,” an entry on (i) information
- Published:
- 26.05.07 / 12am
- Category:
- Flash, Tutorials, Uncategorized
Related Posts
Comments are closed
Comments are currently closed on this entry.