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.