Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Text and TextFlows

Chapter 7. Text and TextFlows

The text components in Flex 4 have been updated to take advantage of the new text-rendering engine in Flash Player 10, referred to as the Flash Text Engine. To work with text in a Flex application, you’ll want to use the new components that utilize the Text Layout Framework: TextArea, RichText, and RichEditableText. Each of these components provides different functionality in a Flex application. The Label component provides simple, lightweight, basic text functionality. Label supports all of the properties of the GraphicElement, as well as bidirectional text and a limited subset of text formatting, but it doesn’t support hypertext or inline graphics. The RichText control supports HTML and, unlike Label, uses the TextFlow object model. It supports multiple formats and paragraphs but not scrolling, selection, or editing. Lastly, RichEditableText supports scrolling, selection, editing, and hyperlinks, as well as supporting all the functionality of the Label and RichText components. Label does not use the Text Layout Framework, relying solely on the Flash Text Engine, while the other two components leverage the Text Layout Framework built into Flex 4.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint