# Attach 2 MCs

**URL:** <https://forum.kirupa.com/t/attach-2-mcs/253776>\
**Category:** flash\
**Created:** [March 5, 2008, 12:37am UTC](https://forum.kirupa.com/t/attach-2-mcs/253776 "2008-03-05T00:37:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![specialboy](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@specialboy](https://forum.kirupa.com/u/specialboy)\
**Post date:** [March 5, 2008, 12:37am UTC](https://forum.kirupa.com/t/attach-2-mcs/253776/1 "2008-03-05T00:37:07Z")

</div>

How do I attach 2 MCs to each other?

I don’t think I want aatachMovieClip because that seems to:

add an instance of the symbol programmatically. The attachMovie() method adds a new instance of the specified symbol as a nested movie clip of the object from which the method is called.

I want to say if MC\_A bumps into MC\_B, then MC\_A should attach itself to MC\_B and follow it wherever it goes.

For my fishing game, I’ve tried just saying when there is a hitTest the second one’s \_y and \_x equal the first one’s, but I have some boolean vars that cause probs. The bools say if there is a hitTest, no other MC should have a hitTest.

Is there some special function for this?
