Skip to content

Handling Yes | No Confirmation Alert messages

February 27, 2010

A clean way to create a Yes | No confirmation popup with handling the user’s choice would be coded as follows:"Are you sure you wish to Deactivate this Spot?","Confirm Deactivate", Alert.YES | Alert.NO, this, deactivate, null, Alert.NO);

private function deactivate(e:CloseEvent):void {
    if (e.detail == Alert.YES) 
       // They clicked on Yes

From → AIR, Uncategorized

Leave a Comment

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: