# Image Panning

**URL:** https://forum.kirupa.com/t/image-panning/235171
**Category:** flash
**Created:** [August 9, 2007, 12:26am UTC](https://forum.kirupa.com/t/image-panning/235171 "2007-08-09T00:26:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![steresa](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steresa](https://forum.kirupa.com/u/steresa)
#### Post date: [August 9, 2007, 12:26am UTC](https://forum.kirupa.com/t/image-panning/235171/1 "2007-08-09T00:26:57Z")

</div>

I know how to do the action script for the image pan. My problem is that I am loading a movie with a stage size of 100 w 50 h into a stage size of 200 w 100 h. When the smaller movie loads into the bigger one, the image begins to pan from left to right when I move my mouse from left to right. However since this stage size is bigger, even if I place my mouse at the top of the stage, the image still pans once I move my mouse from left to right. HOW CAN I CONSTRAIN THE IMAGE FROM PANNING FROM WITHIN A 100 W BY 50 H AREA?
