# startDrag and bounds

**URL:** <https://forum.kirupa.com/t/startdrag-and-bounds/318416>\
**Category:** flash\
**Created:** [January 19, 2011, 3:26pm UTC](https://forum.kirupa.com/t/startdrag-and-bounds/318416 "2011-01-19T15:26:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luoruize](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@luoruize](https://forum.kirupa.com/u/luoruize)\
**Post date:** [January 19, 2011, 3:26pm UTC](https://forum.kirupa.com/t/startdrag-and-bounds/318416/1 "2011-01-19T15:26:06Z")

</div>

Hello,

I have an image on the stage which is bigger than the stage itself:  
The stage is 700x550  
The image is 2100x1650, and it’s registration point is at its center, if I remember correctly.  
The initial location of the image on the stage is 350,75.

I want to make sure that the user will be able to drag the image, as long as the edges of the image doesn’t show (I hope this is clear… 😁).

here’s what I did:  
mapRect = new Rectangle(0-mapMC.width/2, 0-mapMC.height/2, mapMC.width, mapMC.height);

and later on:  
mapMC.startDrag(false,mapRect);

The the top and the left of the image are bounded well, but as far as the bottom and the right side of the image - I just can’t get it right…

Any help?
