2 Replies Latest reply on May 29, 2008 2:15 AM by Newsgroup_User

    Fullscreen Toggle Button

    rp34
      Hi,

      I am creating a Flash projector file to put on a cd. I wanted to create a Fullscreen Toggle button. But I am not clear on how to set it up. So far i do have what i want, which is, when the projector runs it automatically goes to fullscreen

      fscommand("fullscreen","true");

      but what i would like to do is create a toggle button, which can switch between fullscreen and non-fullscreen. Can anybody provide me with some assistance on how i can create the toggle button?

      Thanks,
        • 1. Re: Fullscreen Toggle Button
          nonybd
          make a button called "fullscreen_btn", with a dynamic text field called "btnLabel" that says "Fullscreen" by default
          then apply this code to the keyframe:

          var inFullScreen = false;// set toggle var
          fullscreen_btn.onRelease = function (){
          if (inFullScreen){// if already in fullscreen mode
          fscommand('fullscreen', 'false');// leave full screen mode
          this.btnLabel.text = 'Fullscreen';
          }else{// but if not in fullscreen mode
          fscommand('fullscreen', 'true');// go into fullscreen mode
          this.btnLabel.text = 'Exit Fullscreen';
          }
          };
          • 2. Re: Fullscreen Toggle Button
            Level 7
            Hi,

            You may want to look at this example

            http://www.flashjester.com/index.php?section=faq_search&search=maximise#42

            Download it and see it working.

            Is this what you require ?

            If so then download a FREE evaluation copy from

            http://www.jugglor.com

            and try it with your Projector files.

            Hope this helps.

            Email us directly if you have further questions.

            Regards
            FlashJester Support Team

            e. - support@flashjester.com
            w. - www.flashjester.com

            "This has been one of the most impressive and thoroughly pleasant
            experiences of customer support I have ever come across - astounding!"
            Director - hedgeapple