T > TextField.htmlText |
![]() ![]() ![]() |
TextField.htmlText
Availability
Flash Player 6.
Usage
TextField
.htmlText
Description
Property; if the text field is an HTML text field, this property contains the HTML representation of the text field's contents. If the text field is not an HTML text field, it behaves identically to the text
property. You can indicate that a text field is an HTML text field in the Property inspector, or by setting the text field's html
property to true
.
Example
In the following example, the text in the text field text2
is rendered bold.
text2.html = true; text2.htmlText = "<b> this is bold text </b>";
![]() ![]() ![]() |