# MC react to distance

**URL:** <https://forum.kirupa.com/t/mc-react-to-distance/190710>\
**Category:** flash\
**Created:** [June 14, 2006, 2:38am UTC](https://forum.kirupa.com/t/mc-react-to-distance/190710 "2006-06-14T02:38:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyg3r](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tyg3r/32/1341_2.png) [@Tyg3r](https://forum.kirupa.com/u/Tyg3r)\
**Post date:** [June 14, 2006, 2:38am UTC](https://forum.kirupa.com/t/mc-react-to-distance/190710/1 "2006-06-14T02:38:51Z")

</div>

I’ve had a long look and simply couldn’t find any help for what it is I’m trying to do.

I want it so that when a movie clip is dragged to a new location, the distance from the MC and another MC is calculated. And when the distance has reached a certain amount (200+ pixels for example) it will react (go to a new frame).

I’ve attached a partial, any help or guidance would be **really** appreciated.

Thanks
