我正在使用下面的脚本根据当前日期转到帧,但它似乎总是跳转到我第一次运行脚本的日期(8 月 8 日)。
如何使闪存更新日期/变量?
var augDate:Date = new Date();
var dayNumberaug:uint = someDate.getDay();
switch(dayNum)
{
case 0:
gotoAndStop(1,"August");
break;
case 1:
gotoAndStop(2,"August");
break;
case 2:
gotoAndStop(3,"August");
break;
case 3:
gotoAndStop(4,"August");
break;
case 4:
gotoAndStop(5,"August");
break;
case 5:
gotoAndStop(6,"August");
break;
case 6:
gotoAndStop(7,"August");
break;
case 7:
gotoAndStop(8,"August");
break;
case 8:
gotoAndStop(9,"August");
break;
case 9:
gotoAndStop(10,"August");
break;
case 10:
gotoAndStop(11,"August");
break;
case 11:
gotoAndStop(12,"August");
break;