Skip to main content
Participating Frequently
June 12, 2012
Question

opening swf in full screen mode

  • June 12, 2012
  • 2 replies
  • 4869 views

Hi,

Is there a way to adjust the screen resolution through actionscript? My requirement is to open the flash movie in full screen mode while all the contents are resized according to the screen size that the movie clip is runing. Please note the movie is not opening on a browser, it should be opened as a stand-alone SWF file.

I tried to do this by setting stage.displayState = StageDisplayState.FULL_SCREEN; at the begining of actionscripot, but it didn't work.

Thanks.

This topic has been closed for replies.

2 replies

June 13, 2012

Hi,

I am using the below function and it is working fine..

import flash.events.MouseEvent;

import flash.display.StageDisplayState;

fullScreenBtn.addEventListener(MouseEvent.CLICK, onfullScreen);

                                                                        

function onfullScreen(event:MouseEvent):void

{

          stage.displayState = StageDisplayState.FULL_SCREEN;

}

i think the problem is you are trying to load it full screen from flash IDE, if so then it will not work, Try to run the SWF file seperately, it would definately work.

Vipul

watrucAuthor
Participating Frequently
June 18, 2012

Thanks for the replies. Even though I thought stage.displayState = StageDisplayState.FULL_SCREEN is not working, because it doesn't open in full screen when I was testing the movie (ctrl + enter). But when I opened the SWF file it opened in full screen. Thanks again.

esdebon
Inspiring
June 12, 2012
As much you can do is press ctrl + f