import mx.events.CloseEvent;
import mx.controls.Alert;
[Embed(source="a.png")]
private var questionIcon:Class;
private function simpleAlert():void{
Alert.show("This Alert dialog's default button is Cancel",
"Alert with default Button", (Alert.OK | Alert.CANCEL),
null, null, null, Alert.CANCEL);
}