Here’s an example of a digital clock where the time is actually drawn on a movie clip using the lineTo() method. Sorry I have to only post a reference, but here’s the link:
www.interintuit.com/DigClockMX.asp (swf)
and
www.interintuit.com/DigClockMX.fla (Source)
Basically, the code is on one frame – so I’ll copy and paste here. I did this “off the cuff,” so I realize that the code could be streamlined significantly, but figured I’d post anyway.
– Shannon
var columns = new Array(100,125,150,175,200,225,250,275,300,325,350)//xOffsets for upper right corners of each column (34 points for number, 18 for colons)
var yOffset = 100; //the y coord of top right of clock
_root.createEmptyMovieClip( “clock”, 1 );
_root.clock.lineStyle( 2, 0x00ff00, 100 );
function make1 (xOffset) {
        with (_root.clock) {
                moveTo(xOffset-24,yOffset+3)
                lineTo(xOffset-24,yOffset+13)
               
        }
}
function make2 (xOffset) {
        with (_root.clock) {
                moveTo (xOffset-22,yOffset)
                lineTo (xOffset-12,yOffset)
        }
}
function make3 (xOffset){
        with (_root.clock){
                moveTo(xOffset-10,yOffset+2)
                lineTo(xOffset-10,yOffset+12)
               
        }
}
function make4 (xOffset) {
        with (_root.clock) {
                moveTo (xOffset-22,yOffset+13)
                lineTo (xOffset-12,yOffset+13)
        }
}
function make5 (xOffset) {
        with (_root.clock){
                moveTo(xOffset-25,yOffset+15)
                lineTo(xOffset-25,yOffset+25)
        }
}
function make6 (xOffset){
        with ( _root.clock ) {
                moveTo(xOffset-10,yOffset+16)
                lineTo(xOffset-10,yOffset+26)
        }
}
function make7 (xOffset){
        with(_root.clock){
                moveTo (xOffset-22,yOffset+27)
                lineTo (xOffset-12,yOffset+27)
        }
}
function drawNum(num,col){
        start = columns[col];
        if(num==0){
                make1(start);
                make2(start);
                make3(start);
                make5(start);
                make6(start);
                make7(start);
                return true;
        }
        if(num==1){
                make3(start);
                make6(start);
                return true;
        }
        if(num==2){
                make2(start);
                make3(start);
                make4(start);
                make5(start);
                make7(start);
                return true;
        }
        if(num==3){
                make2(start);
                make3(start);
                make4(start);
                make6(start);
                make7(start);
                return true;
        }
        if(num==4){
                make1(start);
                make3(start);
                make4(start);
                make6(start);
                return true;
        }
        if(num==5){
                make1(start);
                make2(start);
                make4(start);
                make6(start);
                make7(start);
                return true;
        }
        if(num==6){
                make1(start);
                make2(start);
                make4(start);
                make5(start);
                make6(start);
                make7(start);
                return true;
        }
        if(num==7){
                make2(start);
                make3(start);
                make6(start);
                return true;
        }
        if(num==:cool: {
                make1(start);
                make2(start);
                make3(start);
                make4(start);
                make5(start);
                make6(start);
                make7(start);
                return true;
        }
        if(num==9){
                make1(start);
                make2(start);
                make3(start);
                make4(start);
                make6(start);
                return true;
        }
}
function drawColon(place){
        xO = columns[place];
        with(_root.clock){
                moveTo(xO-15,yOffset+10);
                lineTo(xO-15,yOffset+13);
                moveTo(xO-15,yOffset+23);
                lineTo(xO-15,yOffset+26);
        }
}
var now = new Date();
hours = now.getHours().toString();
if (hours.length<2){
        h1 = 0;
        h2 = hours.charAt(0);
}else{
        h1 = hours.charAt(0);
        h2 = hours.charAt(1);
}
drawNum(h1,0);
drawNum(h2,1);
drawColon(2);
minutes = now.getMinutes().toString()
if (minutes.length<2){
        m1 = 0;
        m2 = minutes.charAt(0);
}else{
        m1 = minutes.charAt(0);
        m2 = minutes.charAt(1);
}
drawNum(m1,3);
drawNum(m2,4);
drawColon(5);
seconds = now.getSeconds().toString()
if (seconds.length<2){
        s1 = 0;
        s2 = seconds.charAt(0);
}else{
        s1 = seconds.charAt(0);
        s2 = seconds.charAt(1);
}
drawNum(s1,6);
drawNum(s2,7);
drawColon( ;
mseconds = now.getMilliseconds().toString()
if (mseconds.length<2){
        ms1 = 0;
        ms2 = mseconds.charAt(0);
}else{
        ms1 = mseconds.charAt(0);
        ms2 = mseconds.charAt(1);
}
drawNum(ms1,9);
drawNum(ms2,10);