Flash content not go full screen

206 Views Asked by At

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.

1

There are 1 best solutions below

7
On BEST ANSWER

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

<param name="allowFullScreen" value="true" />

I added the sample swf and fla