Interactive Image Pan

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

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.