Complicated maze actionscript question

Hi all.
I’m trying to make a maze that’s not made of square blocks, as you can see in the picture.

The little guy in the left-hand side moves when the user presses an arrow button, but when he can’t walk through the lines (walls)
I’m guessing that I can’t use the usual “hitTest” command, so is there any way i can achieve this without finding every point where the lines cross and do a specific hitTest (hitTest (x,y,true) )?
I’d be really really grateful if you could help me with this.
Thanks very much.