Accessibility

Flash sample application

Time sample: Timer

The getTimer function can be used to keep track of elapsed time in your Flash movie (SWF file). The getTimer function returns the time in milliseconds since the Flash movie started. You can save timestamps in variables and compare them to determine how much time has elapsed. This type of functionality is useful for any type of movies that require the tracking of latency.

AlertThis content requires Flash

Download the free Flash Player now!

Get Adobe Flash Player

This sample demonstrates a timer that tracks elapsed time in a stopwatch-style interface. Click the start, stop, and reset buttons to see the results in the time display.

User level: Intermediate

Requirements

To view these samples, you need the following software and files:

Flash CS3 Professional

Sample files:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License