I want to alert a messge box when the user tries to close the
Actually i want to perform some tasks before exiting the
application such as saving the data entered in the inout contols to
be saved in DB.Is it possible to trace all the ways by which a
movie(application) can be closed and if true then alerting teh user
to save the data in DB.If he selects yes the save the data or else
simply exit the application.
Your help will be highly appreciated;
Thanks and Best Regards
There is a very useful, however undocumented, handler that
can be called whenever an attempt is made to close the projector.
First, set _movie.exitLock = TRUE (either in the publish settings
or in a startMovie handler) ... then put the following in a movie
-- put your exit code here
The only thing to keep in mind is that once you set
_movie.exitLock = TRUE it becomes your responsibility to provide
the user with a way to exit the program, the usual methods won't
work, including the close box in the window title bar.
PS: Here's a link to Adobe's TechNote on the handler. I don't
know why it's undocumented, it really is very useful: