# Button disappear on click

**URL:** <https://forum.kirupa.com/t/button-disappear-on-click/168227>\
**Category:** flash\
**Created:** [November 5, 2005, 4:27am UTC](https://forum.kirupa.com/t/button-disappear-on-click/168227 "2005-11-05T04:27:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superprg](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@superprg](https://forum.kirupa.com/u/superprg)\
**Post date:** [November 5, 2005, 4:27am UTC](https://forum.kirupa.com/t/button-disappear-on-click/168227/1 "2005-11-05T04:27:33Z")

</div>

I have two buttons and wanted to get one disappear when someone clicks on the other  
For btn1:  
on(release){  
this.\_visible=0; //this doesnt works  
btn2.\_visible=true;  
// btn2.\_visible=false;  
// trace(“From first button”);  
// btn1.\_visible=0; //this works  
}

btn2:  
on(release)  
{  
this.\_visible=0; //this doesnt works  
//btn2.\_visible=false; //it works  
btn1.\_visible=true;  
// trace(“From second button”);

}

But it doesnt seems to work although btn.\_visible works  
Any idea why?
