Tag Archives: backgroundColor

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 the background color on a Spark FormItem container in Flex Hero

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

The following example shows how you can set the background color on a Spark FormItem container in Flex Hero by setting the backgroundColor style.

Continue reading Setting the background color on a Spark FormItem container in Flex Hero

Modifying the corner white box on an MX Container when scroll bars are visible in Flex

The following example shows how you can modify the visibility and alpha of the white box in the lower-right corner of an MX Container in Flex when both the horizontal and vertical scroll bars are visible by using the rawChildren property and getChildByName() method.

Continue reading Modifying the corner white box on an MX Container when scroll bars are visible in Flex

Setting the background color of a Spark Panel container in Flex 4

In a previous example, “Setting the content background color of a Spark Panel container in Flex 4”, we saw how you could set the content background color on a Spark Panel container’s children in Flex 4 by setting the contentBackgroundColor style.

The following example shows how you can set the background color on a Spark Panel container in Flex 4 by setting the backgroundColor style.

Continue reading Setting the background color of a Spark Panel container in Flex 4

Setting the alpha on a Spark Panel container title bar in Flex 4

The following example shows how you can create a Spark Panel container with a semi-transparent title bar in Flex 4 by creating a custom Spark Panel skin and setting the alpha property on the tbFill, tbHilite, and tbDiv skin parts, and then setting the backgroundAlpha style on the Panel container.

Continue reading Setting the alpha on a Spark Panel container title bar in Flex 4

Setting the background fill color on a Halo TextArea control in Flex 4

The following example shows how you can set the background fill color on the Halo TextArea control (with default Spark skin) in Flex 4 by setting the contentBackgroundColor style (in Flex 3 and earlier this was done by setting the backgroundColor style).

Full code after the jump.

Continue reading Setting the background fill color on a Halo TextArea control in Flex 4