How can I set index to an animation

For exemple, My sprite is runing a sequence of frames, now the current frame is the 4th frame, I want it jump direct to frame 10 and then next frame 11, Any help will be greatly appreciated.

You can write your own animation.