Hittest help

I need help with some actionscript for my game. In it there is some walls and a character. Can anyone tell me a quick code for not allowing the character to pass through the wall?