TextArea.html

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX 2004.

Usage

textAreaInstance.html

Description

Property; a Boolean value that indicates whether the text area contents are formatted with HTML (true) or not (false). If the html property is true, the text area contents are in HTML. If html is false, the text area is a non-HTML text area. The default value is false.

Example

The following example makes the TextArea called my_ta an HTML text area and then formats the text with HTML tags.

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.html = true;
my_ta.text = "The <b>Royal</b> Nonesuch";