Why this slider dont work fine?

I did a slider, but it doesnt work fine, does anybody can tell me why?

this is the code i use

for up slider:
<hr align=“left” width=“25%”>
on (rollOver) {
if (_level0.instance1.slider._currentframe >= 12) {
_level0.instance1.slider.stop();
}
else {
_level0.instance1.slider.play();
}
}
on (rollOut) {
_level0.instance1.slider.stop();

}
<hr align=“left” width=“25%”>

for down slider:
<hr align=“left” width=“25%”>
on (rollOver) {
if (_level0.instance1.slider._currentframe < 12) {
_level0.instance1.slider.gotoAndPlay(23 - _currentframe);
} else {
_level0.instance1.slider.play();
}
}
on (rollOut) {
_level0.instance1.slider.stop();

}
<hr align=“left” width=“25%”>

i attached the FLA file to let you know what i did

thanks :cowboy: