作者playfrancis (米勒)
看板Flash
标题Re: [问题] 小时钟的问题
时间Tue Aug 5 22:52:43 2008
※ 引述《xz0526 (Wesker)》之铭言:
: 我做一个圆球和两个文字框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();
^^^^^^^^^
this._time
其他地方也是错一样你应该是笔误吧
: 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: 122.99.51.122
1F:推 etrexetrex:这位仁兄缺钱吗? 08/05 23:07
2F:推 cjcat2266:不知道耶...我找不到原始文章的说 08/05 23:39
3F:→ cjcat2266:找到了,2006年的文呀... =w=+ 08/05 23:40
4F:→ Jedic:也许他从头看板吧 08/06 01:14
5F:推 etrexetrex:我推文的时候回三篇一样的 08/06 09:20
6F:→ playfrancis:看错地方我以为会回在本文下方,後来才发现在最下面 08/06 12:04
7F:推 cjcat2266:哈,你推在本文下方应该也不会有人看到吧,文章太老罗~ 08/06 12:09