Archives Posts
Incrementing htmlText on a Spark TextArea in Flex 4
April 10th, 2010 by Nicolas Noben
The property ‘htmlText’ is gone in spark TextArea. It was obviously making life too easy
A work around is to use the spark.utils.TextFlowUtil and shove the html code in it. It formats it for TextArea to display.
This example goes a step further and shows how to add more to an existing TextArea with HTML in it.
// Required: spark.utils.TextFlowUtil // output is a <s:TextArea /> output.textFlow = TextFlowUtil.importFromString(output.text + htmlSourceToAdd + "<br />");



