Category Archives: GradientEntry

Creating a linear gradient background fill on a Spark List control in Flex 4

The following example shows how you can set a linear gradient background fill on a Spark List control in Flex 4 by setting the skinClass style and setting the background fill to a LinearGradient object.

Full code after the jump.

Continue reading Creating a linear gradient background fill on a Spark List control in Flex 4

Setting a linear gradient background on a Spark Application container in Flex 4

The following example shows how you can create a linear gradient background on a Flex 4 Spark Application container by setting the skinClass style to a custom Application skin class which has a LinearGradient fill.

Full code after the jump.

Continue reading Setting a linear gradient background on a Spark Application container in Flex 4

Setting the origin X and Y coordinate for a linear gradient stroke in Flex Gumbo

The following example shows how you can set the origin X and Y coordinate for a linear gradient stroke in Flex Gumbo by setting the x and y properties on the LinearGradientStroke object.

Full code after the jump.

Continue reading Setting the origin X and Y coordinate for a linear gradient stroke in Flex Gumbo

Setting the origin X and Y coordinate for a radial gradient fill in Flex Gumbo

In a previous example, “Creating a radial gradient fill on a Rect object in Flex Gumbo”, we saw how you could create a radial gradient fill on a Flex Gumbo Rect object by setting the fill property to a RadialGradient object.

The following example shows how you can set the origin X and Y coordinate for a radial gradient fill in Flex Gumbo by setting the x and y properties on the RadialGradient object.

Full code after the jump.

Continue reading Setting the origin X and Y coordinate for a radial gradient fill in Flex Gumbo

Creating a linear gradient fill on an Ellipse object in Flex Gumbo

In a previous example, “Creating a solid color fill on an Ellipse object in Flex Gumbo”, we saw how you could create a solid color fill on an Ellipse object by setting the fill property to a SolidColor object.

The following example shows how you can create a linear gradient fill on a Flex Gumbo Ellipse object by setting the fill property to a LinearGradient object.

Full code after the jump.

Continue reading Creating a linear gradient fill on an Ellipse object in Flex Gumbo