2007/12/11 久米
現在日時はd = new Date();で取得できる。
this.onEnterFrame=function(){
d = new Date();//現在日時
h = d.getHours();//時
m = d.getMinutes();//分
s = d.getSeconds();//秒
//あとはTextFieldに代入するだけ
}
|
例えば短針は
h_mc._rotation=h*30+Math.floor(m/2);