starrDrag() woes

I am having the hardest time understanding the constrained area for startDrag. I ususally end up just trying random numbers until they work. Say I have a box 200px x 200px, with registration on the top left corner… It’s parent clip is 238px by 225px, and has registration set to the middle horizontally and verticaly. How woudl figure out the correct numbers to constrain this? If anyone knows a good tutorial for this-I would relaly appreciate it.

//outerBox = larger rectangle
//innerBox = smallerRectangle

_root.outerBox.onEnterFrame = function(){
a= _root.outerBox._width;
b= _root.outerBox._height;
c= _root.outerBox._x;
d= _root.outerBox._y;
e= _root.innerBox._width;
f= _root.innerBox._height;
_root.innerBox.startDrag(true,c,d,(d+a)-e,(d+b)-f);

Thank you very much, but that code doesn’t seem to do it. I’m going to try out some variations and If I find one that works I’ll post it.

One this I should note is that the Outer Box is draggable too. I’m not sure how much of a difference that makes… In determing the drag area. I would guess that it needs to be determined based on the parent movieclip’s position