<doc>
  <legacy_id>1891</legacy_id>
  <name>currentTimeChanged</name>
  <type>message</type>
  <syntax>
    <example>currentTimeChanged <i>newTime</i></example>
  </syntax>
  <library></library>
  <objects>
    <player/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
  </classification>
  <references>
    <message tag="selectionChanged">selectionChanged Message</message>
    <message tag="playPaused">playPaused Message</message>
    <message tag="playStarted">playStarted Message</message>
    <property tag="callbacks">callbacks Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
    <changed version="2.0"></changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Sent to a <keyword tag="player">player</keyword> when the user switches to another <glossary tag="frame">frame</glossary>.</summary>
  <examples>
    <example>on currentTimeChanged theInterval <code><i>-- display the time in a field</i></code></p><p>  put theInterval into field "Time Code"</p><p>end currentTimeChanged</example>
  </examples>
  <description>
    <p>Handle the <b>currentTimeChanged</b> message if you want to do something when the user changes the current time in a <keyword tag="player">player</keyword>.</p><p/><p><b>Parameters:</b></p><p>The <i>newTime</i> is the number of the interval where the <keyword tag="player">player</keyword> is after the change.</p><p/><p><b>Comments:</b></p><p>The user can change the current time by clicking in the controller bar or by using the arrow keys when the player is the active (focused) control.</p><p/><p>The number of intervals per second is specified by the player's <b>timeScale</b> <glossary tag="property">property</glossary>. The total number of intervals is given in the <glossary tag="player">player's</glossary> <property tag="duration">duration</property> <glossary tag="property">property</glossary>.</p><p/><p>The actual process of changing the player's current time is not triggered by the <b>currentTimeChanged</b> <keyword tag="message box">message</keyword>, so <glossary tag="trap">trapping</glossary> the <keyword tag="message box">message</keyword> and not allowing it to <control_st tag="pass">pass</control_st> does not prevent the user from changing the <glossary tag="player">player's</glossary> current time manually.</p><p/><p><b>Changes:</b></p><p>The <i>newTime</i> <glossary tag="parameter">parameter</glossary> was introduced in version 2.0. In previous versions, the <b>currentTimeChanged</b> <keyword tag="message box">message</keyword> did not have a <glossary tag="parameter">parameter</glossary>.</p>
  </description>
</doc>