Yeah... they're both probably quite cpu intensive, but I've never been able to find anything more efficient.
Altohugh I have found a neat trick. I find that sometimes, enterFrame hitTests are rather sketchy when testing for small objects... they can run WAAAAY into a shape before the hit registers. When objects are moving fast, they can miss a hitTest completely!
So I put all my hitTests into functions and then use
ActionScript Code:
setInterval(hitTestFunction,5);
or something similar to run my hitTests.
You need to make sure that you use an updateAfterEvent() command at the end of your hitTest functions, to take advantage of the increased hitTest rate.
yep... more work for the cpu, but much nicer hitTests... more reliable.
And if you use it for movements too, you'll find beautifully smooth ship movememnts, etc. Yum.