I’m making a switch case statement that iterates through the season tag in my XML file, which works fine considering my one trace statement prints out 1 of the 4 seasons. But the case always defaults. But I don’t understand why. This switch case stmnt is within a for loop.
switch(seasonOn.season){
case "spring":
springList.push(seasonOn.place);
break;
case "summer":
summerList.push(seasonOn.place);
break;
case "autumn":
autumnList.push(seasonOn.place);
break;
case "winter":
winterList.push(seasonOn.place);
break;
default:
trace("none of the above");
}/*trace(seasonOn.season);
trace(winterList.length);*/
Works fine…