# AS2 FullScreen BG

**URL:** <https://forum.kirupa.com/t/as2-fullscreen-bg/295743>\
**Category:** flash\
**Created:** [September 3, 2009, 5:34pm UTC](https://forum.kirupa.com/t/as2-fullscreen-bg/295743 "2009-09-03T17:34:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neonreel](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@neonreel](https://forum.kirupa.com/u/neonreel)\
**Post date:** [September 3, 2009, 5:34pm UTC](https://forum.kirupa.com/t/as2-fullscreen-bg/295743/1 "2009-09-03T17:34:23Z")

</div>

Hello All,

I am making a Full Screen flash site and I need my BG to scale proportionately. Currently I am using:

```auto

_root.attachMovie("bg3","bg3",_root.getNextHighestDepth());
bg3._x = Stage.width/2;
bg3._y = Stage.height/2;
function bgSize()
{
    bg3._width = Stage.width;
    bg3._height = Stage.height;        
}
bgSize();
var StageLis:Object = new Object();
StageLis.onResize = function() 
{
    bgSize();
};
Stage.addListener(StageLis);

```

But like I said I need it to scale proportionately. Can anyone help?

Thanks in advance,

neonreel
