Actionscript Walls

if(_root.You.hitTest(_root.Background.Wall1 or _root.Background.Wall2)) 
    {_root.Speed = 0;} else {_root.Speed = 7;}

This is the code I am using for making walls but sadly … Neither walls work :-S … Any help plz?

Btw is there anyway I can do like …

{_root.Speed = 0;} else {_root.Speed = 7;}

And both walls be named Wall[1] and Wall[2], and in the code I can just name both walls as “Wall” Instead of “Wall1” and “Wall2” …

but when I try to name it Wall[1] it says “Wall[1]” :Reserved By the System.

Any help?