Launching to a SWF rather than HTML

Just after people’s opinions.

Wanting to build my site so that it scales no matter what the screen size. I have set a an HTML page that automatically redirects to load a SWF in the same window. The result means that the SWF will fill the window.

I have tested this on a Mac in Safari, Firefox and IE as well as Windows in IE, Firefox and Netscape. It seems to work fine.

My biggest concern is the URL ends up looking like http://www.tr…file.swf. Just looks a little silly.

Apart from that, has anyone else tried? Are there problems with it? Is there a better way? Should I scrap the idea?

For an example of what I mean visit <a href=“http://www.trafffic.com” target="_blank">Trafffic website.</a>

you can do many things:
-redirect the users that type your website’s url to the swf file
-configure your server to take the swf file as the index.htm file

  • or make a dinamic html that changes the size of the attached flash object

this code inside the flash object in the html page:
<SCRIPT>
w = screen.width;
h = screen.height;
document.write(’ width="’+w+’" height="’+h+’"’);
</SCRIPT>
< SCRIPT >
w = screen.width;
h = screen.height;
document.write(’ width="’+w+’" height="’+h+’"’);
< /SCRIPT >

you can adjust the window size to full screen using the javascript function resizeTo(w ,y);
or you can write window.height instead of screen.height to adjust your flash object to the current size of the window