请问flash导出系统时间(用动态文字)的代码怎么写?

2025-01-01 05:54:21
推荐回答(1个)
回答1:

创建七个动态文本,放场景中,分别起变量名为t1-----t7,适合AS2.0,FLASHPLAYER6.0
onEnterFrame =
function () {

mydate = new Date();

t1 = mydate.getFullYear();

t2 = mydate.getMonth();

t3 = mydate.getDate();

t4 = mydate.getHours();

t5 = mydate.getMinutes();

t6 = mydate.getSeconds();

t7 = mydate.getDay();

};