# Constrain to Rectangle coordinates?

**URL:** <https://forum.kirupa.com/t/constrain-to-rectangle-coordinates/164759>\
**Category:** flash\
**Created:** [October 4, 2005, 4:31pm UTC](https://forum.kirupa.com/t/constrain-to-rectangle-coordinates/164759 "2005-10-04T16:31:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr\_red](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@dr\_red](https://forum.kirupa.com/u/dr_red)\
**Post date:** [October 4, 2005, 4:31pm UTC](https://forum.kirupa.com/t/constrain-to-rectangle-coordinates/164759/1 "2005-10-04T16:31:58Z")

</div>

Hey All,  
I’m doing a tutorial on using the startDrag function but have no idea how to get the coordinates for my rectangle.  
How do you find the 4 points? I’ve tried using my mouse to pinpoint the location but that doesn’t work.

Here is the generic code:  
myMovieClip.startDrag(false, left, right, top, bottom);

Many thanks for the help!  
-Drred
