# Flash CS3 (AS2) problem with liquid layout

**URL:** <https://forum.kirupa.com/t/flash-cs3-as2-problem-with-liquid-layout/273716>\
**Category:** flash\
**Created:** [October 19, 2008, 4:27pm UTC](https://forum.kirupa.com/t/flash-cs3-as2-problem-with-liquid-layout/273716 "2008-10-19T16:27:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmsrite](https://avatars.discourse-cdn.com/v4/letter/w/9e8a1a/32.png) [@wmsrite](https://forum.kirupa.com/u/wmsrite)\
**Post date:** [October 19, 2008, 4:27pm UTC](https://forum.kirupa.com/t/flash-cs3-as2-problem-with-liquid-layout/273716/1 "2008-10-19T16:27:29Z")

</div>

I am creating a liquid layout design website and I have no trouble getting the layout to resize after the listener detects that the browser has been re sized, but I can’t figure out how to get the layout at full screen when it initially loads. I have about a ten frames with content being loaded through xml (Slideshow Pro Director) and only the first frame of the swf will respond and go to the stage width/height. when I click on a button to take me to a different part of the movie the layout stays small until it detects a browser resize event. I know this is a seriously easy fix, but i’ve been at it for four hours now and can’t figure out what in hades i’m doing wrong. Here is a link to the swiff that doesn’t work right (click on the photo singles cat to see my problem) [http://wmsrite.com/test](http://wmsrite.com/test)

I’ve included a sample of the AS I’m using in frame one:  
stop();  
Stage.align = “TL”;  
Stage.scaleMode = “noScale”;  
//splash  
ssp.setSize(Stage.width, Stage.height);  
myListenera = new Object();  
myListenera.onResize = function ()  
{  
ssp.setSize(Stage.width, Stage.height);  
}  
;  
Stage.addListener(myListenera);  
ssp.onLoad = myListenera.onResize;

//singles  
single\_ssp.setSize(Stage.width, Stage.height);  
myListenerb = new Object();  
myListenerb.onResize = function ()  
{  
single\_ssp.setSize(Stage.width, Stage.height);  
}  
;  
Stage.addListener(myListenerb);  
single\_ssp.onLoad = myListenerb.onResize;

/_sizeListener = new Object();  
sizeListener.onResize = function() {  
single\_ssp.\_x = Stage.width  
single\_ssp.\_y = Stage.height  
centered.\_width = Stage.width \* 1  
};  
Stage.addListener(sizeListener);_/
