문제

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