Periodically as my movie runs I'd like to loop through an array of movie clips and change the visibility property of each. I'm having trouble figuring out how to reference each MC in my "for in" loop. (I'll be adding to my array as the movie runs and will have no idea how many MCs my array holds at any given time.) Here's my idea...
Thanks in advance for any help!
Code:
function changeVis () {
allMC = ["MC1", "MC2","MC3"];
for (n in allMC) {
n = allMC.length;
//the next line is specifically where I'm having trouble...
setProperty (HOW_ARE_INDIVIDUAL_MCS_REFERENCED_HERE?, _visible, 0);
}
}
Thanks in advance for any help!