Interactive Image Panning


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.

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.

try this to start: