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.
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
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)
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();