Confirmation Alert box with OK and Cancel

Alert.show("Do you want to remove all the events", "Confirmation",
Alert.OK | Alert.CANCEL, this,
confirmRemove, null, Alert.OK);

private function confirmRemove(evntObj:CloseEvent):void
{
if (evntObj.detail==Alert.OK) {
//Add the code to execute if use pressed OK button
}
}