# Scrollbar To Work With Scroll Wheel On Mouse?

**URL:** <https://forum.kirupa.com/t/scrollbar-to-work-with-scroll-wheel-on-mouse/171839>\
**Category:** flash\
**Created:** [December 8, 2005, 4:55pm UTC](https://forum.kirupa.com/t/scrollbar-to-work-with-scroll-wheel-on-mouse/171839 "2005-12-08T16:55:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bleedmedia](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bleedmedia](https://forum.kirupa.com/u/bleedmedia)\
**Post date:** [December 8, 2005, 4:55pm UTC](https://forum.kirupa.com/t/scrollbar-to-work-with-scroll-wheel-on-mouse/171839/1 "2005-12-08T16:55:24Z")

</div>

Hey Everyboody,

I’m using a scrollbar and textbox that I got here at Kirupa. I was wondering if there is any way to make this scrollbar function when a user tries to scroll it with the scrroll wheel on their mouse. Does anybody know if this is possible? If so, how?

Here is the scollbar I used: [http://www.kirupa.com/developer/mx/dynamic\_scroller.htm](http://www.kirupa.com/developer/mx/dynamic_scroller.htm)

And here is my code for my scrollbar:

loadText = new LoadVars();  
loadText.load(“news.txt”);  
loadText.onData = function(myLoadedText) {

```
    // check and make sure it loads
    if (myLoadedText != undefined) {
            scroller.html = true;
            scroller.htmlText = myLoadedText;
            // do whatever else here.....
            // if it doesn't load, play a MC that says something like "loading error"
    } else {
            myErrorMC.gotoAndStop("loadingError");
    }

```

}

Thanks a lot.
