They are only open one way, and they open and close depending on the relative pressure of the heart chambers. If the pressure is higher behind the valve, it's forced open, but if the pressure is higher infront of the valve, it's forced shut. The flow of blood is unidirectional