![MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference Download Page 735](http://html1.mh-extra.com/html/macromedia/flex-flex-actionscript-language/flex-flex-actionscript-language_reference_3387192735.webp)
TextField.multiline
735
Example
The following example creates two text fields. The scrollable_txt field has the
mouseWheelEnabled
property set to true, so
scrollable_txt
scrolls when you click the field
and roll the mouse wheel. The
nonscrollable_txt
field does not scroll if you click the field 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");
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
true
, the text field
is multiline; if the value is
false
, the text field is a single-line text field.
Example
The following example creates a multiline text field called
fontList_txt
that displays a long,
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");
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...