| Property | Defined by | ||
|---|---|---|---|
| initialized : Boolean [read-only]
Returns whether or not TimeKeeper has been initialized.
| TimeKeeper | ||
| isRunning : Boolean [static][read-only]
Tells whether or not TimeKeeper is running.
| TimeKeeper | ||
| stage : DisplayObjectContainer
Returns stage object.
| TimeKeeper | ||
| step : int [read-only]
Returns the number of milliseconds since the last frame.
| TimeKeeper | ||
| Method | Defined by | ||
|---|---|---|---|
|
| TimeKeeper | ||
|
checkStage():Boolean
Checks to see if the stage has been referenced.
| TimeKeeper | ||
|
start():void
Starts the timer.
| TimeKeeper | ||
|
stepsOf(val:int):Number
Returns the number of intervals(val) in milliseconds passed since last frame.
| TimeKeeper | ||
|
stop():void
Stops the timer.
| TimeKeeper | ||
| initialized | property |
initialized:Boolean [read-only]Returns whether or not TimeKeeper has been initialized.
Implementation public function get initialized():Boolean
| isRunning | property |
isRunning:Boolean [read-only]Tells whether or not TimeKeeper is running.
Implementation public static function get isRunning():Boolean
| stage | property |
stage:DisplayObjectContainer [read-write]Returns stage object.
Implementation public function get stage():DisplayObjectContainer
public function set stage(value:DisplayObjectContainer):void
| step | property |
step:int [read-only]Returns the number of milliseconds since the last frame.
Implementation public function get step():int
| TimeKeeper | () | constructor |
public function TimeKeeper()
| checkStage | () | method |
public function checkStage():BooleanChecks to see if the stage has been referenced.
ReturnsBoolean |
— Throws an error event in the case that a stage reference has not been added.
|
| start | () | method |
public function start():voidStarts the timer.
| stepsOf | () | method |
public function stepsOf(val:int):NumberReturns the number of intervals(val) in milliseconds passed since last frame.
Parametersval:int — The amount of time you would like to query.
|
Number — A Number representing multiples of val that
have passed since last frame.
|
| stop | () | method |
public function stop():voidStops the timer.