Tutorial Details
- Judul: Jam analog as3
- Difficulty: Beginner
- Platform: Flash (Flash Player 10)
- Bahasa Scripth: AS3
- Software : Flash Professional CS4/Flash Professional CS5
- Estimated Completion Time: 15 minutes
- Created:Ricko Nada (Pustaka Flash)
live demo :
Scripth yang digunakan :
var now:Date; var ct:Timer = new Timer(1000); ct.addEventListener(TimerEvent.TIMER, onTick); ct.start(); function onTick(event:TimerEvent):void{ var now = new Date(); var s:uint = now.getSeconds(); var m:uint = now.getMinutes(); var h:uint = now.getHours(); detik.rotation = 360 + (s * 6); menit.rotation = 360 + (m * 6); jam.rotation = 360 + (h * 30) + (m * 0.5); }
5 Halaman yang sering dikunjungi:
0 komentar:
Post a Comment