# Slider menu problem!

**URL:** https://forum.kirupa.com/t/slider-menu-problem/125039
**Category:** Uncategorized
**Created:** [October 9, 2004, 8:17am UTC](https://forum.kirupa.com/t/slider-menu-problem/125039 "2004-10-09T08:17:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)
#### Post date: [October 9, 2004, 8:17am UTC](https://forum.kirupa.com/t/slider-menu-problem/125039/1 "2004-10-09T08:17:44Z")

</div>

Hi,

Just used the fab Kirupa [Menu with SLider](http://www.kirupa.com/developer/mx2004/menu_with_slider.htm) tut. Everything works fine but I can’t centre the slider under my buttons! How can I shift it?

**This is the code for the frame:**

```auto

easeSpeed = 5;
//slider_mc is your Movie Clip's name, not the Instance Name.
slider_mc.onEnterFrame = function() {
this._x += (xMove1-this._x)/easeSpeed;
};
button_1.onPress = function() {
xMove = button_1._x;
};
button_2.onPress = function() {
xMove = button_2._x;
};
button_3.onPress = function() {
xMove = button_3._x;
};
button_4.onPress = function() {
xMove = button_4._x;
};
 

```

**and the code for the slider:**

```auto

onClipEvent (load) {

xMove = _x;
easeSpeed = 5;

}
onClipEvent (enterFrame) {

_x += (xMove-_x)/easeSpeed;

}

```

Any ideas how I can shift it a bit? Sorry for being such a newbie… :q:

Y
