From the category archives:

TextFlow

The following example shows how you can export a TextFlow object in Flex 4 by using the TextConverter class (flashx.textLayout.conversion.TextConverter), and specifying HTML format, plain text format, or Text Layout Format.

Full code after the jump.

[click to continue…]

{ 17 comments }

The following example shows how you can create a simple rich text editor control in Flex 4 using the Spark TextArea control and using the getFormatOfRange() and setFormatOfRange() methods.

Full code after the jump.

{ 36 comments }

The following example shows how you can style links in a TextFlow object in Flex 4 by specifying the linkNormalFormat, linkHoverFormat, and linkActiveFormat properties.

Full code after the jump.

[click to continue…]

{ 5 comments }

The following example shows how you can import a TextFlow object from an XML object in Flex 4 by using the static TextFlowUtil.importFromXML() method.

Full code after the jump.

[click to continue…]

{ 10 comments }

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.

Full code after the jump.

[click to continue…]

{ 3 comments }

The following example shows how you can loop over the paragraphs in a Flex Gumbo FxTextArea control using the export() method and E4X.

Full code after the jump.

[click to continue…]

{ 2 comments }