# HELP ME! Exit button problem

**URL:** <https://forum.kirupa.com/t/help-me-exit-button-problem/97359>\
**Category:** Uncategorized\
**Created:** [December 21, 2003, 6:32am UTC](https://forum.kirupa.com/t/help-me-exit-button-problem/97359 "2003-12-21T06:32:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignusb](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@ignusb](https://forum.kirupa.com/u/ignusb)\
**Post date:** [December 21, 2003, 6:32am UTC](https://forum.kirupa.com/t/help-me-exit-button-problem/97359/1 "2003-12-21T06:32:47Z")

</div>

Hi all, I am trying to make an exit button for an .exe, and I cannot work out what actionscript to attribute to a button, can someone help? I have tried multiple scripts, and this is my current one:

on.press= function () {  
fscommand(“quit”);}

I can’t see what is wrong with this, can someone please help!?
