# Moving menu x y positions

**URL:** <https://forum.kirupa.com/t/moving-menu-x-y-positions/64775>\
**Category:** Uncategorized\
**Created:** [September 19, 2004, 10:19pm UTC](https://forum.kirupa.com/t/moving-menu-x-y-positions/64775 "2004-09-19T22:19:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjvalles](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@jjvalles](https://forum.kirupa.com/u/jjvalles)\
**Post date:** [September 19, 2004, 10:19pm UTC](https://forum.kirupa.com/t/moving-menu-x-y-positions/64775/1 "2004-09-19T22:19:18Z")

</div>

[braingiants.com](http://braingiants.com) we’ve all seen it… big deal [evb.com](http://evb.com) did it before them… but anyway, my question is how do make the menu move with the changing size of the mc? Can someone please hel me with this. thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2004, 11:15pm UTC](https://forum.kirupa.com/t/moving-menu-x-y-positions/64775/2 "2004-09-19T23:15:19Z")

</div>

Can you specify the question a bit more please ? I don’t completely understand the thing you’d want to do 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 20, 2004, 5:38am UTC](https://forum.kirupa.com/t/moving-menu-x-y-positions/64775/3 "2004-09-20T05:38:23Z")

</div>

try something like this for the movieclip (which houses the menu) AS:[AS]onClipEvent(enterFrame){  
this.\_x=mainmovie.\_x+(mainmovie.\_width/2);  
this.\_y=mainmovie.\_y+(mainmovie.\_height/2);  
}[/AS]  
basically, you’re just trying to fix the \_x and \_y locations to the \_x and \_y positions of the main movieclip. but your AS is going to change based on the registration points of your movieclips. it would probably be easiest to have the registration point of your main movieclip in the center and for the menu mc, make the registration point the point at which you want to attach the menu mc to the main mc.

the AS above is for attaching the menu mc to the top right of the mainmovie mc. the registration point for the mainmovie mc is centered vertically and horizontally.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 20, 2004, 8:02am UTC](https://forum.kirupa.com/t/moving-menu-x-y-positions/64775/4 "2004-09-20T08:02:10Z")

</div>

I am trying to make the menu move with the movie clip that change size. I will try what you are saying, but i must admit i am a little confused.
