[問題] 小時鐘的問題

看板Flash作者 (Wesker)時間19年前 (2006/05/20 15:08), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
我做一個圓球和兩個文字框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

08/05 22:53, , 1F
this._time 你應該是筆誤吧
08/05 22:53, 1F
文章代碼(AID): #14Ri272N (Flash)
討論串 (同標題文章)
文章代碼(AID): #14Ri272N (Flash)