3 Replies Latest reply on Jan 14, 2011 10:46 AM by Flex harUI

    Understanding TextFlow Measurement

    drkstr_1 Level 4

      Hello,

       

      I'm starting to work with custom TextFlow functionality for the first time, and I was hoping for some guidance on the best way to measure the bounds of a dynamic FlowElement. I need to be able to wrap a RichText element across a column layout, breaking on paragraphs. To do this, I need to be able to measure text dynamically, before the FlowElement is laid out. My initial thoughts were to extend RichText, but it looks like there are a lot of classes involved in the measuring and laying out of the TextFlow.

       

      What is the best way to go about laying out individual FlowElement objects using a custom layout class?

       

      Any insights or links to extra reading on the topic will be greatly appreciated.

       

       

      Thanks for your time!