Scrollbar slider help

Making my own scrollbar. Have everything working except being able to drag the slider and make the dynamic text correspond with it. I would know how to do this by making the dynmamic text field a movie, but would prefer to leave it as a dynamic text field. I have already looked through the tutorials on here and on Flash Kit and still haven’t figured it out. Any help is appreciated. Thanks.