<doc>
  <legacy_id>1317</legacy_id>
  <name>callbacks</name>
  <type>property</type>
  <syntax>
    <example>set the callbacks of <i>player</i> to <i>messageList</i></example>
  </syntax>
  <library></library>
  <objects>
    <player/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
  </classification>
  <references>
    <property tag="currentTime">currentTime Property</property>
    <message tag="currentTimeChanged">currentTimeChanged Message</message>
    <property tag="duration">duration Property</property>
    <command tag="play">play Command</command>
    <property tag="playRate">playRate Property</property>
    <command tag="send">send Command</command>
    <property tag="timeScale">timeScale Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Specifies <glossary tag="message">messages</glossary> to be sent during playback of a movie.</summary>
  <examples>
    <example>set the callbacks of player "Mist" to myCallbacks</example>
    <example>set the callbacks of player "Do It!" to "2500,soundNotes"</example>
  </examples>
  <description>
    <p>Use the <b>callbacks</b> <glossary tag="property">property</glossary> to send <glossary tag="callback">callback messages</glossary> to a <keyword tag="player">player</keyword> at certain points in the movie. This <glossary tag="synchronize">synchronizes</glossary> the <glossary tag="message">messages</glossary> with the playback.</p><p/><p><b>Value:</b></p><p>The <b>callbacks</b> of a <keyword tag="player">player</keyword> is a list of callbacks, one per line. Each callback consists of an interval number, a comma, and a <keyword tag="message box">message</keyword> name.</p><p/><p>By default, the <b>callbacks</b> <glossary tag="property">property</glossary> of newly created <glossary tag="player">players</glossary> is set to empty.</p><p/><p><b>Comments:</b></p><p>When an interval number is reached during playback, LiveCode sends the corresponding message to the player.</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>
  </description>
</doc>