Make movieclip name from variables, help!

Hi all,

I have several movie clips named f1 - f19.

Now I need to target a random mc. I’ve got the random number generated and stored in an array and I then try to get the mc to play.

for (var j = 0 ; j <= numbersarray.length-1 ; j++) {
“f” + numbersarray[j].gotoAndPlay (‘play’);
}

So numbersarray is the array with all the rand numbers in it. You can see that I’m trying to construnct the mc name by using ‘f’ and then random number.

But, of course, it dfoesn’t work!! When I trace “f” + numbersarray[j] it looks right!?

Can anyone point me in the right direction?

Sarah