Skip to main content
Participant
May 16, 2011 2:46 PM UTC
Question

Limiting a TextFlow to just one line

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Adobe Employee
May 17, 2011 2:53 AM UTC

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.

Translate
FlashertAuthor
Participant
May 17, 2011 8:24 AM UTC

Thanks for the info.

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

Translate