# Scroll Movieclip with Mouse Pointer

**URL:** <https://forum.kirupa.com/t/scroll-movieclip-with-mouse-pointer/234232>\
**Category:** flash\
**Created:** [July 31, 2007, 4:19pm UTC](https://forum.kirupa.com/t/scroll-movieclip-with-mouse-pointer/234232 "2007-07-31T16:19:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slyzaar](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@slyzaar](https://forum.kirupa.com/u/slyzaar)\
**Post date:** [July 31, 2007, 4:19pm UTC](https://forum.kirupa.com/t/scroll-movieclip-with-mouse-pointer/234232/1 "2007-07-31T16:19:42Z")

</div>

Hi all,

I have seen plenty examples of panning an image in flash. But the examples I found were never quite right. I have an image loaded into a movieclip, which is inside a main movieclip.

I want to scroll (horizontally or vertically) the movieclip (which holds the image) based on how far the mouse pointer moves - but only within the range of the main movieclip borders.

Get what I mean? Like the map is on this site: [http://www.nec.com/](http://www.nec.com/) - Hint - wait for globe to stop spinning!

So, if anyone has any handy script lying around, please enlighten me!

BTW - Flash MX 2004.

thanks very much,

KS
