# Interactive Image Pan

**URL:** <https://forum.kirupa.com/t/interactive-image-pan/276916>\
**Category:** Uncategorized\
**Created:** [December 4, 2008, 11:20pm UTC](https://forum.kirupa.com/t/interactive-image-pan/276916 "2008-12-04T23:20:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![doomer](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@doomer](https://forum.kirupa.com/u/doomer)\
**Post date:** [December 4, 2008, 11:20pm UTC](https://forum.kirupa.com/t/interactive-image-pan/276916/1 "2008-12-04T23:20:35Z")

</div>

Hello everybody. I read your tutorial for image panning. Everything works ok, except that your guide is for the x-axis only. What if I wanted to put Y axis too?  
I tried to put Y variables in the method but I ended up with a panning which can only be done along a diagonal line which runs from the upper left corner to the lower right.  
I tried to put two methods in the same button (…) and I ended up having the first movement on X axis, and the second on Y, whitout being able to get back to X for the following mouse movements.  
So that’s my problem, I’m pretty new to Flash and i would need some help with panning.  
Also, if you could please tell me how to assign panning to a specific keyboard key.

Thanks :love:
