# Position of one MovieClip in relation to one underneath

**URL:** <https://forum.kirupa.com/t/position-of-one-movieclip-in-relation-to-one-underneath/166376>\
**Category:** flash\
**Created:** [October 19, 2005, 2:05pm UTC](https://forum.kirupa.com/t/position-of-one-movieclip-in-relation-to-one-underneath/166376 "2005-10-19T14:05:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duff](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@Duff](https://forum.kirupa.com/u/Duff)\
**Post date:** [October 19, 2005, 2:05pm UTC](https://forum.kirupa.com/t/position-of-one-movieclip-in-relation-to-one-underneath/166376/1 "2005-10-19T14:05:04Z")

</div>

Hi folks,

I would like to return the x and y co-ordinates of one MovieClip in relation to another.

So, for example, if I had a movieclip of a small square (small1\_mc) over/on a higher layer of a larger square (large1\_mc) I need to know where the registration point of small1\_mc is on large1\_mc. I need to do this without using the cursor position i.e. so I would like a user to be able to click a button that returns the position rather than clicking on small1\_mc.

I would appreciate any help because the only way I can think of doing this is to record the cursor position on large1\_mc when small1\_mc is clicked. Sorry if this is a no brainer but it’s confused me!

Many thanks

Duff :thumb:
