Category Archives: beta

A collection of posts based on Beta versions of the Flex SDK. These posts may not always be current, or work in the latest version of the Flex SDK due to API changes.

Setting the selected item on the FxButtonBar control in Flex Gumbo

In a previous example, “Setting the selected index on the FxButtonBar control in Flex Gumbo”, we saw how you could set the selected index on a Flex Gumbo FxButtonBar control by setting the selectedIndex property.

The following example shows how you can set the selected item on a Flex Gumbo FxButtonBar control by setting the selectedItem property.

Full code after the jump.

Continue reading Setting the selected item on the FxButtonBar control in Flex Gumbo

Setting the layout direction on a Spark Panel container in Flex 4

The following example shows how you can set the layout direction on a Flex 4 Spark Panel container by setting the layout property to use a basic/absolute layout (<BasicLayout> – default), vertical layout (<VerticalLayout>), or horizontal layout (<HorizontalLayout>).

Full code after the jump.

Continue reading Setting the layout direction on a Spark Panel container in Flex 4

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