Groups | Blog | Home
all groups > flash (macromedia) > july 2004 >

flash (macromedia) : Flash MX buttons - disable all?



Robert Zwiercan
7/29/2004 8:35:50 PM
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
7/29/2004 10:49:22 PM
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
7/30/2004 11:12:18 PM
Thanks, that did the trick!!!

K

[quoted text, click to view]
AddThis Social Bookmark Button