# Panning a movieclip

**URL:** <https://forum.kirupa.com/t/panning-a-movieclip/259728>\
**Category:** flash\
**Created:** [May 8, 2008, 6:55am UTC](https://forum.kirupa.com/t/panning-a-movieclip/259728 "2008-05-08T06:55:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iMat](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@iMat](https://forum.kirupa.com/u/iMat)\
**Post date:** [May 8, 2008, 6:55am UTC](https://forum.kirupa.com/t/panning-a-movieclip/259728/1 "2008-05-08T06:55:33Z")

</div>

Hello,

I’m looking for a code that basically does:

[http://www.kirupa.com/developer/flash8/interactive\_image\_pan.htm](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](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
