# Actionscript Walls

**URL:** https://forum.kirupa.com/t/actionscript-walls/248318
**Category:** flash
**Created:** [January 7, 2008, 2:49am UTC](https://forum.kirupa.com/t/actionscript-walls/248318 "2008-01-07T02:49:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Robin105](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Robin105](https://forum.kirupa.com/u/Robin105)
#### Post date: [January 7, 2008, 2:49am UTC](https://forum.kirupa.com/t/actionscript-walls/248318/1 "2008-01-07T02:49:47Z")

</div>

```auto
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 …

```auto
if(_root.You.hitTest(_root.Background.Wall)) 
{_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?
