Hi, I need some help with one of my flash projects.

I'm trying to write some actoionscript that will make a ball movieclip fall (and accelerate until a certain speed, like real gravity), and when it hits a ground movieclip it will bounce at the right angle if the ground is a slope and will roll down. I don't want the ball to bounce that much, so it doesn't really matter, but I've got gravity and collision detect code but how can I put it together and make it almost look real?

Please help me, I'm kinda new to this stuff (physics in actionscript) and could really do with the help.

Thanks