title: animated sprite won't stop animation - cocos2d
body: <p>I have an animated sprite using two pngs. The animation works fine. I have another method that is run when the game is over.</p>
  
  <pre><code> //Grey mouse with Pompom
  greyMousePomPom = [CCSprite spriteWithFile:@"pink_mice_pom_anime_01.png"];
  greyMousePomPom.tag=132;
  [self addChild:greyMousePomPom z:6];
  greyMousePomPom.position = CGPointMake(550, 70); 
  
  //Grey Pom Pom Mouse animation
  CCAnimation *greyMousePomPomAnimate = [CCAnimation animation];
  [greyMousePomPomAnimate addFrameWithFilename:@"gray_mice_pom_anime_01.png"];
  [greyMousePomPomAnimate addFrameWithFilename:@"gray_mice_pom_anime_02.png"];
  id greyMousePopPomAnimationAction = [CCAnimate actionWithDuration:1.3f animation:greyMousePomPomAnimate restoreOriginalFrame:NO];
  
  repeatAnimationPomPom2 = [CCRepeatForever actionWithAction:greyMousePopPomAnimationAction];
  [greyMousePomPom runAction:repeatAnimationPomPom2];
  </code></pre>
  
  <p>When I run my method to change the animated sprites texture and to stop them the animation continues behind the new texture.</p>
  
  <pre><code>-(void) changePomPomMiceToSadFaceForFreeFall
  </code></pre>
  
  <p>{
      NSLog(@"making the mice sad");</p>
  
  <pre><code>[self stopAllActions];
  
  
  [greyMousePomPom setTexture:[[CCTextureCache sharedTextureCache] addImage:@"gray_mice_pom_anime_03.png"]]; 
  </code></pre>
  
  <p>}</p>
  
  <p>I know this method is working because it is NSLogging and the textures are changing. But why aren't the animations stopping? I have tried to remove it by tag and by declaring the action but no success.</p>
  
  <p>I know there are a lot of people out there that are smarter than me.. can you help?</p>