MX 2004 slider problem

hi!

i am total beginner in flash but unfortunately i must implement one gui prototype:)

i needed i slider - so i find nice tutorial in ur site -http://www.kirupa.com/developer/mx/slider.htm

it works well until there is one frame. but if i add one frame before it and redirect (gotoAndPlay(2)) it to second frame where the slider actually is with some code (to loop it):

this.onEnterFrame=function(){
ratio.text=mySlider.ratio;
gotoAndPlay(2)
}

then it is not possible to drag the slider.
can u point out, whats the problem?

thanks!