Digital Clock in Flash

1. Start by creating a text on the stage and type in 00:00:00 just for the visual. Now in the properties panel make the text dynamic and name it time1 as shown in the image below.

2.Convert into symbol(movie),double click again convert into symbol.

3.insert the code in action script panel

onClipEvent (enterFrame) {
data = new Date();

time1.text = data.getHours() + ":" + data.getMinutes() + ":" + data.getSeconds();
}

Comments