# \[B\]Closebutton to terminate Flash app\[/B\]

**URL:** <https://forum.kirupa.com/t/b-closebutton-to-terminate-flash-app-b/318887>\
**Category:** flash\
**Created:** [February 2, 2011, 7:20pm UTC](https://forum.kirupa.com/t/b-closebutton-to-terminate-flash-app-b/318887 "2011-02-02T19:20:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaxz](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jaxz](https://forum.kirupa.com/u/jaxz)\
**Post date:** [February 2, 2011, 7:20pm UTC](https://forum.kirupa.com/t/b-closebutton-to-terminate-flash-app-b/318887/1 "2011-02-02T19:20:16Z")

</div>

**Closebutton to terminate Flash app**

I wonder how one can do the following:

How do I add a Close button to my Flash application? So that the app is terminated upon a click - and also if certain criteria are met (like totalsystememory size too large) that this be done with As3 calling some “Terminator function”  
It seems there is a way out there as sold below;

> **[How do I add a Close button to my Flash application?](https://www.experts-exchange.com/questions/26578921/How-do-I-add-a-Close-button-to-my-Flash-application.html)**
>
> I'm building an application in Flash CS5 using Actionscript 3. I'd like to add a close button to the Home page so that the user can click the button and quit the application. Can anyone help me...

pls advice,  
Jaxz
