Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : blocking butttons



brian
5/12/2004 9:18:55 PM
I was wondering if it was possible to block buttons, by putting
something in front of them. I know about btn.enable, but would like to
rather just open another MC in front of my buttons and make them not
work that way. I have too many buttons in this area and don't want to
deal with turing them all on and later all off again. Is this posslible?
I have tried this, but so far the buttons always still work, even though
you can't see them.

Thanks for any help!
B
mandingo
5/13/2004 5:38:05 AM
Yes, but you need to block the actions as well.

On the empty movieClip that you are using to block them, in the actions layer
of that clip put this:

this.onRelease = function(){
// don't do anything
}

this will intercept the button click and not do anything

hope that helps
Peo
5/13/2004 9:08:44 AM

[quoted text, click to view]

Or you could place one big button in front of all the smaller ones and
disable this one button.
big_btn.enable = false;

Peo

AddThis Social Bookmark Button