質問

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

役に立ちましたか?

解決

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 );
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top