Monthly Archives: March 2009

Setting the base color on a Spark CheckBox control in Flex 4

In a previous example, “Setting the icon color on a Spark CheckBox control in Flex 4”, we saw how you can set the icon (check mark) color on a Spark CheckBox control in Flex 4 by setting the symbolColor style.

The following example shows how you can set the base (background) color on a Spark CheckBox control in Flex 4 by setting the baseColor style.

Full code after the jump.

Continue reading Setting the base color on a Spark CheckBox control in Flex 4

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 repeating background image on a Spark Application in Flex 4

In a previous example, “Setting a background image on an Spark Application in Flex 4”, we saw how you can add a scaled background image to a Flex 4 Spark Application by creating a custom skin with a BitmapGraphic and setting the skinClass style in MXML, CSS, or ActionScript.

The following example shows how you can create a tiled background image by creating a custom skin, creating a repeating bitmap fill, and setting the skinClass style.

Continue reading Setting a repeating background image on a Spark Application in Flex 4