現在の時間を取得する

デジタル時計

Point
・時・分・秒を表示するダイナミックテキストを作成
・ダイナミックテキストの変数名は「ji」「fun」「byo」
・行揃えは「右」
・出力されるダイナミックを全選択し、ムービークリップへ変換
・アクション・ムービークリップに下記Scriptを記入

Script

onClipEvent(enterFrame){
	objDate = new Date();
	this.ji = objDate.getHours();
	this.fun = objDate.getMinutes();
	this.byo = objDate.getSeconds();
	this.mil = objDate.getMilliseconds();
}