# Fixing a MC to another moveable MC?

**URL:** https://forum.kirupa.com/t/fixing-a-mc-to-another-moveable-mc/226516
**Category:** flash
**Created:** [May 22, 2007, 1:21am UTC](https://forum.kirupa.com/t/fixing-a-mc-to-another-moveable-mc/226516 "2007-05-22T01:21:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Cedwyn](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@Cedwyn](https://forum.kirupa.com/u/Cedwyn)
#### Post date: [May 22, 2007, 1:21am UTC](https://forum.kirupa.com/t/fixing-a-mc-to-another-moveable-mc/226516/1 "2007-05-22T01:21:34Z")

</div>

Hello,

I am wishing to have the user select a random MC object (the child) and be able to ‘attach it’ to a specific point on another MC (the parent). When the parent is given the order to move, both it and its child move in the same direction at the same time. I was wondering if there is either a feature that can do this, or a way in actionscript to match their exact x and y velocity with respect to the distance between the center of the parent and child objects.

I was thinking that if I gave both the child and parent the same velocity, it would be a solution. However I am unsure of how accurate this solution is. If for whatever reason the parent or childs x or y position is off (even by 0.0001) then this would start to seperate the two objects, which would defeat the goal.

Any ideas?

Thank you,  
Cedwyn
