Yet another button problem

i have a button that when pressed, will disable itself so it is no longer clickable. But how do i code it in such a way that it will become disable in it’s ‘down’ state instead of it’s ‘up’ state?

here is the code:

on (release) {
_root.aboutme_btn.enabled= false;
}

thanks!

I’m pretty sure there is no disable feature, I don’t use “buttons” I use movie clips for everything. But you could try something like this


onClipEvent(load) {
this.clickable=1;
}

on(release) {
  if(this.clickable==1) {
    this.clickable=0;
    // now it's disabled
  } else {
    this.clickable=1;
    // now it's enabled
  }
}