From the category archives:

Alert

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.

[click to continue…]

{ 2 comments }

The following example shows how you can style the emphasized button on a Halo/MX Alert control in Flex 4 by setting the buttonStyleName and emphasizedSkin styles.

Full code after the jump.

[click to continue…]

{ 0 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.

[click to continue…]

{ 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.

[click to continue…]

{ 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.

[click to continue…]

{ 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.

[click to continue…]

{ 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.

[click to continue…]

{ 4 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.

Full code after the jump.

[click to continue…]

{ 3 comments }

Disabling an Alert control in Flex

by Peter deHaan October 17, 2008

The following example shows how you can disable an Alert control for a specified number of milliseconds before the user can dismiss the dialog by setting the enabled property.
Full code after the jump.

Read the full article →

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

by Peter deHaan September 15, 2008

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 [...]

Read the full article →

Creating an undraggable Alert control in Flex (redux)

by Peter deHaan September 10, 2008

In a previous example, Creating an undraggable Alert control in Flex, we saw how you could create a Flex Alert control that isn’t draggable by listening for the mouseDown event and calling the stopImmediatePropagation() method in the event handler.
The following example shows how you can create an undraggable Flex Alert control by setting the Boolean [...]

Read the full article →

Playing a sound effect when an Alert control is displayed in Flex

by Peter deHaan September 10, 2008

The following example shows how you can play an embedded MP3 when a Flex Alert control is displayed by setting the creationCompleteEffect style/effect.
Full code after the jump.

Read the full article →