ActionScript 2 TopDown shooter block collisions

So, I decided to program a top down shooter in as2, I wrote everything, such as weapons and player movement, but then I came to one necessary thing. Collisions. See, at the moment, I am trying to do this for a wall collision:


onClipEvent (enterFrame) {
    if (_root.player.hitTest(this))
    {
        _root.player.speed = 0;
        _root.player._y += .6;
    }
    else
    {
        _root.player.speed = 5;
    }
}

Now, I realize I am coming at a awkward approach, see- When player touches this specific this, I want it to stop, but be able to move in other directions, such as a real wall. But all that my approach is doing only works on a single side of the block itself. I want all sides of the block to stop player from going through. But I don’t know how. Any Help?