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 > 7.2. Generate a TextFlow Object from Another Source

7.2. Generate a TextFlow Object from Another Source

Problem

You need to create a TextFlow object from HTML.

Solution

Use the TextConverter class to generate the TextFlow object, passing the object to use as the source for the TextFlow object and the type of object that is being used as the source to the TextConverter.importToFlow() method.

Discussion

The TextConverter class has methods to help you generate new TextFlow objects from existing source objects or to export TextFlow objects to another type of object. To generate a TextFlow object, use the importToFlow() method. This has the following signature:

importToFlow(source:Object, format:String,
             config:IConfiguration = null):flashx.textLayout.elements:TextFlow

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free Trial


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