xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
import flashx.textLayout.elements.*;
private function initApp():void {
// You cannot set these properties in CSS.
// Set color of first paragraph to red with the setStyle() method.
myRET.textFlow.getChildAt(0).setStyle("color", 0xFF0000);
// Set color of second paragraph to green with a property assignment.
myRET.textFlow.getChildAt(1).color = 0x00FF00;
}
This is paragraph 1.
This is paragraph 2.