| Package | util |
| Class | public class WorkTimer |
| Inheritance | WorkTimer flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| dayCount : uint
Number of days for timer work.
| WorkTimer | ||
| endTime : TimeObject
Time of the day for timer to stop.
| WorkTimer | ||
| isWork : Boolean = false
The current state of timer(is it working or not).
| WorkTimer | ||
| startTime : TimeObject
Time of the day for timer to start.
| WorkTimer | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new WorkTimer instance.
| WorkTimer | ||
|
start():void
Starts the work of the timer
| WorkTimer | ||
|
stop():void
Stops the work of the timer
| WorkTimer | ||
| dayCount | property |
public var dayCount:uintNumber of days for timer work.
| endTime | property |
public var endTime:TimeObjectTime of the day for timer to stop.
| isWork | property |
public var isWork:Boolean = falseThe current state of timer(is it working or not).
| startTime | property |
public var startTime:TimeObjectTime of the day for timer to start.
| WorkTimer | () | constructor |
public function WorkTimer(startTime:TimeObject, endTime:TimeObject, days:uint, interval:uint = 1000)Creates a new WorkTimer instance.
ParametersstartTime:TimeObject — time of the day for timer to start
|
|
endTime:TimeObject — time of the day for timer to stop
|
|
days:uint — how many days should timer work
|
|
interval:uint (default = 1000) — timer tick interval, in milliseconds, during its work
|
| start | () | method |
public function start():voidStarts the work of the timer
| stop | () | method |
public function stop():voidStops the work of the timer