# Dispatching event on exit

**URL:** <https://forum.kirupa.com/t/dispatching-event-on-exit/294239>\
**Category:** flash\
**Created:** [August 11, 2009, 11:03am UTC](https://forum.kirupa.com/t/dispatching-event-on-exit/294239 "2009-08-11T11:03:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![komapeb](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@komapeb](https://forum.kirupa.com/u/komapeb)\
**Post date:** [August 11, 2009, 11:03am UTC](https://forum.kirupa.com/t/dispatching-event-on-exit/294239/1 "2009-08-11T11:03:08Z")

</div>

Does flash dispatch any event just before it’s closed?  
e.g. When the user closes the browser?  
I searched the documentation and there’s nothing. I thought the stage should dispatch an event.  
If there isn’t any can I make a custom one?  
I need this for server-side solution.
