| Package | ardisia.components.clocks |
| Class | public class ClockBase |
| Inheritance | ClockBase spark.components.Group |
| Subclasses | ClockAnalog, ClockDigital |
View the technical documentation on the Ardisia Labs website for more information.
Default MXML PropertymxmlContent
| Property | Defined By | ||
|---|---|---|---|
| isRunning : Boolean [read-only]
Returns true when the clock is running. | ClockBase | ||
| updateInterval : Number
The interval in milliseconds between clock updates. | ClockBase | ||
| use24HourMode : Boolean
Set to true to display a clock using a 24 hour format. | ClockBase | ||
| useUTC : Boolean
Set to true to display UTC time, rather than local time. | ClockBase | ||
| utcOffsetHours : Number
The hours to offset from UTC for display. | ClockBase | ||
| utcOffsetMinutes : Number
The minutes to offset from UTC for display. | ClockBase | ||
| Method | Defined By | ||
|---|---|---|---|
| ClockBase | |||
dispose():void
Call to remove the component from the display list and remove any
event listeners. | ClockBase | ||
start():void
Start the clock. | ClockBase | ||
stop():void
Stop the clock. | ClockBase | ||
update():void
Update the clock. | ClockBase | ||
| Method | Defined By | ||
|---|---|---|---|
timerHandler(event:TimerEvent):void
Handles events from the timer. | ClockBase | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the clock starts running. | ClockBase | |||
| Dispatched when the clock stops running. | ClockBase | |||
| isRunning | property |
isRunning:Boolean [read-only] Returns true when the clock is running.
The default value is false.
public function get isRunning():Boolean| updateInterval | property |
updateInterval:NumberThe interval in milliseconds between clock updates.
Minimum of 1000.
The default value is 1000 (1 second).
public function get updateInterval():Number public function set updateInterval(value:Number):void| use24HourMode | property |
use24HourMode:BooleanSet to true to display a clock using a 24 hour format.
The default value is false.
public function get use24HourMode():Boolean public function set use24HourMode(value:Boolean):void| useUTC | property |
useUTC:BooleanSet to true to display UTC time, rather than local time.
The default value is false.
public function get useUTC():Boolean public function set useUTC(value:Boolean):void| utcOffsetHours | property |
utcOffsetHours:NumberThe hours to offset from UTC for display. Only relevant if the "useUTC" property is true.
The default value is 0.
public function get utcOffsetHours():Number public function set utcOffsetHours(value:Number):void| utcOffsetMinutes | property |
utcOffsetMinutes:NumberThe minutes to offset from UTC for display. Only relevant if the "useUTC" property is true.
The default value is 0.
public function get utcOffsetMinutes():Number public function set utcOffsetMinutes(value:Number):void| ClockBase | () | Constructor |
public function ClockBase()| dispose | () | method |
public function dispose():voidCall to remove the component from the display list and remove any event listeners.
| start | () | method |
public function start():voidStart the clock.
| stop | () | method |
public function stop():voidStop the clock.
| timerHandler | () | method |
protected function timerHandler(event:TimerEvent):voidHandles events from the timer.
Parameters
event:TimerEvent — the TimerEvent that triggered the handler
|
| update | () | method |
public function update():voidUpdate the clock.
| clockStart | Event |
ardisia.components.clocks.events.ClockEventardisia.components.clocks.events.ClockEventDispatched when the clock starts running.
| clockStop | Event |
ardisia.components.clocks.events.ClockEventardisia.components.clocks.events.ClockEventDispatched when the clock stops running.