var myTime:Date = new Date(); var myTimer:Timer = new Timer(1000); //确定时间 var myHour = myTime.getHours(); var myMinute = myTime.getMinutes(); var mySecond = myTime.getSeconds(); //确定指针位置 h_mc.rotation=(myHour+myMinute/60)*30; m_mc.rotation=(myMinute+mySecond/60)*6; s_mc.rotation = mySecond * 6; //启动时钟 myTimer.addEventListener(TimerEvent.TIMER,startTheClock); myTimer.start();