Creating Generic animation clips via code

Is this possible?

Ive been playing around with it for a couple of days, but have had no luck.

Animation making is an art, and skyrocketmedia dubai is the artist of this great art.