1 Reply Latest reply on May 5, 2010 4:19 AM by Darshan Rane

    how to fullscreen a flash website




      I have seen many websites that include a flash file, and there is a button when pressed, the webpage becomes fullscreen. And a text is displayed "Press ESC to exit fullscreen mode". Does anybody know how to make this script?


      And I think there should be some javascript also. Isn't it?

        • 1. Re: how to fullscreen a flash website
          Darshan Rane Level 3

          In your flash file create a btn and attach followinf listener to it.


               addEventListener(MouseEvent.CLICK, fullscreen_click, false, 0, true);
                  //Click for fullscreen btn
                  private function fullscreen_click(event):void
                      if (stage.displayState == StageDisplayState.NORMAL)
                      {    stage.displayState=StageDisplayState.FULL_SCREEN;    }
                      {    stage.displayState=StageDisplayState.NORMAL;        }