hitTest with Lines

Hey everyone,
I’ve realized after a few hours of fiddling around that a regular hitTest will not work properly for lines drawn via AS. I referred to the following resources first: http://www.kirupa.com/developer/actionscript/advanced_collision.htm and [url=“http://www.kirupa.com/forum/showthread.php?t=77513”]http://www.kirupa.com/forum/showthread.php?t=77513

Here is a crude example I made: http://www.kirupa.com/temp/hitTest.html (**[u][url=“http://www.kirupa.com/temp/hitTest.fla”]FLA[/u]**) As expected, when the circle movie clip is dragged even close to the “rectangle” (as opposed to the line), the hitTest function returns a true as demonstrated by the transparency effect on the circle.

I’m wondering if there is a better way of creating a hitTest for the line without using numerous movie clips and a for loop to cycle through the movie clips.

Thanks!
Kirupa =)