# \[Flash8\] testing if a line encloses a Mclip

**URL:** <https://forum.kirupa.com/t/flash8-testing-if-a-line-encloses-a-mclip/199935>\
**Category:** flash\
**Created:** [September 7, 2006, 11:39am UTC](https://forum.kirupa.com/t/flash8-testing-if-a-line-encloses-a-mclip/199935 "2006-09-07T11:39:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smkdog](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@smkdog](https://forum.kirupa.com/u/smkdog)\
**Post date:** [September 7, 2006, 11:39am UTC](https://forum.kirupa.com/t/flash8-testing-if-a-line-encloses-a-mclip/199935/1 "2006-09-07T11:39:07Z")

</div>

Ok, I have a tricky AS question. I’m making a flash game where the object is to enclose a series of circle movieclips with a dynamicly drawn line (using lineTo and mouseX/mouseY).  
I’m having trouble figuring out how exactly am I going to get the game to recognise that one of these circles has been completely enclosed. I was thinking something along the lines of doing a fill within the line shape and then doing a check to see if the circle is within that fill but I’m not sure if I can check if a new line crosses over an exisiting one.  
See the attached for a visual explanation.

any help would be much appreciated, cheers.
