[flashpro] enabling - stage showall & fixedwidth in a single
flash file
denis
denis at atypic.be
Mon Jan 3 11:02:34 EST 2005
Hi there,
Here's a function that will resize content following height and width of the
browser screen.
When publishing set height and width to 100%
//
//
function init() {
var stuff = new Object();
stuff.onResize = function() {
stretchMe();
};
function stretchMe() {
// movie called menu position will move following 1/2 stage width
when browser window stretches
menu._x=.5*stage.width;
// movie background will have same height and width as browser window height
and width
background._height=stage.height
background._width=stage.width;
}
Stage.scaleMode = "noScale";
Stage.align = "tl";
Stage.addListener(stuff);
stretchIt();
}
//
init();
Hope it helps
More information about the FlashPro
mailing list