the problem is that if I write the same function for the other movie clips it doesnt work
1. What do you mean by this... are you trying to make other clips jump, or testing the frog for other hitTests?
2. What happens when "it doesnt work"? Does it give you an error, if so, please post it. If not, what happens?
It looks to me like you are attempting a simple hitTest loop.
for(var index:Number = 0; index < someNumber; index++)
if(_root["babyword" + index].hitTest(_root.frog))
So you loop through all the babyWord movieclips that are named babyWord1 babyWord2 etc.. and check for the hitTest. You will probably want this code in an enterFrame event on the maintimeline or in a setInterval function. Remember that someNumber needs to be the highest number in your range of babyWord movieclips so it will check them all.
thanks for your reply. To try and clarify:
I want the mc called frog to hitTest a number of movie clips (26 in all) so that if the hittest is true the frogMc plays another frame (which makes him jump). I dont get any error messages, what happens is that the hitTest only works on one movie clip, I put a trace on another which didnt detect even the trace.