flash on 2010-3-17
♥0 |
Line 10 |
Modified 2010-03-17 00:01:34 |
MIT License
archived:2017-03-20 01:35:43
ActionScript3 source code
/**
* Copyright yuwatanabe ( http://wonderfl.net/user/yuwatanabe )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qsQO
*/
package {
import flash.display.Sprite;
public class Clock extends Sprite {
public function Clock () {
addEventListener("enterFrame", function():void {
with(graphics)with(Math)with(new Date)c=cos,v=moveTo,l=lineTo,x=y=232,rotation=-90,clear(),v(lineStyle(2),l(99*c(s=seconds*(t=PI/30)),99*sin(s))),v(l(75*c(m=minutes*t),75*sin(m)),0),l(50*c(h=hours*t*5),50*sin(h))
});
}
}
}