As per the conversation the issue was that the event listener for the alert box close event was being attached to the stage instead of the alert dialog.
stage:addEventListener(Event.COMPLETE, oncomplete)
instead of
alertDialog:addEventListener(Event.COMPLETE, oncomplete)