Skip to main content
Inspiring
May 24, 2011
Answered

Fullscreen in win projector exe file

  • May 24, 2011
  • 2 replies
  • 2537 views

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!

This topic has been closed for replies.
Correct answer sinious

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;

2 replies

sinious
Braniac
May 24, 2011

If this is a projector there should be no issue fullscreening the application. It involves no security or flash settings.

sinious
Braniac
May 24, 2011

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;

}

Inspiring
May 24, 2011

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.

Inspiring
May 25, 2011

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;


bingo thats it! the exact fit line worked perfectly!

Thanks!