views:

3063

answers:

1

How can the text in a Label control (or a similar control) be wrapped in Flex 4 beta? In Flex 3 I could use the Text control but this is no longer available in Flex 4.

A: 

Try <s:SimpleText />. From the excellent Migration Guide (p. 75):

The lightest-weight component of the text primitives. The SimpleText class supports the least number of text features. This class is similar to the Label class, except that it supports multiple lines. It does not support user ineractivity such as selection, editing, or scrolling.

Hope that helps!

Christian Nunciato
perfect! and thanks for the link to the migration guide! very good stuff.
Keith
Note: SimpleText no longer exists. It has been replaced by Label in Flex 4.
Rob