Question

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

Était-ce utile?

La solution

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 );
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top