This might make more sense if you download and run the .fla file first -
pointer_mc was originally just two lines put together to form a + sign. The resulting shape was converted into a movie clip. Within that movie clip I placed another movie clip called pointerLine_mc. My intention was to rotate the whole thing at the +. A hitTest is contintually run so that whenever pointerLine_mc touches certain objects, a green indicator becomes visible. My problem is that the hitTest comes up positive when pointerLine_mc gets close to the object instead of only coming up positive when it touches the object (at least that is how I thought hitTests were supposed to work). Can anyone figure out why hitTest is not working the way it should?
In the example given, the red dot is supposed to turn green when the line touches the blue dot. The green dot should turn back to red when the line is no longer touching the blue dot.
Last edited by darthjones; 11-23-2004 at 01:16 PM.
This hitTest is judging the bounding box
dimensions and distance .....not the content inside............
so make smaller MCs within that act as the hit testers......
in this example i have colored them red....
here is your fla. updated..