I have found this but it is supposed to work as swf
in the desktop, not in the html.
I am trying to make the content full screen via both at the beginning of the code and mouse event. However stage.displayState
returns null
. Here is how I do things;
at the beginning:
stage.displayStatus = StageDisplayState.FULL_SCREEN_INTERACTIVE;
and then
fullScreenButton.addEventListener(MouseEvent.CLICK, DoFullScreen);
function DoFullScreen(e:MouseEvent)
{
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
and in the function, stage.displayState
traced null
as I said before.
You need to target FP 11.3+ for
StageDisplayState.FULL_SCREEN_INTERACTION
for below versions :
StageDisplayState.FULL_SCREEN
and you have to add that flash param in your html
I added the sample swf and fla