FlashTextEditor.getHTML

Availability

Flash Player 8
Flash Player 9(AS3 version)

Usage

myTextEditor.getHTML( styled:Boolean )

Parameters

styled - Boolean. If this value is true, component will return clean HTML string.

Returns

Flash HTML formatted string.

Description

Method; retrieves the Flash HTML string of the currently edited text field. Use this method instead of retrieving htmlText property directly from the edited text field.

Example

The following code sets the value of the String variable richText to contain the Flash HTML of the currently edited text field:

var richText:String = myTextEditor.getHTML();