SecurityError: Error #2152: Full screen mode is not allowed.

Posted by meghana on Stack Overflow See other posts from Stack Overflow or by meghana
Published on 2012-07-10T15:13:14Z Indexed on 2012/07/10 15:15 UTC
Read the original article Hit count: 218

Filed under:
|
|

I have one flash player , which have full-screen functionality . which is not working in FF and MAC Chrome . and throws an error as below.

SecurityError: Error #2152: Full screen mode is not allowed.
    at flash.display::Stage/set displayState()
    at com.IQMediaCorp.core::IQMediaCorpPlayer/ToggleFullScreen()

I have googled about the issue and already verified some points below

  1. my player have allowfullscreen = true in html object / encode element.
  2. the methid ToggleFullScreen is an mouse click event

below is code for ToggleFullScreen method

public function ToggleFullScreen(e:MouseEvent)
        {

                if (stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE)
                {
                    bKnob.alpha=0;
                    bigScreen=true;                 
                    stage.displayState=StageDisplayState.NORMAL;
                }
                else
                {
                    bigScreen=false;
                    stage.displayState=StageDisplayState.FULL_SCREEN_INTERACTIVE;
                    bKnob.alpha=0;

                }
        }

i don't get the reason why it is not working. can anybody help??

Thanks

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flash