# MouseWheel height?

**URL:** <https://forum.kirupa.com/t/mousewheel-height/252019>\
**Category:** flash\
**Created:** [February 14, 2008, 10:30pm UTC](https://forum.kirupa.com/t/mousewheel-height/252019 "2008-02-14T22:30:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zenor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zenor/32/3634_2.png) [@Zenor](https://forum.kirupa.com/u/Zenor)\
**Post date:** [February 14, 2008, 10:30pm UTC](https://forum.kirupa.com/t/mousewheel-height/252019/1 "2008-02-14T22:30:42Z")

</div>

Hello everyone.

I got a problem with the following code:

```auto

var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
    XmlItems.content_txt._y += delta;
}
Mouse.addListener(mouseListener);

```

It works great although it doesn’t stop when the text finishes,it just keep scrolling.  
Any suggestions? 🙂
