I usually use

if (this.hitTest(_root.wall)){
//do stuff
}

I find it a bit more efficient.