What type of animation is this for? A game or an app. There are several methods you can use to do an animation but you need be clear what you want to use this animation for.
a game ,I want to make a cat run on the screen from one point to another,and I only use three or four frames.could you please give me some source code?
Take a look at the LunarLander game from the API demos provided in the SDK, it source code is commented pretty well too. This is a great place to start if you would like to build a game.