Switch animations cocos2d-x

I have 2 animation and 2 button .i want if touch button animation change an another run.

Are you using .plist file for playing the animation or doing some else.Post some code here what are you exactly doing?