timer

Purpose

Used to time events.

Attributes

Attribute Description Type Default Options Use
class Assigns a class name to an element. xs:NMTOKEN none    optional 
duration The duration in milliseconds xs:string none    required 
expr An MCS expression xs:string none    optional 
id Assigns an identifier to an element. xs:ID none    optional 

Example

The welcome.mlyt layout can be found in the MCS/repository/xml-repository directory.

<?xml version="1.0" encoding="UTF-8"?>
<canvas layoutName="/welcome.mlyt" pageTitle="timer"
  ontimer="{/HelloWorld.mscr}">
  <timer duration="4000"/>
  <pane name="background">
    <h3>Welcome</h3>
  </pane>
</canvas>

Related topics