Multiple Hittest
Determining hitTests for multiple movieclips in Flash can be a daunting and CPU intensive process. This shows a technique that lessens the burden a bit by assuring that the same moveiclip isn't checked with another movieclip twice. The boxes here ranomly bounce around the confined area turning red when a hitTest is true with any of the other boxes. Change the number of boxes used in the upper right. Anything over 75 is not recomended because of possible slowdown.
advertisement