close

11.png

插入>>新增元件>>影片片段,如下圖:

15.png

屬性:

12.png13.png14.png  

動作:

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

如果您認為內容不錯,也請幫我點個廣告,謝謝。

arrow
arrow
    文章標籤
    Flash 指針時鐘
    全站熱搜
    創作者介紹
    創作者 css6 的頭像
    css6

    美奇電腦

    css6 發表在 痞客邦 留言(0) 人氣()