7 Replies Latest reply on Nov 10, 2012 6:51 AM by kglad

    How do I get .swf to view correctly no matter what zoom level the browser is in?

    ckw90901

      Here's the site to visit.

       

      howtobeamentalist . net/test1/


      This is the piece of code in question, I believe. And I've played with each scale mode, but NO_SCALE is the only one that views correctly when the browser is at 100% zoom level.


      stage.scaleMode = StageScaleMode.NO_SCALE;

      stage.align = StageAlign.TOP_LEFT;

      stage.addEventListener(Event.RESIZE, onStageResize)

      function onStageResize(e:Event):void {

      var widthScale:Number = stage.stageWidth / 930; // 800 is the original width of the swf, you should replace it with your width

      scaleX = scaleY = widthScale;

      }

      flashmo_close.addEventListener( MouseEvent.CLICK, pic_click );


      If you show up at the site with your browser at 100%, it appears fine.

      But, there are a lot of people that either view pages at 90% or 110% and if you don't arrive at the site with a 100%, none of your resizing will matter.


      If anyone can help fix it so that when the user arrives at the site, no matter what zoom level their browswer is in, it works, that would be awesome.


      Thanks!