2 Replies Latest reply on May 6, 2008 12:11 PM by sandisi

    centering content on browser resize

      Hi. I have my main flash .swf set to 1024 x 700 pixels. I have a movie clip that goes from one end to the other at the bottom and another movie clip at the top (which I want centered). Plus, I want the bottom movie clip to resize when the browser window is resized. I don't want the top movie clip to resize at all. Is this possible?

      I manually changed the width and height of the .swf in the source code to 100%. But the main .swf does not resize when the browser window resizes.

      Here's my code for the main .swf:

      Stage.align = "TL";
      Stage.scaleMode = "noScale";

      sizeListener = new Object();
      sizeListener.onResize = function() {
      trace (Stage.width)
      trace (Stage.height)

      What code do i put for the bottom movie clip?