How do i make a mze type game using crash detection?

I want to make a screensaver that has a maze game on it,It will be controlled by using the arrow keys on the keyboard.The only problem i have is working out how to make the movie detect the walls and stop the square(what the player controls) going through them.\r\rDoes anyone know how to do this? does anyone understand my request? does anyone understand me? Am I going mad?

I would use hittest, if you don’t know how to do it, read the help you’ve get with flash or a tutorial\r\rSeticus :x

There’s a tute on this site.\r\rpom 0]