# Function invoked when closing projector using the default window close button

**URL:** <https://forum.kirupa.com/t/function-invoked-when-closing-projector-using-the-default-window-close-button/222124>\
**Category:** Uncategorized\
**Created:** [April 11, 2007, 1:21am UTC](https://forum.kirupa.com/t/function-invoked-when-closing-projector-using-the-default-window-close-button/222124 "2007-04-11T01:21:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![homeryulo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/homeryulo/32/3505_2.png) [@homeryulo](https://forum.kirupa.com/u/homeryulo)\
**Post date:** [April 11, 2007, 1:21am UTC](https://forum.kirupa.com/t/function-invoked-when-closing-projector-using-the-default-window-close-button/222124/1 "2007-04-11T01:21:57Z")

</div>

Hello guys! I am just having some little problem in dealing with this.

I am making a flash application and I am trying to find function to  
use when I press the close button of the projector window. I dont  
want to make a button that uses fscommand(“quit”) since this would be  
impractical knowing that a default close button on the window is  
already available. Anyway the purpose of the function is that when I  
close my application, a dialog box/message would appear as a reminder  
that some data has not yet been saved and give the user an option to  
save or quit the application. I would appreciate any help. I tried  
searching and I can not find any third party software that can do such  
task. Thanks in advance.
