MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 709

Actionscript language reference
Table of Contents

Advertisement

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,
Stage.width
Availability
Flash Player 6.
Usage
Stage.width:Number
Description
Property (read-only); indicates the current width, in pixels, of the Stage. When the value of
Stage.scaleMode
means that
Stage.width
Stage.scaleMode
time in the Document Properties dialog box. This means that the value of
constant as you resize the player window.
Example
This example creates a new listener object called
and define a function that will be called when
onResize
adds the
myListener
objects to listen for resize notifications.
this.createTextField("stageSize_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
var stageListener:Object = new Object();
(the default), all context menu items appear. If
true
ContextMenuItem class
is
, the
"noScale"
width
will vary as you resize the player window. When the value of
is not
,
"noScale"
width
object to the callback list of the Stage object. Listener objects allow multiple
property represents the width of Flash Player. This
represents the width of the SWF file as set at author-
. It then uses
stageListener
onResize
is set to
showMenu
will stay
width
myListener
is triggered. Finally, the code
Stage.width
,
false
to call
709

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents