# Sliding menu problems

**URL:** <https://forum.kirupa.com/t/sliding-menu-problems/70541>\
**Category:** Uncategorized\
**Created:** [November 15, 2004, 5:54am UTC](https://forum.kirupa.com/t/sliding-menu-problems/70541 "2004-11-15T05:54:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tattered](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Tattered](https://forum.kirupa.com/u/Tattered)\
**Post date:** [November 15, 2004, 5:54am UTC](https://forum.kirupa.com/t/sliding-menu-problems/70541/1 "2004-11-15T05:54:47Z")

</div>

Ok im have a small problem with my sliding menu. It all works good but when you roll over it I want it to stop moving at a certin spot. I know I dont make sence but when you role over the movie clip it roles up and then rolls back down. Can some one help me please?

Here is my code

```auto
Movie Clip
onClipEvent (load) { 
yMove = _y; 
easeSpeed = 5; 
_y += (yMove-_y)/easeSpeed;

} 
onClipEvent (enterFrame) { 
 _y = _y+(95-_y)/6;
} 

```

```auto
Actions Layer
a.onRollOver = function() {
	easeSpeed = 5;  
	yMove = button_1._y; 
	this._y += (yMove1-this._y)/easeSpeed; 
};

```

and a is the movie clips name
