Disable button

I need some help, I have a button that loads a movie, and after it loads that movie I want it to be disabled so I used this scrpit

on (release) {
button.enabled = false;
}

and does work

however after the movie clip is through playing and a button is pressed that unloads it I want the button to be enabled agian.
this is where I get confused.

any help would be great.

just put on your other button

on (release){
	button.enabled = true;
}

I did try that code, it on;y makes sence, but it didn’t work.???
the button that would enable the button is also the button that unloads the movie clip

an idea:

1 add code to the button so that the first thing it does is check whether mc_finished=true (set a variable at the end of your movie); if true, do button stuff, else exit (so no code is executed)

OK this is what I’m trying and its not working, I suck when it comes to actionscript. On the first button I put

on (release) {
if (chirsclip_finished = false) {
chrisbutton.enabled = false;

} else {
chrisbutton.enabled = true
}

so what that should do is check to see if the movie clip chirsclip is finished and if not disable the button, so at the end of the chirsclip I put

chirsclip_finished = “true”;
stop();

now I’m sure I’m doing something wrong with declaring the variable, just because I’m not sure what that is.

thanks for your help:asian:

add an _root. before your variables and enable commands and see if that helps.

wait i see a couple of other things


on (release) {
	if (_root.chirsclip_finished == false) {
		_root.chrisbutton.enabled = false;
	} else {
		_root.chrisbutton.enabled = true;
	}
}



then at on your chirsclip change your code to this:

_root.chirsclip_finished = true;
stop();