Copy link to clipboard
Copied
I have two seperate machines I work on. Is it possible to have a true fullscreen? It was possible in as2, but all examples I've seen on this forum haven't worked. I will not be using an accompanying html file, I will be publishing to exe. Really stuck here!
1 Correct answer
Then if you wish it to allow scaling, then do so.
Import in:
import flash.display.StageScaleMode;
and in the fullscreen function add:
stage.scaleMode = StageScaleMode.EXACT_FIT;
or
stage.scaleMode = StageScaleMode.SHOW_ALL;
Copy link to clipboard
Copied
import flash.events.Event;
import flash.display.StageDisplayState;
stage.addEventListener(Event.ENTER_FRAME,_fullScreen);
function _fullScreen(e:Event):void
{
stage.removeEventListener(Event.ENTER_FRAME,_fullScreen);
stage.displayState = StageDisplayState.FULL_SCREEN;
}
Copy link to clipboard
Copied
Full screen in a projector will only go true fullscreen with the bk of the flash file filling the entire space (independent of resolution) with specific coding or run through an html file. I developed typically for a board that runs at 1024x768. On my monitor now I get two white spaces running down each side of the flash projector file. So not a true fullscreen.
Copy link to clipboard
Copied
Then if you wish it to allow scaling, then do so.
Import in:
import flash.display.StageScaleMode;
and in the fullscreen function add:
stage.scaleMode = StageScaleMode.EXACT_FIT;
or
stage.scaleMode = StageScaleMode.SHOW_ALL;
Copy link to clipboard
Copied
bingo thats it! the exact fit line worked perfectly!
Thanks!
Copy link to clipboard
Copied
If this is a projector there should be no issue fullscreening the application. It involves no security or flash settings.

