how to clear the last frame of animation?

[problem] when a animation completed ,the last frame of animation will stay on screen ,and someone have a idea to preven this ?

[coding]
animation->addSpriteFrameWithTexture(…)
runAction( CCSequence::create( animate->reverse(), animate, NULL) )

I use sprite frame animation in a sequence with FadeOut with duration 0.f . When all frames are gone, it sets opacity to 0. Of course, you need to set it back to 255 by yourself before repeat animation.

Artur Bulakaev wrote:

I use sprite frame animation in a sequence with FadeOut with duration 0.f . When all frames are gone, it sets opacity to 0. Of course, you need to set it back to 255 by yourself before repeat animation.

thanks u very much , and i got it by ur idea