Tag Archives: Hero

Setting the icon placement on a Spark Button control in Flex Hero

In a previous example, “Setting an icon on a Spark Button in Flex Hero”, we saw how you can set the icon on a Spark Button in Flex Hero by setting the icon style.

The following example shows how you can set the icon placement on a Spark Button control in Flex Hero by setting the iconPlacement style.

Continue reading Setting the icon placement on a Spark Button control in Flex Hero

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

Setting a bitmap image fill on a Spark Form container in Flex Hero

In a previous example, “Setting a bitmap image fill on a Spark FormHeading control in Flex Hero”, we saw how you could set a bitmap image fill on a Spark FormHeading control in Flex Hero by creating a custom FormHeading skin and creating a repeating BitmapFill object.

The following example shows how you can set a bitmap image fill on a Spark Form control in Flex Hero by creating a custom Spark Form skin and creating a repeating BitmapFill object.

Continue reading Setting a bitmap image fill on a Spark Form container in Flex Hero