hitTest basic help

hi everybody,

I’m experimenting and learning… please be patient!

There are 25 objects moving randomly on stage.
The hero moves up and down

What I want is to know is when the hero is being hit by the intruders, so far this is what I have:

[AS]onClipEvent (enterFrame) {
for (i=0; i<=25; i++) {
var dots = _root[“dot”+i];
trace (dots)
if (_root.box_mc, hitTest(dots)) {
_root.text = “Collision Detected”;
} else {
_root.text = “No Collision”;
}
}
}
[/AS]

thanks in advanced.

:pac: