Category Archives: Alert

Setting a title background image fill on a Halo Alert control in Flex 4

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.

Continue reading Setting a title background image fill on a Halo Alert control in Flex 4

Setting the corner radius on the Halo Alert control in Flex 4

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.

Continue reading Setting the corner radius on the Halo Alert control in Flex 4

Styling Alert controls in Flex using the StyleManager class and setStyle() method (Flex 4 Edition)

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.

Continue reading Styling Alert controls in Flex using the StyleManager class and setStyle() method (Flex 4 Edition)

Creating a custom creation complete effect on a Flex Alert control (redux)

In a previous example, “Creating a custom creation complete effect on a Flex Alert control”, we saw how you could specify an effect which gets played when an Alert control is displayed by setting the Alert control’s creationCompleteEffect style.

The following example shows how you can apply a parallel Fade/Move effect when the Alert control is created by setting the the creationCompleteEffect effect/style in MXML and ActionScript.

Full code after the jump.

Continue reading Creating a custom creation complete effect on a Flex Alert control (redux)