Search code examples
flashactionscript-3resizescale

how to prevent flash from scaling / resizing my content in a web browser?


I have finished my flash game, but when I used web Browser such as Chrome or FireFox to run it, it enlarged my game to full size of the browser. Is there anyway( in AS3 script) that I could prevent this from happening as well as hide the symbols that their sizes are bigger than my default size defined at the document property panel?


Solution

  • You can prevent your application to be resized by setting stage.scaleMode = StageScaleMode.NO_SCALE; in your main application constructor. There are as well other scaleMode values available. See the docs.