There was a great example of what you need some time ago on the forums, try to search for "physics platformer" or along those lines.
I'll try to find example capx on my harddrive.
edit: nope, couldn't find it, it was long time ago. Please search the forums, there are a multitude of examples. Also, i would recommend looking into Kyatric's great "how do i" list of examples.