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

    full screen stretch



      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.


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


      I've added images of each case.

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


      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;



      How else could I avoid stretching the graphics?