Block or disable background button with Flash
This is a little tutorial for Flash button. I found out about this trick on my own by accident when I was building my Flash home page back in 2004.
I needed a way to disable a button when I have another object floating on top of the button. I notice that I can disable the button underneath when there is another button on top.
Anyways, just take a look at the two examples I have below to see what I mean.
Try to drag the grey box under the blue button and place it over the blue button. Notice you can still activate the blue button.
Here is the file: click here
This next one stop the blue button from activating when you drag the grey box over it. Basically you just add this line in the actionscript in the timeline to disable the button on the grey box _root.mainMC.block_btn.useHandCursor = false;
Here is the file: click here























W3C XHTML 1.0,
W3C CSS
