Basic Game Building Question

I want to build a basic Flash game where there’s an object (that can be moved by the arrow keys) and when the object makes contact with another object such as a door or hole, it moves to the next level. I would like the game have walls or boundaries. I need to know how to code all of this. A sample file would be great too! Any help would be appreciated greatly! Thanks!:bandit: