# Image moves when mouse moves?

**URL:** <https://forum.kirupa.com/t/image-moves-when-mouse-moves/192019>\
**Category:** Uncategorized\
**Created:** [June 25, 2006, 3:43am UTC](https://forum.kirupa.com/t/image-moves-when-mouse-moves/192019 "2006-06-25T03:43:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [June 25, 2006, 3:43am UTC](https://forum.kirupa.com/t/image-moves-when-mouse-moves/192019/1 "2006-06-25T03:43:08Z")

</div>

Hi,

I’m trying to work on a code so when the mouse moves left or right, the background image on a flash movie or multiple images will scroll the opposite way. However, Ive never coded anything regarding mouse movement (that I can remember) because I’m not too fluent in using mouse listeners. Id appreciate if someone could whip up a code like this that I can learn from.

Pixel movement rate (speed) and direction control would be really nice here. Its an easy code I’m sure, I just dont know how mouse listeners work (if this is what you have to use).

Thanks in advance!
