# Checking mc's based on x and y cords

**URL:** <https://forum.kirupa.com/t/checking-mcs-based-on-x-and-y-cords/79460>\
**Category:** Uncategorized\
**Created:** [February 14, 2005, 12:01pm UTC](https://forum.kirupa.com/t/checking-mcs-based-on-x-and-y-cords/79460 "2005-02-14T12:01:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AN828](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AN828](https://forum.kirupa.com/u/AN828)\
**Post date:** [February 14, 2005, 12:01pm UTC](https://forum.kirupa.com/t/checking-mcs-based-on-x-and-y-cords/79460/1 "2005-02-14T12:01:18Z")

</div>

I have a series of mc’s that are in a grid position and another set on top. I want to move the ones on top to different positions over the others but I want to check to see if one is already there. I dont’ want to use hitTest, it doesn’t work for what I want to do. I want to position my top mc’s base on the x and y positions of the bottom mc’s. How do I check a mc for a value if all my names start the same, i.e. mc\_ and end in numbers that represent their position, i.e. mc\_12070. I was thinking something like:

newY = this.\_y - 50;  
newX = this.\_x;

but how would I call the clip?

_root.mc_+newY+newX

what is the syntax to make that work?

Any help is greatly appreciated. Thank you.
