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
is set to
showMenu
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,
784
Chapter 2: ActionScript Language Reference
(the default), all context menu items appear. If
true
ContextMenuItem class
is set to
showMenu
false
,
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers