0 Replies Latest reply on Feb 3, 2010 8:28 AM by Bob Forma

    How to access parts of line broken text in a flashx.textLayout.elements.TextFlow?

    Bob Forma

      Dear friends,

       

      I'm trying to figure out a way to access the lines of text which are separated by soft breaks (probably determined by the flashx.textLayout.compose.StandardFlowComposer).

       

      For example, take the following text:

       

      "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi semper interdum nulla nec posuere."

       

      Suppose this text would be rendered in a narrow box (lets say a width of 50 pixels), it would be rendered something alike:

       

      "Lorem ipsum dolor sit

      amet, consectetur

      adipiscing elit. Morbi

      semper interdum nulla

      nec posuere."

       

      Now I'm looking for a way to access the separate lines "Lorem ipsum dolor sit", "amet, consectetur", etc.

       

      Does anyone know how to do this using the Flex 4 Text Layout Framework?

       

       

      Best regards,

      Bob