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.
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…
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;
}