MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 1191

Actionscript 2.0 language reference
Table of Contents

Advertisement

mouseWheelEnabled
(TextField.mouseWheelEnabled property)
public mouseWheelEnabled : Boolean
A Boolean value that indicates whether Flash Player should automatically scroll multiline text
fields when the mouse pointer clicks a text field and the user rolls the mouse wheel. By
default, this value is
true
scrolling of text fields, or implement your own text field scrolling.
Availability: ActionScript 1.0; Flash Player 7
Example
The following example creates two text fields. The
mouseWheelEnabled
and roll the mouse wheel. The
and roll the mouse wheel.
var font_array:Array = TextField.getFontList().sort();
this.createTextField("scrollable_txt", this.getNextHighestDepth(), 10, 10,
240, 320);
scrollable_txt.border = true;
scrollable_txt.wordWrap = true;
scrollable_txt.multiline = true;
scrollable_txt.text = font_array.join("\n");
this.createTextField("nonscrollable_txt", this.getNextHighestDepth(), 260,
10, 240, 320);
nonscrollable_txt.border = true;
nonscrollable_txt.wordWrap = true;
nonscrollable_txt.multiline = true;
nonscrollable_txt.mouseWheelEnabled = false;
nonscrollable_txt.text = font_array.join("\n");
Mouse.onMouseWheel
If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
used in this example.
See also
mouseWheelEnabled (TextField.mouseWheelEnabled property)
. This property is useful if you want to prevent mouse wheel
property set to true, so
nonscrollable_txt
MovieClip.getNextHighestDepth()
scrollable_txt
scrolls when you click the field
scrollable_txt
field does not scroll if you click the field
field has the
method, which is
TextField
1191

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents