TextArea.text

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX 2004.

Usage

textAreaInstance.text

Description

Property; the text contents of a TextArea component. The default value is "" (an empty string).

Example

The following example places a string in the text property of the my_ta TextArea instance, and then traces that string to the Output panel.

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.text = "The Royal Nonesuch";
trace(my_ta.text); // traces "The Royal Nonesuch"