How do I assign a textflow in a repeater?
I'm trying to set a RichEditableText dynamically in a repeater and I need help.
If I set the content property the images don't show up and I think it just shows the raw markup. I tried assigning it to the textFlow property and I get errors.
Shows raw markup:
<mx:Repeater id="postsRepeater" dataProvider="{XML(content1.lastResult).posts.post}" width="100%" x="0" y="0">
<mx:VBox id="contentVBox3" width="450" verticalGap="0" verticalScrollPolicy="off" horizontalScrollPolicy="off">
<s:RichEditableText width="100%" y="52" styleName="postDescription" text="Description area"
editable="false" lineBreak="toFit" content="{String(XML(postsRepeater.currentItem).content)}">
</s:RichEditableText>
</mx:VBox>
</mx:Repeater>
Throws Errors:
<mx:Repeater id="postsRepeater" dataProvider="{XML(content1.lastResult).posts.post}" width="100%" x="0" y="0">
<mx:VBox id="contentVBox3" width="450" verticalGap="0" verticalScrollPolicy="off" horizontalScrollPolicy="off">
<s:RichEditableText width="100%" y="52" styleName="postDescription" text="Description area"
editable="false" lineBreak="toFit" textFlow="{String(XML(postsRepeater.currentItem).content)}">
</s:RichEditableText>
</mx:VBox>
</mx:Repeater>
1067: Implicit coercion of a value of type String to an unrelated type flashx.textLayout.elements:TextFlow.
