# startDrag to boundaries of movieClip

**URL:** <https://forum.kirupa.com/t/startdrag-to-boundaries-of-movieclip/254857>\
**Category:** flash\
**Created:** [March 16, 2008, 12:01pm UTC](https://forum.kirupa.com/t/startdrag-to-boundaries-of-movieclip/254857 "2008-03-16T12:01:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danhodkinson](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@danhodkinson](https://forum.kirupa.com/u/danhodkinson)\
**Post date:** [March 16, 2008, 12:01pm UTC](https://forum.kirupa.com/t/startdrag-to-boundaries-of-movieclip/254857/1 "2008-03-16T12:01:22Z")

</div>

Hi all, i have a moveclip that is scaled inside a mask.  
i want to use the startDrag feature to move it around but i only want it to move as far as the boundaries,  
so if i try to move it to the right, it doesn’t let me move it further than the right hand boundary.  
does that make any sense?

i presume i’ll have to set the width and height as the boundaries or something along those lines?  
thanks  
Dan
