Panning a movieclip

Hello,

I’m looking for a code that basically does:

http://www.kirupa.com/developer/flash8/interactive_image_pan.htm

with vertical scrolling as well.

I know there’s http://www.kirupa.com/forum/showthread.php?t=227359&highlight=mcpan which is great - but I can’t use scrollRect because the movieclip I’m scrolling is dynamically refreshed with externally loaded content and resized with a zoom slider I made.

The Kirupa one works well, except I need a Y, and I need its boundaries to be within a mask. The mask has a set size, while the content may change in size (due to the zoom slider).

Any ideas? Thanks