为什么这个开关盒不起作用......即使我在星期一选择按钮,它也会向我显示默认消息..
switch (finalsave.weekday) {
case finalsave.weekday == 1:
trace ("monday");
break;
case finalsave.weekday== 2:
trace ("tuesday");
break;
case finalsave.weekday == 3:
trace ("wednesday");
break;
case finalsave.weekday == 4:
trace ("thursday");
break;
case finalsave.weekday == 5:
trace ("friday");
break;
default:
trace ("nothingness");
}