Skip to main content
Known Participant
June 11, 2007
Question

Disable Button

  • June 11, 2007
  • 4 replies
  • 614 views
When a button is clicked and load a new layer using moviecliploader to appear at the front of the content. Is there any easy way that I can disable all the buttons at the bottom layer?
This topic has been closed for replies.

4 replies

Inspiring
June 11, 2007
I agree with dz. The best method is to have your core buttons in an array and use a loop to disable them whenever content is going to cover them or hide them from the user. The really isn't a universal kill all buttons command in flash.
Damon Edwards
Inspiring
June 11, 2007
create an array of your buttons and enable/disable the array
Yue_HongAuthor
Known Participant
June 11, 2007
Yeah, I know that. But it will be a lot more hardwork if doing in this way (coding buttons to disable line by line) because I am using this "method" on lots of places such as loading (when user click on a button, a paper appear at the front with the text loading on it and I don't want user to be able to click on any other button during loading).

Or, is there anyway that I can write a function to disable all the button?
Known Participant
June 11, 2007
I would do it this way, probably the hard way but how many buttons can there be?
I think the other guys here would be better in advising you in writing a function that would ease your worries.

Cheers
Yue_HongAuthor
Known Participant
June 11, 2007
Is it possible to put a "special" layer in between to make the bottom layer unclickable?
Known Participant
June 11, 2007
Hi there,
Why don't u use the .enabled function in flash to disable the button?