# I Need Help With The Final Part Of My Website- BrowserResize

**URL:** <https://forum.kirupa.com/t/i-need-help-with-the-final-part-of-my-website-browserresize/303891>\
**Category:** flash\
**Created:** [January 28, 2010, 6:20pm UTC](https://forum.kirupa.com/t/i-need-help-with-the-final-part-of-my-website-browserresize/303891 "2010-01-28T18:20:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Playdo](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Playdo](https://forum.kirupa.com/u/Playdo)\
**Post date:** [January 28, 2010, 6:20pm UTC](https://forum.kirupa.com/t/i-need-help-with-the-final-part-of-my-website-browserresize/303891/1 "2010-01-28T18:20:07Z")

</div>

Hi, I need help to finish the final part of my website.

My site has a full screen toggle

```auto
onFullScreen = function(bFull: Boolean) {
[COLOR=gray]//if normal size, go to fullscreen, else go to normal size[/COLOR]
  if(Stage["displayState"]=="normal"){
   Stage["displayState"]="fullScreen";
  }else{
    Stage["displayState"]="normal";
  }
}
[COLOR=gray]//Create a listener for each time the Stage is resized[/COLOR]
var resizeListener:Object = new Object();
[COLOR=gray]//Called each time the stage is resized[/COLOR]
resizeListener.onResize = function () {
[COLOR=gray]//toggles between + and - icons[/COLOR]
  if(Stage["displayState"]=="normal"){
   toggler.gotoAndStop(1);
  }else{
   toggler.gotoAndStop(2);
  }
}
[COLOR=gray]//Add the listener to Stage[/COLOR]
Stage.addListener(resizeListener);
[COLOR=gray]//code for toggler button[/COLOR]
toggler.onRelease = function() {
  onFullScreen();
}

```

I’ve been trying to add a resize function to this so that it can be viewed in different size browsers. Exactly like the opening page of this site [[COLOR=#800080]http://www.milesaldridge.com/[/COLOR]](http://www.milesaldridge.com/) So the whole page is always in view and scales until it reaches a set maximum size. How do I do this? I’d really appreciate it if someone could help out with this.

If the .fla is needed just ask.
