Flex Yes no Example
private var alert:Alert;
alert = Alert.show("This will remove all loaded template", "Warning!", Alert.YES | Alert.NO);
alert.addEventListener(CloseEvent.CLOSE, normalDesignAlert_close);
private function normalDesignAlert_close(evt:CloseEvent):void {
switch (evt.detail) {
case Alert.NO:
selectApporpriateRadioButton();
break;
case Alert.YES:
view.lblDesignType.text = NormalTemplateDesign;
view.dataGrid.dataProvider = null;
rows = null;
TemplateFilter = "*.skdn";
break;
}
}