I usually use something like this:
on (release) {
// turns buttons off
for (i=0; i<=36; i++) {
_root["gal_but_"+i]._visible = false;
}
}
Use the same instance name for all of your buttons. In this case 'gal_but_'
and add a numeric, incrementing, value to the end of each ie 'gal_but_1',
'gal_but_2', etc.
Then use the same exact script to your close button except change visible to
true.
Good luck
[quoted text, click to view] "Kevin" <k_freem@hotmail.com> wrote in message
news:S9fOc.1357$tW2.482@newsfe1-gui.ntli.net...
> Hi,
>
> I have buttons on a map that launch a movie clip, like an animated
> pop-up (which has a button inside to close the pop-up) I am able to
> disable the original button on the map by using the following:
>
> Map_button.enabled = false;
>
> However, I want to disable all the other buttons on the map so the
> other pop-ups can't be launched without closing the currently opened
> pop-up. I have tried the following but still only the first button is
> disabled:
>
> Map_button.enabled = false;
> Next_map_button.enabled = false;
>
> How can I do this? Is there a way to disable all other buttons on the
> map (but still leave the pop-up window close button active)?
>
> Thanks,
>
> Kevin