# Interactive Image Panning

**URL:** https://forum.kirupa.com/t/interactive-image-panning/204914
**Category:** Uncategorized
**Created:** [October 24, 2006, 3:38pm UTC](https://forum.kirupa.com/t/interactive-image-panning/204914 "2006-10-24T15:38:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![howardf](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@howardf](https://forum.kirupa.com/u/howardf)
#### Post date: [October 24, 2006, 3:38pm UTC](https://forum.kirupa.com/t/interactive-image-panning/204914/1 "2006-10-24T15:38:22Z")

</div>

Hi,

[http://www.kirupa.com/developer/flash8/interactive\_image\_pan3.htm](http://www.kirupa.com/developer/flash8/interactive_image_pan3.htm)

I was looking at the tutorial for the above and found it very useful, but I wanted to get the scroll working for the vertical axis aswell as just the horizontal. I’m a bit of a novice when it comes to AS so I thought I could pretty much just copy the code for the x axis and change all the X’s to Y’s. However this didn’t work. Does anyone have any advice as to what I should be doing? Much appreciated.

---

<div class="post-metadata">

### Author: ![FizixMan](https://avatars.discourse-cdn.com/v4/letter/f/e9c0ed/32.png) [@FizixMan](https://forum.kirupa.com/u/FizixMan)
#### Post date: [October 24, 2006, 5:48pm UTC](https://forum.kirupa.com/t/interactive-image-panning/204914/2 "2006-10-24T17:48:19Z")

</div>

Maybe watch how the Y axis is actually flipped on Flash. That could be an issue depending on the algorithm used.

For example, in Flash, the 0,0 coordinate is in the top-left, and Y INCREASES as you go DOWN. (not decreases in normal math). So you might want to check your code and make sure it takes that into account.

---

<div class="post-metadata">

### Author: ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)
#### Post date: [October 24, 2006, 5:48pm UTC](https://forum.kirupa.com/t/interactive-image-panning/204914/3 "2006-10-24T17:48:58Z")

</div>

try this to start: [http://www.kirupa.com/forum/showthread.php?t=227359](http://www.kirupa.com/forum/showthread.php?t=227359)
