Textarea.wordwrap - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

TextArea.wordWrap

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
textAreaInstance.wordWrap
Description
Property; a Boolean value that indicates whether the text wraps (
default value is
.
true
If you create a TextArea instance using the createClassObject() method, the default
for wordWrap is false.
Example
The following example sets the
causing it to have a horizontal scroll bar to access the text beyond the side boundaries.
You must first add an instance of the TextArea component to the Stage and name it my_ta;
then add the following code to Frame 1.
/**
Requires:
- TextArea instance on Stage (instance name: my_ta)
*/
var my_ta:mx.controls.TextArea;
my_ta.setSize(320, 240);
my_ta.wordWrap = false;
//my_ta.vScrollPolicy = "off";
// Load text to display and define onData handler.
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
if (src != undefined) {
my_ta.text = src;
} else {
my_ta.text = "Error loading text.";
}
};
my_lv.load("http://www.helpexamples.com/flash/lorem.txt");
property to
wordwrap
) or not (
true
for the TextArea called
false
TextArea.wordWrap
). The
false
,
my_ta
1207

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents