1. Home
  2. Computing & Technology
  3. Animation
photo of Adrien-Luc Sanders
Adrien-Luc's Animation Blog

By Adrien-Luc Sanders, About.com Guide to Animation since 2005

Flash Digital Clock

Friday November 3, 2006
You can add a constantly-counting clock to your game, web page, or other SWF file using the hour, minute, and second parameters of your basic Date functions, a movie clip, and dynamic text properties. We've done something similar before to display the current date; this time we'll instead retrieve the time from the user's system, and write it to the screen. Although the functions will automatically return twenty-four-hour time, it's not too hard to use a few conditional statements to change the time to twelve-hour time.

Related Lessons:

  • AcctionScripting Basics: Basic Date Functions
  • Comments

    No comments yet. Leave a Comment

    Leave a Comment

    Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

    Explore Animation
    About.com Special Features

    Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

    Easy ways to connect two computers for networking purposes. More >

    1. Home
    2. Computing & Technology
    3. Animation

    ©2009 About.com, a part of The New York Times Company.

    All rights reserved.