Does anybody know why this code won’t work? If I hand code in the Array it works fine. Also, when I trace this, it gives me what I want, but I think for some reason the lines that are bolded aren’t reading correctly. Does anybody know why? Thanks.
DWP = ["BuildingType", "Challenge", "Product"];
function changeAllSecondaryWhite() {
for (i=0; i<DWP.length; i++) {
myButton = DWP*;
whiteColor* = new Color(**secondary.myButton.back**);
whiteColor*.setRGB(whiteBack);
whiteFormat = new TextFormat();
whiteFormat.color = grayText;
**secondary.myButton.btn_name**.setTextFormat(whiteFormat);
trace(myButton);//trace works fine
}
}