"Flash Script Learning"  Flashプログラムの研究・ソース配布・Flashゲーム

Flashの時間取得スクリプト

Top - Flash Plus - Flash Script Learning - Flashの時間取得スクリプト


内容

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以降

メニューへ戻る



Studio Chuma Works 2003-2005