# Removing MCs attached to other MCs

**URL:** <https://forum.kirupa.com/t/removing-mcs-attached-to-other-mcs/124367>\
**Category:** Uncategorized\
**Created:** [October 2, 2004, 9:05pm UTC](https://forum.kirupa.com/t/removing-mcs-attached-to-other-mcs/124367 "2004-10-02T21:05:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boondogger](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@Boondogger](https://forum.kirupa.com/u/Boondogger)\
**Post date:** [October 2, 2004, 9:05pm UTC](https://forum.kirupa.com/t/removing-mcs-attached-to-other-mcs/124367/1 "2004-10-02T21:05:01Z")

</div>

In the code I am working on I am attaching MCs to other MCs. However, when I remove the second MC the first one gets removed too. HexStore contains a load of game hex MCs. LastLocation is the last hex MC clicked. myBrigade is the extra MC that needs to be removed from the LastLocation MC. Here is the code:

\_root.HexStore[\_root.LastLocation].removeMovieClip(\_root.HexStore[\_root.LastLocation][“myBrigade”]);

Any idea where I’m going wrong with this?
