User Guide

784 Chapter 2: ActionScript Language Reference
Stage.showMenu
Availability
Flash Player 6.
Usage
Stage.showMenu:Boolean
Description
Property; specifies whether to show or hide the default items in the Flash Player context menu. If
showMenu is set to true (the default), all context menu items appear. If showMenu is set to false,
only Settings and About Macromedia Flash Player items appear.
Example
The following example creates a clickable text link that lets the user enable and disable the Flash
Player context menu.
this.createTextField("showMenu_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
showMenu_txt.html = true;
showMenu_txt.autoSize = true;
showMenu_txt.htmlText = "<a href=\"asfunction:toggleMenu\"><u>Stage.showMenu =
"+Stage.showMenu+"</u></a>";
function toggleMenu() {
Stage.showMenu = !Stage.showMenu;
showMenu_txt.htmlText = "<a href=\"asfunction:toggleMenu\"><u>Stage.showMenu
= "+Stage.showMenu+"</u></a>";
}
See also
ContextMenu class, ContextMenuItem class