# Target Area - Detection

**URL:** <https://forum.kirupa.com/t/target-area-detection/312105>\
**Category:** flash\
**Created:** [July 25, 2010, 11:33pm UTC](https://forum.kirupa.com/t/target-area-detection/312105 "2010-07-25T23:33:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcambron](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@tcambron](https://forum.kirupa.com/u/tcambron)\
**Post date:** [July 25, 2010, 11:33pm UTC](https://forum.kirupa.com/t/target-area-detection/312105/1 "2010-07-25T23:33:14Z")

</div>

Greetings,

I have a stroked square with no fill in the center of a stage. A user can mouse drag an image and scale the image up and down on the stage. Can anyone recommend a way, possibly with code example, to detect when the image has scaled down past the stroke to the inside of the rectangle. Basically I am trying to avoid whitespace in the target area.

Thanks!
