0 Replies Latest reply on Nov 16, 2011 5:34 AM by alexandre.roitman

    full screen stretch

    alexandre.roitman

      Hi,

      I'm trying to use

      [CODE]stage.scaleMode = StageScaleMode.NO_SCALE;[/CODE]

      in order to avoid my movie to stretch.

      I have an AIR application and when I run it in full screen it stretches.

      http://i44.tinypic.com/muhgsz.jpg

      When I exit full screen mode, I see it in normal size.

      http://i40.tinypic.com/oshg1l.jpg

      I've added images of each case.

      I also do center the application window and make it fullscreen in the following ways:

      [CODE]

      private function centreApp():void

              {

                  var screenBounds:Rectangle = Screen.mainScreen.visibleBounds;

                  var w:int = width;

                  var h:int = height;

       

       

                  var x:int = screenBounds.x + ((screenBounds.width-w)/2);

                  var y:int = screenBounds.y + ((screenBounds.height-h)/2);

                  stage.nativeWindow.x = x;

                  stage.nativeWindow.y = y;

                  visible = true;

              }

             

              private function goFullScreen(e:MouseEvent=null):void

              {

                  stage.fullScreenSourceRect = new Rectangle(0,0,1000,800);

                  stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenRedraw);

                  stage.displayState = StageDisplayState.FULL_SCREEN;

              }

      [/CODE]

      How else could I avoid stretching the graphics?

      Thanks!