<doc>
  <legacy_id>2298</legacy_id>
  <name>repeatCount</name>
  <type>property</type>
  <syntax>
    <example>set the repeatCount of <i>image</i> to <i>numberOfCycles</i></example>
  </syntax>
  <library></library>
  <objects>
    <image/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
  </classification>
  <references>
    <property tag="currentFrame">currentFrame Property</property>
    <property tag="looping">looping Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies the number of times an <glossary tag="animated GIF">animated GIF</glossary> <keyword tag="image">image</keyword> repeats.</summary>
  <examples>
    <example>set the repeatCount of image 1 to 0 <code><i>-- stop looping</i></code></example>
  </examples>
  <description>
    <p>Use the <b>repeatCount</b> <glossary tag="property">property</glossary> to specify how many times an <glossary tag="animated GIF">animated GIF</glossary> <keyword tag="image">image</keyword> should repeat when it's displayed, or to stop it from repeating.</p><p/><p><b>Value:</b></p><p>The <b>repeatCount</b> of an <keyword tag="image">image</keyword> is an <keyword tag="integer">integer</keyword>.</p><p/><p><b>Comments:</b></p><p>If the <b>repeatCount</b> is positive, the <keyword tag="image">image</keyword> repeats the specified number of times. If the <b>repeatCount</b> is <glossary tag="negative">negative</glossary>, the <keyword tag="image">image</keyword> continues repeating indefinitely while it is being displayed.</p><p/><p>If the <b>repeatCount</b> is zero, the <keyword tag="image">image</keyword> does not repeat at all. If you set the <b>repeatCount</b> of an <glossary tag="animated GIF">animated GIF</glossary> <keyword tag="image">image</keyword> to zero while it is playing, it stops repeating immediately.</p><p/><p>If the contents of the image is not an animated GIF, the setting of the <b>repeatCount</b> <glossary tag="property">property</glossary> has no effect.</p>
  </description>
</doc>