# Quit Event

**URL:** <https://forum.kirupa.com/t/quit-event/124138>\
**Category:** Uncategorized\
**Created:** [September 30, 2004, 9:42am UTC](https://forum.kirupa.com/t/quit-event/124138 "2004-09-30T09:42:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cartofu\_pai](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cartofu\_pai](https://forum.kirupa.com/u/cartofu_pai)\
**Post date:** [September 30, 2004, 9:42am UTC](https://forum.kirupa.com/t/quit-event/124138/1 "2004-09-30T09:42:54Z")

</div>

Hello,  
I have a big problem. I must port an application from browser enbedded .swf to projector .exe. All works fine untill the close event, which I had in the browser (thanks to IE’s onBeforeUnload(), but now in projector I cannot find another solution.  
My question is: how can I tell that the projector window is trying to close, and how can I make sure some code is executed BEFORE it closes?

Thanks guys.
