# Allowing background scaling, content not

**URL:** <https://forum.kirupa.com/t/allowing-background-scaling-content-not/116221>\
**Category:** Uncategorized\
**Created:** [July 15, 2004, 5:33pm UTC](https://forum.kirupa.com/t/allowing-background-scaling-content-not/116221 "2004-07-15T17:33:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandao](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@brandao](https://forum.kirupa.com/u/brandao)\
**Post date:** [July 15, 2004, 5:33pm UTC](https://forum.kirupa.com/t/allowing-background-scaling-content-not/116221/1 "2004-07-15T17:33:25Z")

</div>

I want to use a gradient as background for my flash movie, but I want this background to cover the whole browser’s window just like Adopt Design does it (check out [Adopt Design](http://www.adoptdesign.com)). The content of the flash movie should NOT be resizable with the browser’s window though. So, I used this code:

fscommand(“fullscreen”, “false”);  
fscommand(“allowscale”, “false”);  
Stage.scaleMode = “noScale”;  
sizer = new Object();  
sizer.onResize = function() {  
\_root.bg.\_width = Stage.width;  
\_root.bg.\_height = Stage.height;  
\_root.bg.\_x = -((Stage.width-780)/2);  
\_root.bg.\_y = -((Stage.height-540)/2);  
};  
Stage.addListener(sizer);

in the HTML file I did set the margins to 0pix and the SWF’s height and width to 100%.

But when I type in the address in the browser to open the page the first time, I see the flash movie in the center with white background around it anyway, and when I resize the browser’s window (even if just 1pix) everything is perfect. What’s happening?

check the problem in a JPG:

![](http://forum.kirupa.com/uploads/kirupa/646/0725cdd2526a89e1.jpg)

the site (notice what changes when you resize the window, after opening)

[www.antoniobrandao.com/meira/](http://www.antoniobrandao.com/meira/)

☹
