Fullscreen in Action Script 3

zoom23 picture zoom23 · Feb 15, 2013 · Viewed 27.3k times · Source

I work with Flash Adobe CS6.

I want to have a fullscreenmode in my application. In AC2 there was a function fscommand. I tried this one, but without success. I just have a .swf file, which should go to fullscreenmode after starting.

Do i have a opportunity to bring my application in Fullscreen Mode, without using Adobe Air ?

Flash Player Version: 11.4

Answer

Varnius picture Varnius · Feb 15, 2013

Use either

stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE (You need to target FP 11.3+ to use this mode)

or

stage.displayState = StageDisplayState.FULL_SCREEN.

The latter one won't allow you to read keyboard input while in full-screen mode.