Category Archives: TextLayoutFormat

Dynamically adding paragraphs to a Spark RichText control in Flex 4

The following example shows how you can dynamically add paragraphs to a TextFlow in a Spark RichText control by creating a new SpanElement (<span/>) and ParagraphElement (<p/>) object and then adding the spans and paragraphs to the textFlow object using the addChild() method.

Full code after the jump.

Continue reading Dynamically adding paragraphs to a Spark RichText control in Flex 4

Globally styling anchor tags on a Spark RichEditableText control in Flex 4

The following example shows how you can globally style the normal and hover states of a hyperlink on a Flex 4 Spark RichEditableText control by setting the static TextFlow.defaultConfiguration object.

Continue reading Globally styling anchor tags on a Spark RichEditableText control in Flex 4