Limit Area

I’m new at developing flash games. I have a character that walks towards the point you click on.

How can I make it work so the character only walks on the area he’s supposed to, and not on the walls.

I think I’m suppose to trace a shape but I got no idea what to script.

Could someone please help me out?

Thanks