Flash Lite 2.x and 3.0 ActionScript Language Reference

multiline (TextField.multiline property)

public multiline : Boolean

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 myText.

this.createTextField("myText", this.getNextHighestDepth(), 10, 30, 110, 100);
myText.text = "Flash is an authoring tool that designers and developers use to create presentations,
applications, and other content that enables user interaction.";
myText.border = true;
myText.wordWrap = true;
myText.multiline = true;