# Fullscreen in flash 6

**URL:** <https://forum.kirupa.com/t/fullscreen-in-flash-6/239100>\
**Category:** flash\
**Created:** [September 18, 2007, 6:37pm UTC](https://forum.kirupa.com/t/fullscreen-in-flash-6/239100 "2007-09-18T18:37:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritual](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ritual](https://forum.kirupa.com/u/ritual)\
**Post date:** [September 18, 2007, 6:37pm UTC](https://forum.kirupa.com/t/fullscreen-in-flash-6/239100/1 "2007-09-18T18:37:14Z")

</div>

Hi,

I’m trying to make a fullscreen flash webiste. I want the background symbol (bcGradient\_mc) to resize to the browser size, but the rest of the content on the stage to remain untouched.  
The actionscript works fine with flash player 8, but unfortunately I need this to work with flash player 6.

Here is the code I was using:

> stop();

Stage.scaleMode = “noScale”;

var HPositioner:Number = (Math.round((Stage.width - 640) / 2));  
var VPositioner:Number = (Math.round((Stage.height - 480) / 2));

setProperty(bgGradient\_mc, \_width, Stage.width);  
setProperty(bgGradient\_mc, \_height, Stage.height);

var resizeListener:Object = new Object();  
Stage.addListener(resizeListener);

resizeListener.onResize = function () {  
setProperty(bgGradient\_mc, \_width, Stage.width);  
setProperty(bgGradient\_mc, \_height, Stage.height);  
}

Thanks.
