# Stretch a movieclip to the browser size

**URL:** <https://forum.kirupa.com/t/stretch-a-movieclip-to-the-browser-size/297303>\
**Category:** flash\
**Created:** [September 30, 2009, 12:08am UTC](https://forum.kirupa.com/t/stretch-a-movieclip-to-the-browser-size/297303 "2009-09-30T00:08:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frygurljen](https://avatars.discourse-cdn.com/v4/letter/f/e0b2c6/32.png) [@frygurljen](https://forum.kirupa.com/u/frygurljen)\
**Post date:** [September 30, 2009, 12:08am UTC](https://forum.kirupa.com/t/stretch-a-movieclip-to-the-browser-size/297303/1 "2009-09-30T00:08:27Z")

</div>

Hi there!

I want to have a background movieclip of my SWF stretch to fill the browser window. I know there is a way to detect the size of the browser window in ActionScript, but I am unsure how to tell a movieclip to use those dimensions. I don’t need to worry about changing the proportion of the movie clip as it is just a solid color.

Can someone help me out with code to do this? Thanks so much!
