# Positioning a MC in accordance with another's size

**URL:** <https://forum.kirupa.com/t/positioning-a-mc-in-accordance-with-anothers-size/287295>\
**Category:** flash\
**Created:** [April 29, 2009, 9:20am UTC](https://forum.kirupa.com/t/positioning-a-mc-in-accordance-with-anothers-size/287295 "2009-04-29T09:20:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Mo](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Post date:** [April 29, 2009, 9:20am UTC](https://forum.kirupa.com/t/positioning-a-mc-in-accordance-with-anothers-size/287295/1 "2009-04-29T09:20:11Z")

</div>

Hi,

I am trying to make a series of Movie Clips that lay next to each other on the X axis that will alter their \_x value in accordance with the MC next to it. ie. When the width or \_x value of the MC to the left increases the \_x value of the MC changes.

```auto
mc_1._x = 0;
mc_2._x = mc_1._xscale;

mc_2.onEnterFrame = function(){
	if(mc_1._xscale > 107){
		mc_2._x = mc_1._xscale;
	}
}

```

I think this could be way off!!! Any suggestions would be great?  
Phil
