Re: [問題] 小時鐘的問題

看板Flash作者 (米勒)時間17年前 (2008/08/05 22:52), 編輯推噓4(403)
留言7則, 4人參與, 最新討論串2/2 (看更多)
※ 引述《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

08/05 23:07, , 1F
這位仁兄缺錢嗎?
08/05 23:07, 1F

08/05 23:39, , 2F
不知道耶...我找不到原始文章的說
08/05 23:39, 2F

08/05 23:40, , 3F
找到了,2006年的文呀... =w=+
08/05 23:40, 3F

08/06 01:14, , 4F
也許他從頭看板吧
08/06 01:14, 4F

08/06 09:20, , 5F
我推文的時候回三篇一樣的
08/06 09:20, 5F

08/06 12:04, , 6F
看錯地方我以為會回在本文下方,後來才發現在最下面
08/06 12:04, 6F

08/06 12:09, , 7F
哈,你推在本文下方應該也不會有人看到吧,文章太老囉~
08/06 12:09, 7F
文章代碼(AID): #18c6ayKW (Flash)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #18c6ayKW (Flash)