Packageardisia.components.clocks
Classpublic class ClockDigital
InheritanceClockDigital Inheritance ClockBase Inheritance spark.components.Group

A simple digital clock. Label will resize to fit the available space.

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



Public Properties
 PropertyDefined By
  displayMeridian : Boolean
True to display the am/pm meridian.
ClockDigital
  displaySeconds : Boolean
True to display seconds in the clock.
ClockDigital
 InheritedisRunning : Boolean
[read-only] Returns true when the clock is running.
ClockBase
 InheritedupdateInterval : Number
The interval in milliseconds between clock updates.
ClockBase
 Inheriteduse24HourMode : Boolean
Set to true to display a clock using a 24 hour format.
ClockBase
 InheriteduseUTC : Boolean
Set to true to display UTC time, rather than local time.
ClockBase
 InheritedutcOffsetHours : Number
The hours to offset from UTC for display.
ClockBase
 InheritedutcOffsetMinutes : Number
The minutes to offset from UTC for display.
ClockBase
Public Methods
 MethodDefined By
 Inherited
dispose():void
Call to remove the component from the display list and remove any event listeners.
ClockBase
 Inherited
start():void
Start the clock.
ClockBase
 Inherited
stop():void
Stop the clock.
ClockBase
  
update():void
[override] Call to update the clocks time.
ClockDigital
Protected Methods
 MethodDefined By
 Inherited
timerHandler(event:TimerEvent):void
Handles events from the timer.
ClockBase
Events
 Event Summary Defined By
 InheritedDispatched when the clock starts running.ClockBase
 InheritedDispatched when the clock stops running.ClockBase
Styles
 Style Description Defined By
  
backgroundAlpha
Type: Number CSS Inheritance: no
The background alpha. The default value is 1.
ClockDigital
  
backgroundColor
Type: uint Format: Color CSS Inheritance: no
The background color. The default value is #000000.
ClockDigital
  
borderAlpha
Type: Number CSS Inheritance: no
Border alpha. The default value is 1.
ClockDigital
  
borderColor
Type: Number CSS Inheritance: no
Border color. The default value is 0.
ClockDigital
  
borderThickness
Type: Number CSS Inheritance: no
Border weight. The default value is 1.
ClockDigital
  
borderVisible
Type: Boolean CSS Inheritance: no
Whether the border is visible. The default value is true.
ClockDigital
  
paddingBottom
Type: Number CSS Inheritance: no
The top padding. The default value is 5.
ClockDigital
  
paddingLeft
Type: Number CSS Inheritance: no
The top padding. The default value is 5.
ClockDigital
  
paddingRight
Type: Number CSS Inheritance: no
The top padding. The default value is 5.
ClockDigital
  
paddingTop
Type: Number CSS Inheritance: no
The top padding. The default value is 5.
ClockDigital
Property Detail
displayMeridianproperty
displayMeridian:Boolean

True to display the am/pm meridian.

The default value is true.


Implementation
    public function get displayMeridian():Boolean
    public function set displayMeridian(value:Boolean):void
displaySecondsproperty 
displaySeconds:Boolean

True to display seconds in the clock.

The default value is false.


Implementation
    public function get displaySeconds():Boolean
    public function set displaySeconds(value:Boolean):void
Method Detail
update()method
override public function update():void

Call to update the clocks time.