作者xz0526 (Wesker)
看板Flash
标题[问题] 小时钟的问题
时间Sat May 20 15:14:08 2006
我做一个圆球和两个文字框years和hours在主场景
把下面的东西加进圆球影片片段里
onClipEvent (enterFrame) {
the_time = new Date();
the_year = this_time.getFullYear();
the_month = this_time.getMonth()+1;
the_date = this_time.getDate();
_parent.years.text = the_year+"/"+the_month+"/"+the_date;
the_hour = this_time.getHours();
the_minute = this_time.getMinutes();
the_second = this_time.getSeconds();
_parent.hours.text = the_hour+":"+the_minute+":"+the_second;
delete this_time;
}
出来的结果 那两个文字框显示undefined 到底哪里出错了 搞不懂
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.64.94.13
1F:推 playfrancis:this._time 你应该是笔误吧 08/05 22:53