title: Starling Juggler Loop
body: <p>I am building a simple game with a few animations and I am having a problem with a loop extended from starling.</p>
  
  <p>My code uses sprite sheets and texture atlas to fetch the animation sprites but when I add </p>
  
  <pre><code>anim.loop = false 
  </code></pre>
  
  <p>the animation doesn't play at all. My code looks like:</p>
  
  <pre><code>anim = new MovieClip(Assets.getAtlasDuck().getTextures("duck_"), 20);
  anim.loop = false;
  starling.core.Starling.juggler.add(anim);
  this.addChild(anim);
  </code></pre>
  
  <p>if I remove the loop the animation plays but loops. If I add:</p>
  
  <pre><code>anim.addEventListener(starling.events.Event.COMPLETE, duckComplete);
  </code></pre>
  
  <p>the animation doesn't play. the duckComplete function just removes the animation from the juggler.</p>
  
  <p>I want the animation to play once and then stop. Even adding:</p>
  
  <pre><code>anim.play();
  </code></pre>
  
  <p>doesn't play the animation with the event listener or the loop = false.</p>
  
  <p>Thanks</p>