Disable a button

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;}