3 Replies Latest reply on Aug 20, 2009 9:17 AM by IlyaG

    Need permission to full screen mode

    IlyaG Level 1
      When I am trying to run the next code:
      stage.displayState = StageDisplayState.FULL_SCREEN;

      I am getting error that full screen mode is not aloud, how can I get that permission?
        • 1. Re: Need permission to full screen mode
          babo_ya Level 3

          I could be wrong but I think you are getting those because two reasons..


          make sure you update the index.htm to include the allowFullScreenMode = true (you can probably google this and find the solution).


          second reason is that Flex requires an event to get convert to full screen for example...


          on createCompletion event..



          private function init():void


               this.addEventListener(MouseEvent.CLICK, onAppClicked);



          private function onAppClicked(event:MouseEvent):void


               stage.displayState = StageDisplayState.FULL_SCREEN;




          hope this helps..



          1 person found this helpful
          • 2. Re: Need permission to full screen mode

            you need to add the below code in object tag in html page


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



            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

            id="AnnotationPlayer_API_Test" width="100%" height="100%"


            <param name="movie" value="mySWF.swf" />

            <param name="quality" value="high" />

            <param name="bgcolor" value="#869ca7" />

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

            <param name="allowScriptAccess" value="sameDomain" />

            <embed src="mySWF.swf" quality="high" bgcolor="#869ca7"

            width="100%" height="100%" name="AnnotationPlayer_API_Test" align="middle"











            if this post answer your question or helps. Please mark it as such

            • 3. Re: Need permission to full screen mode
              IlyaG Level 1

              tnx now its working.