Skip to main content
Participant
May 16, 2011
Question

Limiting a TextFlow to just one line

  • May 16, 2011
  • 1 reply
  • 694 views

Hi there

Simple question; is there a way to set the maximum number of lines to 1.

It used to be simple before TLF; multiline = false

Now its doing my head in.

Any thoughts highly appreciated. Cheers

This topic has been closed for replies.

1 reply

Adobe Employee
May 17, 2011

lineBreak attribute -a TextFlow level attribute

<xs:attribute name="lineBreak" type="xs:enumeratedString" default="toFit"/>

Specifies a line break.

lineBreak is non-inheriting.

Valid values include:

·         toFit: Wraps the lines at the edge of the enclosing <TextFlow>.

·         explicit: Breaks the lines only at a Unicode line end character (such as a newline or line separator).

It's a attribute in TLF that can satisfy you. There may be also some other attributes of the containers (Sprite, Spark Components in Flex and TLFTextField in Flash pro) that can help you.

FlashertAuthor
Participant
May 17, 2011

Thanks for the info.

Forgot to mention it's an AS3 project so I don't have any access to Flex properties.