- 博客(0)
- 资源 (1)
空空如也
flash钟表
import flash.events.Event;
import fl.motion.MotionEvent;
stop();
function timeZZ(evt:Event){
var timeDate:Date=new Date();
var s:int=timeDate.seconds;
this.miao.rotation=s*(360/60);
var m:int=timeDate.minutes;
this.fen.rotation= (m/60)*360;
var h:int=timeDate.hours;
if(h>12){
h=h-12;
}
this.shi.rotation=((h/12))*360+(m/60)*(360/12);
}
stage.addEventListener(Event.ENTER_FRAME,timeZZ);
stage.addEventListener(Event.ENTER_FRAME,xunhuan);
function xunhuan(e:Event){
this.b_mc.rotation
}
2014-10-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人