| Package | pegas.transitions |
| Interface | public interface ITimer |
| Implementors | FrameTimer, Timer |
| Property | Defined by | ||
|---|---|---|---|
| currentCount : int [read-only]
The total number of times the timer has fired since it started at zero.
| ITimer | ||
| delay : Number
The delay, in milliseconds, between timer events.
| ITimer | ||
| repeatCount : int
The total number of times the timer is set to run.
| ITimer | ||
| Method | Defined by | ||
|---|---|---|---|
|
reset():void
Stops the timer, if it is running, and sets the currentCount property back to 0, like the reset button of a stopwatch.
| ITimer | ||
|
start():void
Starts the timer, if it is not already running.
| ITimer | ||
|
stop():void
Stops the timer.
| ITimer | ||
| currentCount | property |
currentCount:int [read-only]The total number of times the timer has fired since it started at zero.
Implementation public function get currentCount():int
| delay | property |
delay:Number [read-write]The delay, in milliseconds, between timer events.
Implementation public function get delay():Number
public function set delay(value:Number):void
| repeatCount | property |
repeatCount:int [read-write]The total number of times the timer is set to run.
Implementation public function get repeatCount():int
public function set repeatCount(value:int):void
| reset | () | method |
public function reset():voidStops the timer, if it is running, and sets the currentCount property back to 0, like the reset button of a stopwatch.
| start | () | method |
public function start():voidStarts the timer, if it is not already running.
| stop | () | method |
public function stop():voidStops the timer.