# Filling The Browser Window Using SWFObject.js

**URL:** <https://forum.kirupa.com/t/filling-the-browser-window-using-swfobject-js/258515>\
**Category:** flash\
**Created:** [April 24, 2008, 5:23pm UTC](https://forum.kirupa.com/t/filling-the-browser-window-using-swfobject-js/258515 "2008-04-24T17:23:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitster79](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@kitster79](https://forum.kirupa.com/u/kitster79)\
**Post date:** [April 24, 2008, 5:23pm UTC](https://forum.kirupa.com/t/filling-the-browser-window-using-swfobject-js/258515/1 "2008-04-24T17:23:04Z")

</div>

How do I make a swf stretch to fill the browser window using the swfObject method?  
I tried changing the swfObject size to “100%’, “100%”, but that just positioned it in the top left corner (cutting it off for some reason).

The code I have usually used for this can be seen here [http://www.hideaway-ludington.com/](http://www.hideaway-ludington.com/) but I now would like to achieve the same results using the swfObject to embed my swfs.

Thanks
