Kitten Cannon Code

I was wondering if someone had any idea on how to make the code for the popular KittenCannon Game (http://www.flashplayer.com/games/kittencannon.html)
I know it has something to do with gravity, forward speed, and upwards speed variables, but i don’t know how to put them to work. Any help would be great!

-Jay