Check out the ChumbyClock in here: http://www.aromatic.org/chumby/
I did it in the Flash authoring tool just because I have to figure out how to embed the font in FlashDevelop, but otherwise everything (not that much) is done in ActionScript and I have a small sample done in FlashDevelop.
Here is the code:
function updateTimer():Void {
var date:Date = new Date();
time = d2(date.getHours()) + ":" + d2(date.getMinutes()) + ":" + d2(date.getSeconds());
}
function d2(n:Number):String {
return n < 10 ? "0" + n : n;
}
var timerID:Number = setInterval(updateTimer, 100);
this.onTweenUpdate = function(v) {
chumby._x = v;
}
this.onTweenEnd = function(v) {
chumby._x = v;
new mx.effects.Tween(this, 20+v, 300-v ,1000);
}
this.onTweenEnd(0);
...of course I will never know if it works, since I don't have a chumby