Traverse between frames in sprite sheet


Hi, I am trying to get traverse between the different frames in the sprite sheet. I.e. say when clicked on some button I need to change frame in the sprite sheet. Like for example we have gotoAndPlay(“FrameLabel”)/gotoAndStop(“FrameLabel”) in Flash AS 3.0. Is there any way to do it in cocos js?