I’m trying to do something that I thought would be as easy as pie, but I can’t figure out the correct syntax, I just keep getting errors.
Here’s my code:
for (var i=1; i <= 10 ;i++) {
main_mc.bkg*_mc._alpha = 0;
}
It looks fine to me, but it obviously isn’t. It’s falling over on the middle line, specifically the ‘*’ bit. I just want it to put the ‘i’ value in the middle of the movieclip reference (obviously because there are 10 movieclips and I don’t want to keep repeating myself). I’ve tried lots of variations on the line, but nothing has worked. I know there’s going to be a really easy solution to this, but I don’t really know where to start.