| Package | graphics.transitions |
| Class | public class FrameTimer |
| Inheritance | FrameTimer FrameEngine Task Object |
| Implements | ITimer |
new FrameTimer object with the specified delay and repeat state.
This timer use the frames by second of the animation.
The timer does not start automatically, you much call the start() method to start it.
| Property | Defined By | ||
|---|---|---|---|
| complete : Signaler [read-only]
The timer complete signal reference. | FrameTimer | ||
| currentCount : int [read-only]
The total number of times the timer has fired since it started at zero. | FrameTimer | ||
| delay : Number
The delay, in milliseconds, between timer events. | FrameTimer | ||
![]() | enterFrame : Signaler [read-only]
The enterFrame signal reference of the frame engine. | FrameEngine | |
![]() | finishIt : Signaler
This signal emit when the notifyFinished method is invoked. | Task | |
![]() | logger : Logger
Determinates the internal Logger reference of this Loggable object. | Task | |
![]() | phase : String [read-only]
The current phase of the action. | Task | |
| repeatCount : int
The total number of times the timer is set to run. | FrameTimer | ||
![]() | running : Boolean [read-only]
Indicates true if the process is in progress. | Task | |
![]() | startIt : Signaler
This signal emit when the notifyStarted method is invoked. | Task | |
| timer : Signaler [read-only]
The timer signal reference. | FrameTimer | ||
| Property | Defined By | ||
|---|---|---|---|
| _count : int
The internal counter of the timer. | FrameTimer | ||
| _delay : Number
The internal delay of the timer. | FrameTimer | ||
| _lastTime : uint
The internal
| FrameTimer | ||
| _next : Number = 0
The next value. | FrameTimer | ||
| _repeatCount : int
The internal repeat counter of the timer. | FrameTimer | ||
| Method | Defined By | ||
|---|---|---|---|
FrameTimer(delay:Number = 0, repeatCount:int = 0)
Creates a new FrameTimer instance. | FrameTimer | ||
clone():* [override]
Returns a shallow copy of this object. | FrameTimer | ||
![]() | isLocked():Boolean
Returns true if the object is locked. | Task | |
![]() | lock():void
Locks the object. | Task | |
![]() | notifyFinished():void
Notify an ActionEvent when the process is finished. | Task | |
![]() | notifyStarted():void
Notify an ActionEvent when the process is started. | Task | |
reset():void
Stops the timer, if it is running, and sets the currentCount property back to 0, like the reset button of a stopwatch. | FrameTimer | ||
![]() | run(... arguments):void [override]
Run the process. | FrameEngine | |
![]() | start():void
Start the process. | FrameEngine | |
![]() | stop():void
Stop the process. | FrameEngine | |
![]() | unlock():void
Unlocks the display. | Task | |
| Method | Defined By | ||
|---|---|---|---|
__enterFrame__(e:Event = null):void [override]
Invoked when the frame engine is in progress. | FrameTimer | ||
![]() | setRunning(b:Boolean):void
Changes the running property value. | Task | |
| _count | property |
protected var _count:intThe internal counter of the timer.
| _delay | property |
protected var _delay:NumberThe internal delay of the timer.
| _lastTime | property |
protected var _lastTime:uintThe internal
| _next | property |
protected var _next:Number = 0The next value.
| _repeatCount | property |
protected var _repeatCount:intThe internal repeat counter of the timer.
| complete | property |
complete:Signaler [read-only] The timer complete signal reference.
public function get complete():Signaler| currentCount | property |
currentCount:int [read-only] The total number of times the timer has fired since it started at zero.
public function get currentCount():int| delay | property |
delay:NumberThe delay, in milliseconds, between timer events.
public function get delay():Number public function set delay(value:Number):voidError — Throws an exception if the delay specified is negative or not a finite number.
|
| repeatCount | property |
repeatCount:intThe total number of times the timer is set to run. If the repeat count is set to 0, the timer continues forever or until the stop() method is invoked or the program stops.
public function get repeatCount():int public function set repeatCount(value:int):void| timer | property |
timer:Signaler [read-only] The timer signal reference.
public function get timer():Signaler| FrameTimer | () | Constructor |
public function FrameTimer(delay:Number = 0, repeatCount:int = 0)Creates a new FrameTimer instance. The timer does not start automatically; you must call the start() method to start it.
Parametersdelay:Number (default = 0) — The delay between timer events, in milliseconds.
| |
repeatCount:int (default = 0) — Specifies the number of repetitions. If zero, the timer repeats infinitely. If nonzero, the timer runs the specified number of times and then stops.
|
| __enterFrame__ | () | method |
override protected function __enterFrame__(e:Event = null):voidInvoked when the frame engine is in progress.
Parameters
e:Event (default = null) |
| clone | () | method |
override public function clone():*Returns a shallow copy of this object.
Returns* — a shallow copy of this object.
|
| 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.