# \[as\] to close a mc?

**URL:** <https://forum.kirupa.com/t/as-to-close-a-mc/96974>\
**Category:** Uncategorized\
**Created:** [December 16, 2003, 2:55am UTC](https://forum.kirupa.com/t/as-to-close-a-mc/96974 "2003-12-16T02:55:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![minimalistik](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@minimalistik](https://forum.kirupa.com/u/minimalistik)\
**Post date:** [December 16, 2003, 2:55am UTC](https://forum.kirupa.com/t/as-to-close-a-mc/96974/1 "2003-12-16T02:55:09Z")

</div>

would there be sum sort of actionscript that can be appiled to a button which closes a mc?

---

<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:** [December 16, 2003, 2:58am UTC](https://forum.kirupa.com/t/as-to-close-a-mc/96974/2 "2003-12-16T02:58:11Z")

</div>

Theres no close action. Some workarounds:  
-set the mc invisible;  
-remove the mc;  
-create an animation of the mc “leaving the screen”;

---

<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:** [December 16, 2003, 3:02am UTC](https://forum.kirupa.com/t/as-to-close-a-mc/96974/3 "2003-12-16T03:02:57Z")

</div>

what is meant by close?

---

<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:** [December 16, 2003, 3:04am UTC](https://forum.kirupa.com/t/as-to-close-a-mc/96974/4 "2003-12-16T03:04:50Z")

</div>

i mean by “close” as in like when you press the “close” button in the right hand corner to close your browser window so in a sense, the browser window is the mc.

---

<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:** [December 16, 2003, 3:10am UTC](https://forum.kirupa.com/t/as-to-close-a-mc/96974/5 "2003-12-16T03:10:47Z")

</div>

that would be removeMovieclip() then 🙂

If you didnt create the movieclip with actionscript though, you will need to use swapDepths on it to remove it however.

---

<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:** [December 16, 2003, 3:53am UTC](https://forum.kirupa.com/t/as-to-close-a-mc/96974/6 "2003-12-16T03:53:55Z")

</div>

thanks very much, it works. 😉
