Collision detection

Hey all, Basically what I want is for someone to show me basically the coding for a collision detection. Here;s my character. What I need is that when he walks say into a wall he stops. I was working with the 0,1 method but I found this might be easier. Here’s my fla. If someone could basically draw a wall or something in the fla and beable to make my character stop when he goes near it that would be really good. Thanks