# Please help

**URL:** <https://forum.kirupa.com/t/please-help/244126>\
**Category:** Uncategorized\
**Created:** [November 14, 2007, 3:24pm UTC](https://forum.kirupa.com/t/please-help/244126 "2007-11-14T15:24:40Z")\
**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 14, 2007, 3:24pm UTC](https://forum.kirupa.com/t/please-help/244126/1 "2007-11-14T15:24:40Z")

</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. What code would I use to set limits to the circle. I want the circle to shrink only to a certain size and grow larger to a certain size.
