1. Home
  2. Computing & Technology
  3. Animation

Flash Digital Clock

By , About.com Guide

6 of 10

We’re going to start off by inserting an onClipEvent, with the event as enterFrame. We want the clock to keep ticking along instead of retrieving the time on loading and then stopping. As long as you’ve got at least one frame per second (or the default twelve) and no stops on your frames, then the movie will replay and every time the timeline enters the frame, it’ll check the system time and update.

Inside the onClipEvent, create a new Date object and assign a name to it:

onClipEvent (enterFrame) {
myclock=new Date() ;
}

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

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

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash Digital Clock

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

All rights reserved.