Category Archives: TileLayout

Creating a tile layout Spark ButtonBar control in Flex 4

In a previous example, “Creating a vertical Spark ButtonBar control in Flex 4”, we saw how you can create a vertical Spark ButtonBar control in Flex 4 by setting the layout property to a VerticalLayout object.

The following example shows how you can create a tile layout on the Spark ButtonBar control in Flex 4 by setting the layout property to a TileLayout object.

Full code after the jump.

Continue reading Creating a tile layout Spark ButtonBar control in Flex 4

Setting the layout direction on a tile layout Spark List control in Flex 4

The following example shows how you can set the tile layout direction on a Flex 4 Spark List control by setting the orientation property on the TileLayout layout to one of the static constants in the spark.layouts.TileOrientation class.

Full code after the jump.

Continue reading Setting the layout direction on a tile layout Spark List control in Flex 4

Creating a tile list using the Spark List control in Flex 4

The following example shows how you can create a simple TileList control in Flex 4 using the Spark List control and using a TileLayout layout with the default complex item renderer to display images.

Full code after the jump.

Continue reading Creating a tile list using the Spark List control in Flex 4

Setting a column count and row count on a TileLayout FxList component in Flex Gumbo

The following example shows how you can set a column count and row count on a Flex Gumbo FxList contrl with a tile layout by setting the columnCount, columnWidth, rowCount, and rowHeight properties on the TileLayout object.

Full code after the jump.

Continue reading Setting a column count and row count on a TileLayout FxList component in Flex Gumbo

Setting the layout direction on an FxList control in Flex Gumbo

The following examples show how you can set the layout direction on a Flex Gumbo FxList control by setting the layout property to a VerticalLayout object (default), HorizontalLayout object, or a TileLayout object.

Full code after the jump.

Continue reading Setting the layout direction on an FxList control in Flex Gumbo