I'm working on a Flash game, and it renders fine on most browsers and machines. However, when I run the game in Firefox on a Microsoft Surface Pro tablet, the SWF appears to be zoomed out. I can right-click on the game and click on "Show All" and it will return things to normal.
However, my question is how can I stop Firefox (and/or my computer) from doing that? The ideal solution would be something in code that can fix the problem automatically for my users, because I feel like this problem probably comes up with other browser/machine combinations that I haven't encountered yet.
The first thing my program does is call this:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
Is there any way to tell Flash Player which zoom level it should start with? Or perhaps there's a way to detect what the current zoom level is so that we can respond to it gracefully?
Another option would be to detect the browser's zoom level, but that doesn't seem very feasible, and even if it was, Firefox's is actually set to 100% zoom when this happens, so that wouldn't be very useful.