# Interactive Image Pan

**URL:** https://forum.kirupa.com/t/interactive-image-pan/246643
**Category:** Uncategorized
**Created:** [December 13, 2007, 1:05am UTC](https://forum.kirupa.com/t/interactive-image-pan/246643 "2007-12-13T01:05:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GGMcGee](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@GGMcGee](https://forum.kirupa.com/u/GGMcGee)
#### Post date: [December 13, 2007, 1:05am UTC](https://forum.kirupa.com/t/interactive-image-pan/246643/1 "2007-12-13T01:05:47Z")

</div>

Hi all,

I’ve been trying to create an image panning thingo in Flash, similar to this:

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

I pretty much want it to work exactly how it does in the previous tutorial, but **I don’t want the image I’m panning to be set at the top left corner** of the Flash document.

It’s basically a 1200px/200px image and I want it to be **placed in the middle** of a 800px/600px Flash document, and when the user moves their mouse over either side of the image, it pans in that direction.

I’m taking a wild guess, but I think the majority of the tutorial code can be used, but some variables have to be changed to suit my situation?

If anyone who knows their Actionscript can point me in the right direction, I’d really appreciate it.
