1 Reply Latest reply on Aug 29, 2010 11:18 PM by skarthiks

    Keep image size unchanged when fullscreen the swf movie

    sandy_adams

      Hi,

       

      i am including a image on SWF file (using Flash CS4) i want images to keep its original dimension whether user fullscreen the SWF movie or play it on windows.

       

      currently i do not have any action script or coding on my .fla file. when i publish the movie and fullscreen it, the image i put in fla file get all stretched out and blur. Please help me to figure out how to keep the dimension unchanged.

       

      Thank you

        • 1. Re: Keep image size unchanged when fullscreen the swf movie
          skarthiks Level 2

          All you have to do is to set the scalemode of the stage to "noscale"

           

          In AS3 add the following code:

           

          import flash.display.StageDisplayState;

           

          stop();

          stage.displayState = StageDisplayState.FULL_SCREEN;

          stage.scaleMode = StageScaleMode.NO_SCALE;

           

          There is a similar code for AS2, i think infact its the same this

          Stage.scaleMode = "noScale";

           

          Thanks

          Karthik

           

          P.s. if this post is helpful, please change the thread to answered.