Scaling and centering objects.
Hi,
I have a center window and a background in my flash file. I am trying to get the center window to stay in the center of the web browser screen and get the background to expand and fill the entire web browser screen below center window layer. Sort of like this site http://smlsd.com.
I've currently converted the background to a movie clip and have this code.
background_mc.width = stage.stageWidth;
background_mc.height = stage.stageWidth;
However, the background is not resizing to fill the screen,
In publishing settings, I have dimensions to "Match Movie", Window mode in "Window", HTML alignment "Default", Scale set to "No Scale" (I don't want the center window to scale and loose proportion. It should have a set size.), and Flash alignment set to both "Center" and "Center".
I do not know how to get the center window in the center of the screen and have the background automatically resize to fill the whole screen. Can somebody show me some code which would solve this problem and explain it to me? Thanks.
