title: Restarting an action in cocos2D for the iPhone
body: <p>If I am using an action that does not repeat in cocos2D how do I restart that action?</p>
  
  <p>I am using the code:</p>
  
  <pre><code> CCAnimate* action = [CCAnimate actionWithAnimation:myAnimation];
  
   [mySprite runAction: action];
  </code></pre>
  
  <p>The action runs fine once, but when an event is triggered I want to be able to run the action again as long as it is finished, so I tried using this when the even is triggered.</p>
  
  <pre><code> if( [action isDone] ){
  
       [mySprite runAction: action];
  
   }
  </code></pre>
  
  <p>But this results in a crash. Anyone any idea what the correct way to do this is?</p>