Guys, you can't just jump into making a game without knowing a thing about programing. You need to start off with simple exercises to learn the basics of programing. Seriously, you're making the learning curve much harder than it should be. Copying code for character movement from here won't teach you a thing. The
ONLY way to learn is by fixing errors you've made in your code.
If you'd like to actually learn some basic programing, I recommend you do some simple exercises and post your code here for review.
I'm sorry, but that's the only way to actually learn something. Here are a few exercises for you to do, if you're up for it. This should cover the basics of Loops, Conditions and Variables. The last one involves a little work with angles. And do not copy code from google, Flash documentation has more than enough information. Trial and error all the way, boys and girls. (You can always ask specific questions if you get stuck, obviously)
1. Reverse a string manually (without using the built in functions for it)
2. Remove all occurrences of the letter 'a' from a given string.
3. Make a pyramid such as this one (with code)
*
***
*****
*******
4. Make a simple calculator.
5. Make an arrow that will always point at the mouse.