HELP: Disabling Button AS not working

Hello again,

I have 4 buttons on a timeline, and each loads different external SWFs. I want that when I clicked on 1 button, let’s say the “button1”, it will load the MOVIE and the button will be disable until I have clicked on another button. I tried this script below but didn’t get any RESULT.

on (release) {
if (expand == 0) {
gotoAndPlay(“AA”);
_parent.pointerMC.gotoAndPlay(“BB”);
} else {
gotoAndStop(currentFrame);
}
_parent.containerMC.loadMovie(“movieMC.swf”);
expand = 1;
_parent.button1.enabled = false;
_parent.button2.enabled = true;
_parent.button3.enabled = true;
_parent.button4.enabled = true;
}

disabled how? like you can’t roll over it? or when you click it does nothing?

The above script works, but only on the 2nd CLICK of the button. LOL. Anyway, is there anyway of disabling buttons in Flash other than “???.enabled = true;” AS?

enabled = false; totally disabled the button. My script above worked but not on the first click, but on the 3rd click. hehehe!! I’ve been playing around with it. Any help is appreciated.

you can make them invisible or you can add an if statement that judges wether or not to do something. like as in: if the section the button loads, is not loaded, load it, other wise do nothing… this is probably the standard way to do it…

3reye Thanks. I’m looking for some TUTs here about disabling buttons and hope to apply it on my movies.

3reye

Here is the file I have been practicing on. It’s a TUT I got from the site.

I was thinkig of incorporating this PSEUDOCODE to my script above.

if (myClip.swf==Loaded) {
buttonName.enable = false;
} else {
buttonName.enable = true;
}

Need a little help

i hope this works:
give every button a name (ex. b1, b2, …)
and add the code(change b1 and movie1):
on (release) {
_root[_root.currentMovie].enabled = true;
_root.currentMovie = “b1”;
_root.containerMC.loadMovie(“movie1.swf”);
_root.b1.enabled = false;
}