# Close button help...please?

**URL:** <https://forum.kirupa.com/t/close-button-help-please/64836>\
**Category:** flash\
**Created:** [September 20, 2004, 5:37pm UTC](https://forum.kirupa.com/t/close-button-help-please/64836 "2004-09-20T17:37:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBuskell](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@SBuskell](https://forum.kirupa.com/u/SBuskell)\
**Post date:** [September 20, 2004, 5:37pm UTC](https://forum.kirupa.com/t/close-button-help-please/64836/1 "2004-09-20T17:37:47Z")

</div>

I need to create a button (in flash) and when it is clicked i need a new browser to open with a new url in it (no problem), but I also need to close the current window that they clicked from.

I see close buttons in pop up windows all the time. Can any1 point me at a tute or help me out with this. Im sure its dead simple, but its got me stumped!

Many many thanks,  
Stu.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 20, 2004, 6:16pm UTC](https://forum.kirupa.com/t/close-button-help-please/64836/2 "2004-09-20T18:16:34Z")

</div>

trying using this command on the button

fscommand (“quit”);
