# mouseMove scroll

**URL:** https://forum.kirupa.com/t/mousemove-scroll/134442
**Category:** Uncategorized
**Created:** [January 18, 2005, 3:45pm UTC](https://forum.kirupa.com/t/mousemove-scroll/134442 "2005-01-18T15:45:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Macro\_design](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Macro\_design](https://forum.kirupa.com/u/Macro_design)
#### Post date: [January 18, 2005, 3:45pm UTC](https://forum.kirupa.com/t/mousemove-scroll/134442/1 "2005-01-18T15:45:21Z")

</div>

Hi, I was wondering how to create a scrolling effect like the one you can see if you enter —\> profile —\> roll over “Mike”, and then moves your mouse cursor up and down.  
[http://www.ziggystudio.com/v1/main.htm](http://www.ziggystudio.com/v1/main.htm)  
This is, what I’ve come up with, so far:

```auto
onClipEvent(load){
_y=0;
speed=2;
}
onClipEvent(mouseMove){
targety=_root._ymouse;
}
onClipEvent(enterFrame){
_y+=(targety-_y)/speed;
}

```

But I need my MC to stop, when it reaches a top and lower point. So it wont scroll all the time the visitor is movie hes, or her cursor around, elsewhere in the flash movie.
