Hideing/locking/disable buttons help?

hi, does anyone know if theres actionscript to disable a button so it cant be selected on the screen, (but is still visible) until another button is pressed for example?? thanks