# AS2 Full browser script

**URL:** <https://forum.kirupa.com/t/as2-full-browser-script/313628>\
**Category:** flash\
**Created:** [September 5, 2010, 10:47am UTC](https://forum.kirupa.com/t/as2-full-browser-script/313628 "2010-09-05T10:47:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan008](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@Dan008](https://forum.kirupa.com/u/Dan008)\
**Post date:** [September 5, 2010, 10:47am UTC](https://forum.kirupa.com/t/as2-full-browser-script/313628/1 "2010-09-05T10:47:34Z")

</div>

hi there,

i am doing my site and i wanted to have the site to fit full browser but the script i am using stretches across which is kinda distorted. Anyway to fix this? thanks.

```auto
stop();
this.onResize = function() {
    //-- Called when browser is resized.
    this.green_mc._x = (Stage.width/2)-(this.green_mc._width/2);
    this.green_mc._y = (Stage.height/2)-(this.green_mc._height/2);
    this.green_mc = Stage.width+"x"+Stage.height;
};
Stage.scaleMode = "exactFit";
Stage.align = "TL";
Stage.showMenu = false;
Stage.addListener(this);
this.onResize();

```
