I try to make a simple clock but all i get is an empty dynamic text field on my site. what do i do wrong ?



I Create a new movie clip symbol (Insert > New Symbol).
I Use the text tool, drag out a text field in this
symbol.
I Select the text field with the Arrow tool, and open the
Text Options panel
I choose Dynamic Text from the pop-up menu, and give the
text field a variable name of time.

I Double-click in the first frame of the symbol to open
the Actions panel, and enter the following script:

function getTime () {
var time = new Date();
var hour = time.getHours();
var minute = time.getMinutes();
var second = time.getSeconds();

var temp = ""+((hour>12) ? hour-12 : hour);
temp += ((minute<10) ? ":0" : ":")+minute;
temp += ((second<10) ? ":0" : ":")+second;
temp += (hour>=12) ? " P.M." : " A.M.";

return temp;
}


I Place an instance of this new symbol on the main Timeline of the movie.

I Select the new movie clip instance, and open the Actions panel (Window > Actions) if it's not already open.
I Enter the following script into the Actions panel:

onClipEvent (enterFrame) {
time = getTime();
}

anyone ???