# Mousewheel on scrollbar

**URL:** <https://forum.kirupa.com/t/mousewheel-on-scrollbar/206718>\
**Category:** Uncategorized\
**Created:** [November 10, 2006, 5:08pm UTC](https://forum.kirupa.com/t/mousewheel-on-scrollbar/206718 "2006-11-10T17:08:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this\_me](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this_me/32/2683_2.png) [@this\_me](https://forum.kirupa.com/u/this_me)\
**Post date:** [November 10, 2006, 5:08pm UTC](https://forum.kirupa.com/t/mousewheel-on-scrollbar/206718/1 "2006-11-10T17:08:31Z")

</div>

i got a scrollbar script wich works fine for me. it scrolls dynamic content and all.

I only tried to add a mousewheel function. i just can get it to work.

i checked the help function at flash actionscript but i can’t get it to work does someone can help me?

kind regards Jos

```auto

function scrollUpdate ()
{
	var detailView = this._parent.detailView;
	
	detailView.bodyTxt.autoSize = true;
	
	if (detailView._height < Stage.height)
	{
		this._visible = false;
	}
	else
	{
		this._visible = true;
	}
	var pxls_cont = detailView._height - Stage.height;

```
