guys, here’s the script
function Init_txt() {
var mcArr:Array = (gender1_txt, gender2_txt, age1_txt, age2_txt, age3_txt, age4_txt, age5_txt, age5_txt, race1_txt, race2_txt, race3_txt, race4_txt, month1_txt, month2_txt, month3_txt, month4_txt, month5_txt, month6_txt, inter1_txt, inter2_txt, inter3_txt, inter4_txt, inter5_txt);
for (var i:Number = 0; i<mcArr.length; i++) {
var txtInColor = new Color(mcArr);
txtInColor.setRGB(0x474747);
}
}
all the properties in “mcArr” are movie clips, the point of this function is to color all the mc without have to rewrite the scrit over and over again.
why is it not working?