operation based on alert box
is it any possible to create operation based on the ale开发者_如何转开发rt box(like yes or no option)? Thank's in advance...
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
}
}
精彩评论