2 Replies Latest reply on May 16, 2008 6:57 AM by vorpal

    turn off a Key

    vorpal Level 1
      How can I turn off a key?

      I wan t to turn off the Enter Key
      to avoid the pause/play issue if someone press on Enter.

      Thanx
        • 1. Re: turn off a Key
          kglad Adobe Community Professional & MVP
          you want to disable the enter key in the test environment when YOU press enter? if so, use control/disable keyboard shortcuts. if no, user's pressing the enter key does nothing (by default). if you want to disable the user's ability to pause and play your swf, check the flash contextmenu.
          • 2. Re: turn off a Key
            vorpal Level 1
            I use this code to prevent the enter Key to play but it doesn t work.
            I mean the play fonction disappear from the context menu but it s still possible to let the flash player to play by pressing the enter Key

            var my_cm:ContextMenu = new ContextMenu ();
            my_cm.builtInItems.play=false;
            this.menu = my_cm;