Wait... Can I just override the close event to check and make sure the user has completed the tasks I wanted? Probably, huh? Sorry for wasting your time.
If it is Adobe AIR application, a "closing" event is dispatched when the window is about to close. You could listen for that to make sure all the tasks are completed.
private function closingHandler(event:Event):void
//if tasks are not completed prevent the window from closing
Check the doc for more information
Let me start by saying, I don't think I can use AIR because of the limits that patchpanel places on it.
I have been able to handle and stop the propagation of the CLOSE event of a title window when the user hits the actual close button. But I can't find a way to register an event handler that simply listens for the closing of a title window no matter how it was closed.
Is AIR the only way I can prevent the main application from closing?