# Button action affecting the attached MC in which it resides

**URL:** <https://forum.kirupa.com/t/button-action-affecting-the-attached-mc-in-which-it-resides/146863>\
**Category:** Uncategorized\
**Created:** [May 4, 2005, 8:00pm UTC](https://forum.kirupa.com/t/button-action-affecting-the-attached-mc-in-which-it-resides/146863 "2005-05-04T20:00:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![graylensman](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@graylensman](https://forum.kirupa.com/u/graylensman)\
**Post date:** [May 4, 2005, 8:00pm UTC](https://forum.kirupa.com/t/button-action-affecting-the-attached-mc-in-which-it-resides/146863/1 "2005-05-04T20:00:39Z")

</div>

Question: can a button within an attached movie clip remove that movie clip?

Here’s the scenario:

click a button, down slides a movieclip, called attacherBar. To this is attached another movieclip, called viewnit, which slides into view from the left. In viewnit mc is a button called closeBtn. The idea is, click on closeBtn and the whole process reverses itself, including removing the attached movieclip viewnit.

Unfortunately, it doesn’t seem to work. A closeBtn sitting on the stage, not connected to any movieclip, works fine. But the closeBtn in the attached clip won’t function.

Any ideas?
