# Help setting parameters

**URL:** <https://forum.kirupa.com/t/help-setting-parameters/244040>\
**Category:** Uncategorized\
**Created:** [November 13, 2007, 9:55pm UTC](https://forum.kirupa.com/t/help-setting-parameters/244040 "2007-11-13T21:55:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michmons](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@michmons](https://forum.kirupa.com/u/michmons)\
**Post date:** [November 13, 2007, 9:55pm UTC](https://forum.kirupa.com/t/help-setting-parameters/244040/1 "2007-11-13T21:55:06Z")

</div>

my code:

distancing\_mc.onEnterFrame = function() {

xdist = Math.round(\_root.\_xmouse - \_x);  
ydist = Math.round(\_root.\_ymouse - \_y);  
distancefromthis = Math.round(Math.sqrt((xdist_xdist) + (ydist_ydist)));  
circle\_mc.\_width = (100-distancefromthis)+20;  
circle\_mc.\_height = (100-distancefromthis)+20;  
}

I have a circle that gets larger/smaller depending upon where the mouse is in comparison to the circle. How would I set parameters so that the circle would shrink only to a certain size and also grow only to a certain size?
