Timer 1.0

This is a simple digital timer component that will display Minutes, Seconds, and Hundredths.

Download:
To Download click here.

PC:
copy timer.swc to C:\Documents and Settings\[User Name]\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Components

Mac:
copy timer.swc to Applications:Macromedia Flash MX 2004:Configuration:Components

Example:
The component is only the timer display. The buttons were added to control the compoenent.



Methods:

starTimer():Void; - starts the timer from zero or from it's paused position

pauseTimer():Void; - pauses the timer

stopTimer():Void; - stops the timer, but leaves the time displayed

resetTimer():Void; - stops the timer and resets the display to 00:00:00;

setFontColor(sValue:String):Void; - sets the color of text (ie '0xFF0000' for red)

setFont(sValue:String):Void; - sets the font family (ie 'Arial')

setFontSize(nValue:Number):Void; - sets the font size
*Currently 20 is the highest font size that will display properly.
**If you need it larger you can stretch the timer or adjust with _width and _height properties

getElapsedTime():Number; - gets the total time in the timer in miliseconds (ie 60000 for one minute)

getTimerDisplay():String; - gets the string that is displayed (ie 02:34:51)

getElapsedM():Number; - gets the minutes that are displayed when the method is called

getElapsedS():Number; - gets the seconds that are displayed when the method is called

getElapsedH():Number; - gets the hundredths that are displayed when the method is called



Please report any bugs, comments, or suggestions to jacob@kineticz.net

Enjoy!