Search code examples
user-interfaceactionscript-3flash

How to make UI layout not scale when window is resized


I am working in a player and when am trying to make it fullscreen the scrubber and volume bar everything become too big in size.

How can I make it normal?


Solution

  • You need to set the scaleMode of your movie and align it to the top-left.

    stage.displayState = StageDisplayState.FULL_SCREEN;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;