Collision Question

I have a small question. The following script is something I have in a MC. It a little guy. I also have another MC call Wall. The following script moves the guy around untill you hit the wall. Then the guy will no longer move (towards the wall of course). So I gut this and all, but I’m not sure about editing it so it works with multiple walls. MC names (Wall and Wall2). If you put this script in wall two it allows the user to walk through walls instead of acting like a barrier. All it does is slow them down. Any ideas???
onClipEvent(load){
moveSpeed=10;
}
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
if(_root.Walls.hitTest(getBounds(_root).xMax,_y,true)){
}else{
this._x += moveSpeed;
}
}else if(Key.isDown(Key.UP)){
if(_root.Walls.hitTest(_x,getBounds(_root).yMin,_y,true)){
}else{
this._y -= moveSpeed;
}
}else if(Key.isDown(Key.DOWN)){
if(_root.Walls.hitTest(_x,getBounds(_root).yMax,true)){
}else{
this._y += moveSpeed;
}
}else if(Key.isDown(Key.LEFT)){
if(_root.Walls.hitTest(getBounds(_root).xMin,_y,true)){
}else{
this._x -= moveSpeed;
}
}
}