[flashpro] enabling - stage showall & fixedwidth in a
singleflash file
Varun Shetty
varun.shetty at mphasis.com
Tue Jan 4 02:04:10 EST 2005
Hey thanks for the lead denis..
Btw. Taggart ideally the book resizes and only the menu resizes if it is
gone below the 100% of the menu ..
Well here is a useful link explaining it too.
http://www.oddhammer.com/flash_scale/stage_width.htm
Regards,
VARUN SHETTY
-----Original Message-----
From: flashpro-bounces at muinar.org [mailto:flashpro-bounces at muinar.org]
On Behalf Of denis
Sent: Monday, January 03, 2005 9:33 PM
To: 'Mailing list for professional Flash designers and developers'
Subject: RE: [flashpro] enabling - stage showall & fixedwidth in a
singleflash file
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
------------------------------------------------------------------
send message to the list: mailto:flashpro at muinar.org
[FlashPro] list info, subscribe, archive: http://flash-list.com/
There's also a WebPro mailing list: http://webdesign-list.com/
cutting-edge sounds for flash: http://flash-sounds.com/
More information about the FlashPro
mailing list