Why not register for a WillClose() event?
Is there a reference on event handling in Acrobat references? I can't find it.
I found the references, I am reading through it now.
I found similar functions in the API reference called AVAppWillQuit(). I think that is what I need to exit the form object.
But the description for AVAppWillQuit() is a little confusing. Do you know of any examples of how it is used?
There is a notification that you can register for when a document is about to close (and lots of other ones too!). Check the docs for information about notifications.