MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 693

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Description
Property; associates the ContextMenu object
ContextMenu class lets you modify the context menu that appears when the user right-clicks
(Windows) or Control-clicks (Macintosh) in Flash Player.
This property works only with selectable (editable) text fields; it has no affect on nonselectable
text fields.
Example
The following example assigns the ContextMenu object
ContextMenu object contains a custom menu item labeled "Print" with an associated callback
handler named
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem("Print...", doPrint));
function doPrint(menu, obj) {
// "Print" code here
}
news_txt.menu = menu_cm;
See also
Button.menu,
ContextMenu class
TextField.mouseWheelEnabled
Availability
Flash Player 7.
Usage
my_txt.mouseWheelEnabled
Description
Property; a Boolean value that indicates whether Flash Player should automatically scroll
multiline text fields when the mouse pointer is positioned over a text field and the user rolls the
mouse wheel. By default, this value is
wheel scrolling of text fields, or implement your own text field scrolling.
See also
Mouse.onMouseWheel
TextField.multiline
Availability
Flash Player 6.
Usage
my_txt.multiline
Description
Property; indicates whether the text field is a multiline text field. If the value is
is multiline; if the value is
, which performs printing operations (not shown):
doPrint()
,
, the text field is a single-line text field.
false
contextMenu
menu_cm
ContextMenuItem class
. This property is useful if you want to prevent mouse
true
with the text field
my_txt
to the text field
,
MovieClip.menu
true
TextField.multiline
. The
. The
news_txt
, the text field
693

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Table of Contents