Sliding bar

Hi, i encountering a problem… I have 6 buttons, and a thin bar… I am doing an effect whereby when i click on the 6th button the bar will move and stop at the 6 button, and when i click on the 2nd button it will move and stop at the 2nd button… but i cant stop the bar… Can anyone help out there?

[color=navy]bar = slider[/color]
[color=navy]button = btn_1[/color]

Each btn script:
on (press) {
slider.yMove = btn_1._y;
}

Bar Script:
onClipEvent (load) {
yMove = _y;
easeSpeed = 5;
}
onClipEvent (enterFrame) {
_y += (yMove-_y)/easeSpeed;
}