These days, Flash components are seen almost on all websites in one form or another. It may be in the form of an advertisement, a menu bar, product catalog or a simple digital or analog clock. Flash based clocks are a very useful and easy way to attract people towards your website. Digital clocks are very easy to make on Adobe Flash CS4. Anyone with a little bit of experience with Flash can make a digital clock in no time.

Some of the things you may require to make a digital clock in Flash are:

  1. Adobe Flash CS4 (older versions of Flash are also supported, but they may have slightly different settings)

  2. Basic experience using Flash.

Creating a digital clock in Adobe Flash CS4 involves the following steps:

  1. Run Adobe Flash CS4.

  2. Create new project supporting Action Script 2.0.

  3. Right click on the stage and then click on “Document properties”, and set the page width and height to 320 and 50 respectively.

  4. Click on ‘ok’ button.


  5. Now select text tool from the toolbar.

  6. In the properties pane select dynamic text.


  7. Make a text box on the stage. Make the text box big enough to hold the complete time in a standard form i.e. “hour : minute : seconds AM/PM”.


  8. In the properties pane, under the options heading, give variable name as “time_txt”.


  9. Create new layer.

  10. Name it “actions” as all the action scripts will be stored here.

  11. On the 1st frame of action layer, press F6 on your keyboard.

  12. Right click on the 1st frame of actions layer and select “Actions”.

  13. In the actions panel type the following code.

  14. Close actions panel.

  15. Test your digital clock by pressing “CTRL + ENTER” on your keyboard.