1 Reply Latest reply on Feb 12, 2009 4:42 PM by Newsgroup_User

    Enter Fullscreen

    Graphic Graeme Level 1
      I 'm creating a website that I want to open fullscreen. I currently have a btn on my stage with this code attached to it.

      on (press) {
      toggleFullScreen();
      }

      I'm wondering if there's a way to just have the website open in fullscreen? as opposed to having a button.

      Any help with this would be greatly appreciated..
      Thanks In Advance.

      graeme
        • 1. Re: Enter Fullscreen
          Level 7
          Graphic Graeme,

          > I 'm creating a website that I want to open fullscreen. I
          > currently have a btn on my stage with this code attached
          > to it.
          >
          > on (press) {
          > toggleFullScreen();
          > }

          Presumably, you have this toggleFullScreen() function declared
          somewhere, right? It's a custom function, so if has to be defined somewhere
          in your movie. (You may well have this in place already, but I'm just
          making sure.)

          > I'm wondering if there's a way to just have the website
          > open in fullscreen? as opposed to having a button.

          For security reasons, Flash Player requires that the fullscreen option
          is purposefully selected by the user. The only way to go fullscreen without
          intervention is to fake it, which you can do by setting your SWF's width and
          height in the browser to 100%. At that point, you have numerous options for
          how your content should scale (or not scale), and you can optionally respond
          to the Stage.onResize event.


          David Stiller
          Adobe Community Expert
          Dev blog, http://www.quip.net/blog/
          "Luck is the residue of good design."