# Objects following other objects

**URL:** <https://forum.kirupa.com/t/objects-following-other-objects/254207>\
**Category:** flash\
**Created:** [March 9, 2008, 6:05pm UTC](https://forum.kirupa.com/t/objects-following-other-objects/254207 "2008-03-09T18:05:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fliptoppbox](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@fliptoppbox](https://forum.kirupa.com/u/fliptoppbox)\
**Post date:** [March 9, 2008, 6:05pm UTC](https://forum.kirupa.com/t/objects-following-other-objects/254207/1 "2008-03-09T18:05:41Z")

</div>

I am in need of help! I have some draggable MC’s on my stage which is posing a lot of problems with having buttons within those MCs.

Anyway, is there a way to have an item on stage lock on to another item? So when I drag something, in this case a draggable MC, the other thing follows. Is there code to have one object lock to the x and y position of another object? I’m having trouble finding this online any guidance would be so appreciated.

Thanks  
Paul
