# Disable a button

**URL:** <https://forum.kirupa.com/t/disable-a-button/316742>\
**Category:** flash\
**Created:** [December 1, 2010, 11:12am UTC](https://forum.kirupa.com/t/disable-a-button/316742 "2010-12-01T11:12:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohya](https://avatars.discourse-cdn.com/v4/letter/o/fbc32d/32.png) [@ohya](https://forum.kirupa.com/u/ohya)\
**Post date:** [December 1, 2010, 11:12am UTC](https://forum.kirupa.com/t/disable-a-button/316742/1 "2010-12-01T11:12:19Z")

</div>

I have a button which on press will go to next frame. I want to disable this button by on press another button. Please fill the blank for me.

btn.onPress=function(){disable button A;}
