Disabled button

I have these buttons in my movieclip.

After I release a button and do an action, I want to make the button disable (keep on over position) and ignore all action.

How can I do that? Cause in Director it seems easy.

this.onPress = function () {
       // do whatever
       this.onPress = null ;
}

I think that if you use clips as buttons, you can use the setEnabled method too. Not sure it works with buttons though.

pom :asian:

I didn’t able to follow your last instruction on the last action…

this.onPress = null ;
}

(in normal mode) forgive me I’m a beginner in flash…

but I did try this :

on (release) {
tellTarget ("_root") {
gotoAndStop(“portfolio”, “tes”);
}
}
on (release) {
gd1.enabled=false;
}

I make it!!! but the button don’t stay at over position…

thank u…

You’d better switch to Expert mode. So much better…
Your way is better, by the way :slight_smile:

pom :asian:

I’ll try that… Thank u very much…