# How to quit from my program

**URL:** <https://forum.kirupa.com/t/how-to-quit-from-my-program/193826>\
**Category:** flash\
**Created:** [July 18, 2006, 5:42pm UTC](https://forum.kirupa.com/t/how-to-quit-from-my-program/193826 "2006-07-18T17:42:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![firefly](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@firefly](https://forum.kirupa.com/u/firefly)\
**Post date:** [July 18, 2006, 5:42pm UTC](https://forum.kirupa.com/t/how-to-quit-from-my-program/193826/1 "2006-07-18T17:42:52Z")

</div>

I want to create a button in my program that if user hits it will close that application . Is there anything like quit() or exit()?  
Thanks
