The following example shows how you can set the accent color on the MX Alert control’s default button in Flex 4 by setting the new accentColor style.
Full code after the jump.
{ 2 comments }
Just a bunch of Adobe Flex Examples
From the category archives:
The following example shows how you can set the accent color on the MX Alert control’s default button in Flex 4 by setting the new accentColor style.
Full code after the jump.
{ 2 comments }
In a previous example, “Setting a background image fill on a Halo Alert control in Flex 4″, we saw how you could can a repeating background image fill on a Halo Alert control (with default Spark skin) in Flex 4 by setting the borderSkin style.
The following example shows how you can set the title bar background image fill on a Halo Alert control (with default Spark skin) in Flex 4 by setting the borderSkin style.
Full code after the jump.
{ 0 comments }
The following example shows how you can remove the default dropshadow from the Halo Alert control (with default Spark skins) in Flex 4 by setting the borderSkin style.
Full code after the jump.
{ 0 comments }
The following example shows how you can set a repeating background image fill on a Halo Alert control (with default Spark skin) in Flex 4 by setting the borderSkin style.
Full code after the jump.
{ 1 comment }
The following example shows how you can set the corner radius on the Halo TextArea control (with default Spark skin) in Flex 4 by creating a custom skin and setting the radiusX and radiusY properties on the Rect objects (in Flex 3 and earlier this was done by setting the cornerRadius style directly).
Full code after the jump.
{ 3 comments }
The following example shows how you can create a self-closing Flex Alert control by creating a timer and using the static PopUpManager.removePopUp() method to remove the Alert after a certain time period.
Full code after the jump.
{ 5 comments }
In a previous example, “Styling Alert controls in Flex using the StyleManager class and setStyle() methods”, we saw how to style a Flex Alert control using the static StyleManager.getStyleDeclaration() method, and the setStyle() method.
The following example shows how you can do the same thing using the beta Flex 4 SDK by passing a fully qualified class name to the static getStyleDeclaration() method.
{ 3 comments }