nonmodal Alert box in flex.

In flex by default the Alert box is modal ,so to set it to nonmodal we have to use a constant of Alert Class.

The constant is the third parameter in the Alert statement.And it would be,

Alert.NONMODAL

An Example is given which alerts in nonmodal.

<mx:Button x=”178″ y=”71″ label=”Submit” click=”alertMe()”/>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function alertMe():void
{
Alert.show(“kumar Gandhi”,”Non Modulas Alert”,Alert.NONMODAL);
}
]]>
</mx:Script>

A simple alter and use of Alert Box.

Advertisements

One Response to nonmodal Alert box in flex.

  1. Ved says:

    Thank you! =)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: