| Package | ardisia.components.clocks |
| Class | public class ClockDigital |
| Inheritance | ClockDigital ClockBase spark.components.Group |
Style the label in css. For example: clocks|ClockDigital s|Label { color: blue;}
View the technical documentation on the Ardisia Labs website for more information.
Default MXML PropertymxmlContent
| Property | Defined By | ||
|---|---|---|---|
| displayMeridian : Boolean
True to display the am/pm meridian. | ClockDigital | ||
| displaySeconds : Boolean
True to display seconds in the clock. | ClockDigital | ||
![]() | 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 | ||
|---|---|---|---|
![]() | 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 [override]
Call to update the clocks time. | ClockDigital | ||
| displayMeridian | property |
displayMeridian:BooleanTrue to display the am/pm meridian.
The default value is true.
public function get displayMeridian():Boolean public function set displayMeridian(value:Boolean):void| displaySeconds | property |
displaySeconds:BooleanTrue to display seconds in the clock.
The default value is false.
public function get displaySeconds():Boolean public function set displaySeconds(value:Boolean):void| update | () | method |
override public function update():voidCall to update the clocks time.