Deaktivate and hide buttons

ok… my question is: how to deaktivate a button so it cant be clicked anymore… and lateron aktivate it again…

i could simply fade the button… but when the user moves the mouse over the faded button it still could be clicked… and i want to avoid this…

thx in advance for any help

yours sincerly

buttonname.enabled = false;

Well… you used the code above posted by amanuo… But to reactivate it you need to set buttonname.enabled = true; on another button… so let’s just say for example you have 4 buttons… it would look something like this…

 
[color=red]on (release) {
button1.enabled = false; [/color]
[color=red]button2.enabled = true;[/color]
[color=red]button3.enabled = true;[/color]
[color=red]button4.enabled = true;[/color]
[color=red]}[/color]

That code would be on the first button… The for the second button it would be…

 
[color=red]on (release) {
button1.enabled = true; [/color]
[color=red]button2.enabled = false;[/color]
[color=red]button3.enabled = true;[/color]
[color=red]button4.enabled = true;[/color]
[color=red]}[/color]

and so on…

thx guys… thats all i need to know…