Show alert with Yes no button
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Script>
import mx.controls.Alert;
private var alert:Alert;
private function showAlert():void {
var text:String = "Hello World";
var title:String = "title";
alert = Alert.show(text, title, Alert.YES | Alert.NO);
}
</mx:Script>
<mx:Button label="Alert.show()" click="showAlert();" />
</mx:Application>
Related examples in the same category