# Full browser flash detecting browser size help

**URL:** <https://forum.kirupa.com/t/full-browser-flash-detecting-browser-size-help/225052>\
**Category:** Uncategorized\
**Created:** [May 8, 2007, 1:39pm UTC](https://forum.kirupa.com/t/full-browser-flash-detecting-browser-size-help/225052 "2007-05-08T13:39:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akphotography](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@akphotography](https://forum.kirupa.com/u/akphotography)\
**Post date:** [May 8, 2007, 1:39pm UTC](https://forum.kirupa.com/t/full-browser-flash-detecting-browser-size-help/225052/1 "2007-05-08T13:39:25Z")

</div>

[http://akmphoto.net/akmdesign\_new.html](http://akmphoto.net/akmdesign_new.html)

Anyone know the AS to make it automatically check the size of the browser for the listeners… \_notice when you resize the browser it works perfectly…but not when it first loads up…any ideas?

```
  **Code:**			   

```

// \*\*\*Stage aligned top left  
Stage.align = “TL”;  
// \*\*\* Stop the stage from scaling with the browser window.  
Stage.scaleMode = “noScale”;  
stop ();  
// initiate postitions and scaling values for objects  
fluid.\_x = (Stage.width + 200)/2  
fluid.\_y = Stage.height/2  
bottomstretch.\_height = Stage.height;  
rightstretch.\_height = Stage.height;  
topstretch.\_width = Stage.width;  
rightstretch.\_x=201;  
tutoriobutton.\_x = Stage.width - tutoriobutton.\_width

bottomo.\_x = (Stage.width + 200)/2  
// end initial position setting

//create a listner that checks to see if the browser window is resized  
sizeListener = new Object();  
sizeListener.onResize = function() {  
// change movieclip properties when the window is resized.  
topstretch.\_width = Stage.width;  
fluid.\_y = Stage.height/3;  
fluid.\_x = (Stage.width + 200)/3;  
bottomstretch.\_height = Stage.height;  
rightstretch.\_height = Stage.height;  
//_note_ 200 is the width of the left column  
tutoriobutton.\_x = Stage.width - tutoriobutton.\_width  
bottomo.\_y = Stage.height/1;  
bottomo.\_x = (Stage.width + 200)/2;  
};  
Stage.addListener(sizeListener);
