Frage

If setting the htmlText property on an mx TextArea the text property stays 'null' until the TextArea is manually edited. Is there a way of updating the text property as soon as the htmlText property is set?

e.g.

textArea.htmlText = str; trace(textArea.text)

result = null

Many thanks, Adam

War es hilfreich?

Lösung

By calling validateNow() on the textArea after setting the htmlText property you can force the text property to be updated instantly.

e.g.

textArea.htmlText = str;
textArea.validateNow();
trace(textArea.text);

result = HtmlToText( str );
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top