# Need help, for a vertical mouse scrolling image

**URL:** https://forum.kirupa.com/t/need-help-for-a-vertical-mouse-scrolling-image/291521
**Category:** flash
**Created:** [June 30, 2009, 11:06pm UTC](https://forum.kirupa.com/t/need-help-for-a-vertical-mouse-scrolling-image/291521 "2009-06-30T23:06:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Snowy\_658](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Snowy\_658](https://forum.kirupa.com/u/Snowy_658)
#### Post date: [June 30, 2009, 11:06pm UTC](https://forum.kirupa.com/t/need-help-for-a-vertical-mouse-scrolling-image/291521/1 "2009-06-30T23:06:41Z")

</div>

I’m working in Flash CS3 action script 2.0, I have this picture, it is 519x668 px but I have the canvas set at 519x316px. I have seen a thing where people can move their mouse left or right and the picture will scroll in that direction. I’ve done tutorials on things like scrollable gallery’s but I can’t figure this out. I need it to go vertically, up and down. So if I move the mouse down, the picture will scroll down and if I move the mouse up, the picture will scroll up. I have the picture bigger than the canvas at it’s normal size so it’s not all pixleated. Is there a code I can use for this? Just a simple one, where according to were the mouse is, it will scroll up or down? Thanks
