tags:

views:

26

answers:

1

is it any possible to create operation based on the alert box(like yes or no option)? Thank's in advance...

A: 

Are you just trying to fire off a function based on the users decision? If so there is a closeHandler as part of the Alert.show constructor that you can tell it what function to run when the alert box closes.

Alert.show("My Message", "Alert Box Title", (Alert.YES | Alert.NO), null, alertCloseHandler);

private function alertCloseHandler(event:CloseEvent){
  if(event.detail == Alert.YES){
    //code if they clicked yes
  }
}
invertedSpear