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
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);/