Help on creating a platform game

I used the tutorial where it said how to create a flash platform game and it doesnt work for 2 reasons:
1.on what should i add the walls code?
2.the gravity and jumping code doesnt work.