fullscreen mode error message
I have the following to open my file in full screen mode, but am getting the error message below.
logo.addEventListener(MouseEvent.CLICK, fullScreenMode);
function fullScreenMode(e:MouseEvent):void
{
stage.displayState = StageDisplayState.FULL_SCREEN;
}
When I click in my swf, nothing happens. When I click in the html, I get this error:
SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
at main_fla::MainTimeline/fullScreenMode()[main_fla.MainTimeline::frame1:71]
Why is this wrong?
In my html I have this param:
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="main.swf" />
