Simple Flash Analog Clock - AS3
Download clock.zip, 11 KB (Flash CS3|CS4 professional) ActionScript Code: // Developed by Anil kumar N D // anilkumarnd@gmail.com // ActionScript 3.0 // 28-August-2009 // http://flash-workshop.blogspot.com/ package { import flash.display.MovieClip; import flash.events.Event; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; public class clock extends MovieClip { var mc_hourHand:MovieClip; var mc_minHand:MovieClip; var mc_secHand:MovieClip; var dte_currentDate:Date = new Date(); var num_hour:Number; public function clock():void { numbers(); this.graphics.lineStyle(15,0xFF9900); this.graphics.drawCircle(stage.stageWidth/2,stage.stageHeight/2,stage.stageWidth/2-10); mc_hourHand=drawLine(100,12); addChild(mc_hourHand); mc_hourHand.x=stage.stageWidth/2; mc_hourHand.y=stage.stageHeight/2; mc_minHand=drawLine(140,8); addChild(mc_minHand); mc_minHand.x=stage.stageWidth/2; mc_minHand.y=stage.
Comments
flash website developer