if all you are doing is toggling the visibility then there is no need for an if statement anyway...
code:

on(release){
h1._visible = h2._visible = !h1._visible;
}