How to add dynamically text and tags inside textFlow
问题 <s:RichEditableText editable="false" styleName="chatWin" height="550" width="100%"> <s:textFlow> <s:TextFlow> <s:p>Inline<s:br />TextFlow</s:p> </s:TextFlow> </s:textFlow> </s:RichEditableText> I want to add this <s:p> tag dynamically, thus making a chat...i've tried this: var p:p = new p(); but this don't work 回答1: Instead of a declarative text flow within MXML, you could programmatically update the text by appending to a string variable and reflowing with TextConverter.importToFlow().