How do you display HTML formatted text in a Spark custom item renderer (Actionscript)?
Sample Code:
The html content in item.post_content
displays as plain text in the IconItemRenderer messageFunction
snippet below (which is just the default generated code for Icon Item renderer):
<s:itemRenderer> <fx:Component> <s:IconItemRenderer iconField="iconField" iconWidth="64" iconHeight="64" labelField="post_title" messageFunction="getPost"> <fx:Script> <![CDATA[ private function getPost(item:Object):String{ return item.post_content; } ]]> </fx:Script> </s:IconItemRenderer> </fx:Component> </s:itemRenderer>