Platform problems

Hi there,
I have been learning to do a platform game looking at Kirupa’s tutorials, I got to do bottom and left and right sides collision detection working almost good, but I have these problems:

  • the bottom collision doesn’t work well, usually when you fall of a platform, the character is used to keep some pixels above the ground;
  • I’m having problems to make a ceiling collision, the player gets stuck bellow the ceiling;
  • I have tried a lot to make a vertical scrolling, but the scroller aways doesn’t stand at the correct Y position;
  • How can I do slopes on this engine?

There are the engines, one(newer) has the try of ceiling collision and the other(older) has the vertical scrolling try:
The newer(in Flash 8):
The older(in Flash MX 2004):