# To close the swf and exe by button

**URL:** <https://forum.kirupa.com/t/to-close-the-swf-and-exe-by-button/194478>\
**Category:** Uncategorized\
**Created:** [July 24, 2006, 1:03am UTC](https://forum.kirupa.com/t/to-close-the-swf-and-exe-by-button/194478 "2006-07-24T01:03:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leb](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@leb](https://forum.kirupa.com/u/leb)\
**Post date:** [July 24, 2006, 1:03am UTC](https://forum.kirupa.com/t/to-close-the-swf-and-exe-by-button/194478/1 "2006-07-24T01:03:50Z")

</div>

i wonder if i want to close the swf by cliking on a button, but it doest works

this is the only code i know and typed…

on(press)  
{  
fscommand(“exit”);  
}
