0 Replies Latest reply on Jan 30, 2008 12:52 PM by patrick_garner

    Please help with my stage resize listener

    patrick_garner Level 1
      Hi people of the adobe,

      I'm using the following script to adjust a video_container's size when the browser is stretched while at the same time retaining it's aspect ratio?

      var initW:Number = presentation.video_container._width;
      var initH:Number = presentation.video_container._height;

      stageResizeListener.onResize = function() {
      var targ:Number = Math.round((Stage.width*initH)/initW);
      presentation.video_container._width = Stage.width;
      presentation.video_container._height = targ;

      I thought this would solve the problem but all that's happening is that is that it's adjusting to the width and not the height. Any help would be greatly appreciated Text