MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 735

Actionscript language reference
Table of Contents

Advertisement

Example
The following example creates two text fields. The scrollable_txt field has the
mouseWheelEnabled
and roll the mouse wheel. The
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");
See also
Mouse.onMouseWheel
TextField.multiline
Availability
Flash Player 6.
Usage
my_txt.multiline:Boolean
Description
Property; indicates whether the text field is a multiline text field. If the value is
is multiline; if the value is
Example
The following example creates a multiline text field called
multiline list of fonts.
var font_array:Array = TextField.getFontList().sort();
this.createTextField("fontList_txt", this.getNextHighestDepth(), 10, 10, 240,
320);
fontList_txt.border = true;
fontList_txt.wordWrap = true;
fontList_txt.multiline = true;
fontList_txt.text = font_array.join("\n");
property set to true, so
nonscrollable_txt
, the text field is a single-line text field.
false
scrolls when you click the field
scrollable_txt
field does not scroll if you click the field and
fontList_txt
, the text field
true
that displays a long,
TextField.multiline
735

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