# Menu movement

**URL:** <https://forum.kirupa.com/t/menu-movement/184575>\
**Category:** flash\
**Created:** [April 6, 2006, 12:29am UTC](https://forum.kirupa.com/t/menu-movement/184575 "2006-04-06T00:29:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZumoWrestler](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@ZumoWrestler](https://forum.kirupa.com/u/ZumoWrestler)\
**Post date:** [April 6, 2006, 12:29am UTC](https://forum.kirupa.com/t/menu-movement/184575/1 "2006-04-06T00:29:05Z")

</div>

I’m fairly new to scripting and I’ve been trying to set up a web page with scripting, or more than I normally would use. If I can post my .fla you will see that when you watch it and press the ‘news’ button that the menu ‘closes’ then starts to move and opens directly after that. I need it to move, stop, then open. I was working with an if statement and I guess something isn’t working right, Thanks for the help!

ZumoWrestler

---

<div class="post-metadata">

**Author:** ![ZumoWrestler](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@ZumoWrestler](https://forum.kirupa.com/u/ZumoWrestler)\
**Post date:** [April 6, 2006, 10:57pm UTC](https://forum.kirupa.com/t/menu-movement/184575/2 "2006-04-06T22:57:52Z")

</div>

Here is the link and some AS if that helps…

[http://msu-rov.bearnotes.com/rov.html](http://msu-rov.bearnotes.com/rov.html)

```auto
//on frame 68 in MC//
onEnterFrame = function () {
if (menu_MC =! 50) {
_root.menu_MC.xMove = 50;
}
if (_root.menu_MC.xMove = 50) {
gotoAndPlay (1);
}
}
gotoAndPlay (67);

```

```auto
//on MC on stage one//
onClipEvent (load) { 
xMove = _y; 
easeSpeed = 7; 
} 
onClipEvent (enterFrame) { 
_y += (xMove-_y)/easeSpeed; 
}

```

---

<div class="post-metadata">

**Author:** ![ZumoWrestler](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@ZumoWrestler](https://forum.kirupa.com/u/ZumoWrestler)\
**Post date:** [April 7, 2006, 2:50pm UTC](https://forum.kirupa.com/t/menu-movement/184575/3 "2006-04-07T14:50:09Z")

</div>

Sorry guys, I’m not trying to be annoying I’ve just ran out of options. I guess what I’m trying to do is send a MC to a certain location then once it is at the location have it run another function but only once it is at that location. I keep thinking over it thinking there is something I missed that I know how to do but I just started working with if statements. Thanks for the help! :thumb:

ZumoWrestler
