Playing animation in loop and move the sprite and then got to callback, HOW????

Hi Gurus!

I am developing a game and I just want to give to a sprite 3 diferent actions:

1.- A spawn of MoveTo and play an animation in infinite loop mode.
2.- When this have finished, play another animation in loop mode too.

I am doing it by making a callback for the two first actions and when the callback is called I stop all the actions from the sprite and play another animation. But I think there should be a better way to do this

any help??

I also would like to know how do you play animations in your games. Cocos2d-x animation/animate? or do you use your own animation system?

Thank you and kind regards

Ibai