3 Replies Latest reply on Apr 20, 2006 5:52 PM by Newsgroup_User

    Disable printing of SWF

    snickerbee
      I want to prevent printing of SWF files.

      I am developing in Captivate.

      Any possibility for disabling the print option in Flash player?

      When user right-clicks the SWF, there's an option to print (it prints a frame/slide at a time). I want to disable this command.
        • 1. Re: Disable printing of SWF
          Level 7


          snickerbee wrote:
          > I want to prevent printing of SWF files.
          >
          > I am developing in Captivate.
          >
          > Any possibility for disabling the print option in Flash player?
          >
          > When user right-clicks the SWF, there's an option to print (it prints a
          > frame/slide at a time). I want to disable this command.

          You can remove the entire right click menu so the print will automatically go away:
          Stage.showMenu = "false";

          Than, since flash 7, we have additional access to menu bullet items using action
          script like "hideBuiltInItems". It hides all built-in menu items except Settings.

          We can use it to work it in reverse, hide all items and than allow some by setting
          them to "true".

          For instance :

          var my_cm:ContextMenu = new ContextMenu();
          my_cm.hideBuiltInItems();
          my_cm.builtInItems.zoom = true;
          my_cm.builtInItems.play = true;
          my_cm.builtInItems.quality = true;
          this.menu = my_cm;




          if you want to add back the print than just

          //my_cm.builtInItems.print = true;


          --
          Regards

          Urami


          --



          Happy New Year guys - all the best there is in the 2006




          <urami>
          http://www.Flashfugitive.com
          </urami>

          <web junk free>
          http://www.firefox.com
          </web junk free>
          • 2. Re: Disable printing of SWF
            snickerbee Level 1
            Urami,

            Many thanks. Does the SWF containing the AS need to be imporetd to each Captivate slide to disable various menu options for the entire parent SWF?

            Chris
            • 3. Re: Disable printing of SWF
              Level 7


              snickerbee wrote:
              > Urami,
              >
              > Many thanks. Does the SWF containing the AS need to be imporetd to each Captivate slide to disable various menu options for the entire parent SWF?
              >
              > Chris

              I'm not sure how the slides work in Captivate, I usually open the program, record stuff from screen
              and that would be it. Never mix with other content.
              ANyway, this kind of action is global once placed in swf file, any file loaded into it will
              follow these settings. As long as you don't remove the main swf that holds that.

              --
              Regards

              Urami


              --



              Happy New Year guys - all the best there is in the 2006




              <urami>
              http://www.Flashfugitive.com
              </urami>

              <web junk free>
              http://www.firefox.com
              </web junk free>