次のテキストを既存spark.components.TextArea
の のテキスト フローに単純に追加しようとしています。
<b>something</b>: hello world
次のコードを使用してこれを実行しようとしましたが、何も起こりません:
this.textarea.textFlow.addChild(TextConverter.importToFlow(
"<b>something</b>: hello world",
TextConverter.TEXT_FIELD_HTML_FORMAT));
どうすればこれを達成できますか? 古いmx.controls.TextArea
コンポーネントでは、次のように簡単に実行できます。
this.textarea.htmlText += "<b>something</b>: hello world";
spark.components.TextArea
コンポーネントで表現された新しい TLF/FTE API を使用してこれを行うにはどうすればよいですか?