内容
Flashの時間取得スクリプト。
スクリプト
onClipEvent (enterFrame) { now = new Date(); _root.full_year = now.getFullYear(); _root.year = now.getYear(); _root.months = now.getMonth(); _root.months_r = now.getMonth()+1; _root.dates = now.getDate(); _root.days = now.getDay(); dayArray = ["Sunday","Monday","Tuesday", "Wednesday","Thursday","Friday","Saturday"]; _root.theDay = dayArray[_root.days]; _root.hour = now.getHours(); _root.minute = now.getMinutes(); _root.second = now.getSeconds(); }
対象バージョン
Flash 5以降
メニューへ戻る