1

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

Rachel Gallen
  • 27,943
  • 21
  • 72
  • 81
zoom23
  • 694
  • 2
  • 10
  • 23

3 Answers3

5

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.

Varnius
  • 1,527
  • 1
  • 12
  • 14
4

Use :

stage.displayState = StageDisplayState.FULL_SCREEN
Vipul
  • 431
  • 1
  • 5
  • 16
0

First put an MC on your stage and Instance Name is toggle, then you might use this one:

var fullScreen:Boolean = false;
toggle.addEventListener(MouseEvent.CLICK, toggleScreen);

function toggleScreen(e:MouseEvent):void
{
   if(fullScreen == false)
   {
        fullScreen = true;
        stage.displayState = StageDisplayState.FULL_SCREEN;
   }
   else
   {
        fullScreen = false;
        stage.displayState = StageDisplayState.NORMAL; 
   }

}
halilcakar
  • 1,628
  • 1
  • 12
  • 18