Collision detection (hitTest)

I have so many walls in my movie and i want to hitTest them with my instance, how can i add them all in the one line for. e.g. if(avatar.hitTest(wall1,wall2,wall3,wall4…
help cos i’m having to write so many lines of script to make it work.

help!

here is my script …

on (press) { // when the button is pressed

myinstance._x +=5; // move the instance “instance” right on the x axis by 5 pixels

if (myinstance.hitTest(wall1)) { // if the instance “myinstancer” hits the instance “wall” then

myinstance._x -=5; // move the instance “avatar” left on the x axis by 5 pixels

Thank you…