# Flash menu slider tutorial question

**URL:** https://forum.kirupa.com/t/flash-menu-slider-tutorial-question/123907
**Category:** Uncategorized
**Created:** [September 28, 2004, 12:24pm UTC](https://forum.kirupa.com/t/flash-menu-slider-tutorial-question/123907 "2004-09-28T12:24:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SJanis](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@SJanis](https://forum.kirupa.com/u/SJanis)
#### Post date: [September 28, 2004, 12:24pm UTC](https://forum.kirupa.com/t/flash-menu-slider-tutorial-question/123907/1 "2004-09-28T12:24:57Z")

</div>

i’m having problems with the flash menu slider file, it works fine for four buttons but as soon as i add in button\_5 , button\_6 or button\_7 the slider instead of moving under that button will jump all the way back to the left…only for those three buttons…i accounted for them all in the code but it still does the same thing…can anyone please help me out…thanks in advance…

```auto
easeSpeed = 5;
//slider_mc is your Movie Clip's name, not the Instance Name.
slider_mc.onEnterFrame = function() {
this._x += (xMove-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;
};
button_5.onPress = function() {
xMove = button_5._x;
};
button_6.onPress = function() {
xMove = button_6._x;
};
button_7.onPress = function() {
xMove = button_7._x;
};

```
