Hi All,
Simple question here. This function works fine up until it hits the else statement. As soon as I uncomment the line to set the mc’s to blue after the else it errors out. The gray works fine as long as the else is commented out. What gives?
function colorStates():void {
for (var i:Number = 0; i<myArray.length; i++) {
if (myArray*[2] == "NA") {
trace("Gray States");
a.color = (0x999999);
this[myArray*[1]].transform.colorTransform = a;
} else {
trace("Blue States");
a.color = (0x0062bb);
//this[myArray*[1]].transform.colorTransform = a;
}
}
}