Category Archives: Image (Spark)

Setting a background fill on an invalid Spark Image control in Flex Hero

In a previous example, “Setting the background color on an invalid Spark Image control in Flex Hero”, we saw how you could set the background color on an invalid Spark Image control in Flex Hero by setting the backgroundColor style on the invalid skin state.

The following example shows how you can create a custom bitmap fill on a Spark Image control in Flex Hero by creating a custom skin class and creating a BitmapFill object in the invalid skin state for the background skin part.

Continue reading Setting a background fill on an invalid Spark Image control in Flex Hero

Setting the background color on an invalid Spark Image control in Flex Hero

In a previous example, “Setting the background color on a Spark Image control in Flex Hero”, we saw how you could set the background color on a Spark Image control in Flex Hero by setting the backgroundColor style.

The following example shows how you can set the background color on an invalid Spark Image control in Flex Hero by setting the backgroundColor style on the invalid skin state.

Continue reading Setting the background color on an invalid Spark Image control in Flex Hero

Setting a custom broken image icon for the Spark Image control in Flex Hero

In a previous example, “Setting a custom broken image skin for the Image control in Flex”, we saw how you could set a custom broken image skin for the Flex Image control by setting the brokenImageSkin style.

The following example shows how you can set a custom broken image skin for the Spark Image control in Flex Hero by creating a custom skin and creating a BitmapImage instance in the invalid state.

Continue reading Setting a custom broken image icon for the Spark Image control in Flex Hero

Setting the scale mode on a Spark Image control in Flex Hero

In a previous example, “Setting the fill mode on a Spark Image control in Flex Hero”, we saw how you could set the fill mode on a Spark Image control in Flex Hero by setting the fillMode property to one of the static constants in the mx.graphics.BitmapFillMode class.

The following example shows how you can set the scale mode on a Spark Image control in Flex Hero by setting the fillMode property to “scale” and setting the scaleMode property to one of the static constants in the mx.graphics.BitmapScaleMode class.

Continue reading Setting the scale mode on a Spark Image control in Flex Hero