# How to drag a movie clip that is larger than the flash document and have it stop at

**URL:** https://forum.kirupa.com/t/how-to-drag-a-movie-clip-that-is-larger-than-the-flash-document-and-have-it-stop-at/200276
**Category:** Uncategorized
**Created:** [September 11, 2006, 3:08am UTC](https://forum.kirupa.com/t/how-to-drag-a-movie-clip-that-is-larger-than-the-flash-document-and-have-it-stop-at/200276 "2006-09-11T03:08:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![indierockmedia](https://avatars.discourse-cdn.com/v4/letter/i/7ab992/32.png) [@indierockmedia](https://forum.kirupa.com/u/indierockmedia)
#### Post date: [September 11, 2006, 3:08am UTC](https://forum.kirupa.com/t/how-to-drag-a-movie-clip-that-is-larger-than-the-flash-document-and-have-it-stop-at/200276/1 "2006-09-11T03:08:30Z")

</div>

how to drag a movie clip that is larger than the flash document and have it stop dragging at the edges of the movie clip? I have an 300x300 (just for example) flash movie. i have an image that is 500x650 placed a x/y of 0. i want people to be able to drag the large image so they can see the whole image, even though its larger than the movie dimensions. but i dont want it to keep dragging so say they drag it left 600 pixels, you see past the edges of the images to the background. i guess if you do the math, say at x/y = 0, they can only max drag it left 250 pixels but not farther left so you wont see past the edge of the image’s right side. i have some diagrams to illustrate. any help or tutorials would be appreciated!

mikey

THE MAIN SETUP:  
 ![](http://bandphotography.com/test/drag1.gif)

EXAMPLES OF MAX DRAG OF THE MOVIE CLIP.

![](http://bandphotography.com/test/drag2.gif) ![](http://bandphotography.com/test/drag3.gif) ![](http://bandphotography.com/test/drag4.gif)
