# MC position change!

**URL:** <https://forum.kirupa.com/t/mc-position-change/164716>\
**Category:** flash\
**Created:** [October 4, 2005, 7:13am UTC](https://forum.kirupa.com/t/mc-position-change/164716 "2005-10-04T07:13:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danulf](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danulf/32/555_2.png) [@danulf](https://forum.kirupa.com/u/danulf)\
**Post date:** [October 4, 2005, 7:13am UTC](https://forum.kirupa.com/t/mc-position-change/164716/1 "2005-10-04T07:13:06Z")

</div>

So, I looked at rhamej’s site ([www.2210media.com](http://www.2210media.com/), the flash one),  
so this is probobly a question for him!

But I was wondering how he did the menu’s y position change according to the resize thing. I belive the resize windows are as rendered…?  
I have found a way of doing the resizing, but I can’t get the menu position to be navbar.\_y = (content.\_YY/2) -10;

I want the navbar to ease to the content YY (desired height, told in navbar button)/2 (the movieClip is centered, so it resizes from the middle) - 10

I can’t find a easier way to explain my problem, but hopefully you understand the question.

This is as far as I got, but it doesn’t work AT ALL!  
It’s on the navbar MC

```auto

onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
endY = _root.main.content.YY;
_y = (endY/speed)-10;
}

```

EDIT:  
hehe, sounds like I’m trying to copy rhamej’s site! that’s not the case, I’m just trying to learn 😃
