Tag Archives: lineBreak

Setting word wrapping on the Spark TextArea control in Flex 4

The following example shows how you can set word wrapping on a Flex 4 Spark TextArea control by setting the lineBreak style to one of the static constants in the LineBreak class (flashx.textLayout.formats.LineBreak):

  • toFit (LineBreak.TO_FIT): For lines that wrap to fit to the container width.
  • explicit (LineBreak.EXPLICIT): For lines that break only at explicit return/line feeds.

Full code after the jump.

Continue reading Setting word wrapping on the Spark TextArea control in Flex 4