From the category archives:

BitmapFill

The following example shows how you can create a “fancy” fading bitmap fill background on a Spark Panel container in Flex 4 by using a combination BitmapFill and LinearGradient fill.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can set a bitmap background fill on a Spark List control in Flex 4 by creating a custom Spark List skin with a BitmapFill object and setting a custom item renderer.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can create a repeating tiled background fill on a Flex Gumbo Spark Panel container by creating a custom skin, setting a BitmapFill on the background Rect and then set the skinClass style.

Full code after the jump.

[click to continue…]

{ 0 comments }

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.

Full code after the jump.

[click to continue…]

{ 4 comments }

The following example shows how you can control the tiling of a bitmap fill on a Flex Gumbo Rect object by setting the Boolean repeat property on the BitmapFill object.

Full code after the jump.

[click to continue…]

{ 2 comments }

The following example shows how you can set a bitmap fill on an Flex Gumbo Ellipse object by setting the source property on the BitmapFill object.

Full code after the jump.

[click to continue…]

{ 0 comments }