The best way to learn, in my opinion, is to go here
http://www.flashgametuts.com/Basically he makes a bunch of simple games and gives you the step by step actionscript used in each so that you can get the basic concepts for various types of game functions down.