Flash movie scales without me

I am developing a web version of pure ActionScript-3 (without MXML) video games using FlashDevelop and still have not experienced any real surprises.

Recently I tried to transfer my project to a trial (but fully functional) Intellij-Idea and found that, despite the fact that the .swf created by Intellij is still working, it somehow scales, so that all the elements are doubled the size. This is without me at all, no code changes.

I am aware of stage.scaleMode, but I do not use it in my code.

I want to emphasize that I’m not talking about any HTML shell attributes that usually represent .swf, as this behavior manifests itself even when loading a bare .swf into my browser.

The only variables that I can name here are the parameters passed to the Adobe flex compiler, but I looked at the available parameters and didn't see anything.

Does anyone have any thoughts on what could be happening here?

+1
source share
3 answers

The solution is to add the following two lines to the beginning of the program:

        stage.scaleMode = StageScaleMode.NO_SCALE;
        stage.align = StageAlign.TOP_LEFT;

(with appropriate import of StageScaleMode and StageAlign)

Please note that I did not need to add them when starting the project from FlashDevelop.

ScaleMode can be set to one of four values: NO_SCALE WITHOUT BORDERS SHOW ALL EXACT_FIT It seems that Intellij defaults to EXACT_FIT and FlashDevelop defaults to NO_SCALE.

BOTTOM_LEFT .. , Intellij - , . FlashDevelop - TOP_LEFT.

, ? - , .swf.

FlashDevelop.

0

HTML ? swf? stage.scaleMode StageScaleMode.NO_SCALE; , - . .

0

IntelliJ, -, ?

0

All Articles