close
插入>>新增元件>>影片片段,如下圖:
屬性:
動作:
import flash.events.Event;
this.stage.addEventListener(Event.ENTER_FRAME,$change);
function $change($e:Event):void{
var time1:Date=new Date();
h_mc.rotation=360/12*time1.getHours()+360/12/60*time1.getMinutes();
m_mc.rotation=360/60*time1.getMinutes();
s_mc.rotation=360/60*time1.getSeconds();
}
如需範例檔,請MAIL:css6666@yahoo.com.tw
如果您認為內容不錯,也請幫我點個廣告,謝謝。
文章標籤
全站熱搜