ActionScript 2.0 Components Language Reference |
|
|
|
| TextArea component > TextArea.text | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
textAreaInstance.text
Property; the text contents of a TextArea component. The default value is "" (an empty string).
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"
|
|
|
|