LFC-$12.lzx

<canvas height="30">
  <class name="clickClock" extends="text">
    <attribute name="dayTable" value="["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]"/>
    <handler name="onclick">
      var now = new Date;
      this.format("You clicked me at %02d:%02d:%02d on %s",
                  now.getHours(),
                  now.getMinutes(),
                  now.getSeconds(),
                  dayTable[now.getDay()]);
    </handler>
  </class>
  <clickClock>
    Click Me!
  </clickClock>
</canvas>

Cross References

Classes