# onMouseDown scroll issue

**URL:** <https://forum.kirupa.com/t/onmousedown-scroll-issue/191977>\
**Category:** Uncategorized\
**Created:** [June 24, 2006, 4:50pm UTC](https://forum.kirupa.com/t/onmousedown-scroll-issue/191977 "2006-06-24T16:50:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukebattye](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@lukebattye](https://forum.kirupa.com/u/lukebattye)\
**Post date:** [June 24, 2006, 4:50pm UTC](https://forum.kirupa.com/t/onmousedown-scroll-issue/191977/1 "2006-06-24T16:50:23Z")

</div>

This scroller has been giving me hassle for almost 2 months! I have text with an autoscroll but want the scrolling to be controlled by holding down the mouse and moving it. Ths is my code…

\_root.onEnterFrame = function () {  
if(\_root.\_xmouse \> 328 && \_root.\_xmouse \< 800 && \_root.\_ymouse \> 120 && \_root.\_ymouse \< 540)  
onMouseDown. marketing\_mc.\_y = -(1000/409 \* \_root.\_ymouse) +440;  
}

It doesn’t work obviously but is there a way to change the syntax so that it works or do I need to do something completely different. There must be a way to say “onMouseDown, look at \_root.\_y.mouse and move the MC accordingly”

Please help if you know how or point me in the direction of a relevant tutorial you know of.

Thanks alot
