| Creating time in Flash
1.Create a new movie with width=200 and height=75 .
2.Create a text field name it time.
3.Name the current layer textfield.
4.Create a new layer above the current layer and name it actions
5.Create two key frames in the actions layer
6.In the first key frame give action
today = new Date();
time = today.getHours() add ":" add today.getMinutes()
add ":" add today.getSeconds();
7.In the second frame give action
gotoAndPlay (1);
8.press ctrl + enter to test the movie. |