# Launching to a SWF rather than HTML

**URL:** <https://forum.kirupa.com/t/launching-to-a-swf-rather-than-html/59410>\
**Category:** web dev\
**Created:** [July 31, 2004, 4:31am UTC](https://forum.kirupa.com/t/launching-to-a-swf-rather-than-html/59410 "2004-07-31T04:31:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trafffic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trafffic/32/663_2.png) [@trafffic](https://forum.kirupa.com/u/trafffic)\
**Post date:** [July 31, 2004, 4:31am UTC](https://forum.kirupa.com/t/launching-to-a-swf-rather-than-html/59410/1 "2004-07-31T04:31:14Z")

</div>

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](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](http://www.trafffic.com)” target="\_blank"\>Trafffic website.\</a\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 4, 2004, 10:49pm UTC](https://forum.kirupa.com/t/launching-to-a-swf-rather-than-html/59410/2 "2004-08-04T22:49:51Z")

</div>

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
