1
votes

After I export the .swf file in a certain size (1024*768) and then resize it manually (dragging the mouse to enlarge the screen) - everything stays in the same width and height.

After I export the .exe/.app file in a specific size (1024*768) and then resize it manually - everything scales (and I don't want that).

  1. How can I define in the as3 settings to leave the width/height size static and not dynamic.

  2. How can I tell the .exe file to get the full width and height of the current display?

I ask that because I want to have a full-size flash file that in the center there is the static sized stage.

2

2 Answers

3
votes

To prevent scale use:

stage.scaleMode = StageScaleMode.NO_SCALE;

To enter fullscreen use:

stage.displayState = StageDisplayState.FULL_SCREEN;

Have a look at the docs

0
votes

Take a look at the scaleMode property of stage. In your case it seems you would want to set it to StageScaleMode.NO_SCALE. The stageAlign property might be of interest too.

Read more in the livedocs.