xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="doSomething()">
import flashx.textLayout.elements.TextFlow;
import spark.utils.TextFlowUtil;
private function doSomething():void {
var markup:String = "This is paragraph 1.
This is paragraph 2.
";
var flow:TextFlow = TextFlowUtil.importFromString(markup);
myST.textFlow = flow;
}