Stage.showMenu Property | Flash 6; available through fscommand( ) since Flash 3 |
Boolean; determines the items displayed in the Flash Player's contextual menu | read/write |
The Boolean showMenu property indicates whether the Flash Player's contextual menu contains a full list of items (true) or a minimal list of items (false). It defaults to true but is often set to false to prevent users from manipulating the movie in undesirable ways, such as stopping it, rewinding it, or zooming it. The contextual menu is accessed using right-click under Windows or Ctrl-click on the Macintosh.
In Flash 6, the following menu items are available when showMenu is true:
The following items are available when showMenu is false:
In both cases, the Settings option leads to the Settings dialog box, where the user can set the SharedObject disk space limit and configure her camera and microphone.
There is no built-in way to disable the Flash Player's contextual menu entirely. However, several third-party tools can remove the menu from the Standalone Player. See:
When a movie is embedded in a web page, the OBJECT or EMBED tag can also set the value of showMenu; any assignment in ActionScript overrides the HTML setting.
In Flash versions 3 through 5, showMenu must be set via fscommand( ), such as fscommand ("showMenu", "false").
// Reduces the contextual menu to minimal items Stage.showMenu = false;