top tile
start

Portfolio

Ads

Translations

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/NorwegianÖversätta till Svensk/Swedishहिन्दी अनुवाद करने के लिए/HindiTradueix al català/CatalanTulkot uz latviešu/LatvianPreložiť do slovenčiny/SlovakVertaal aan het Nederlands/Dutchترجمة الى العربية/ArabicTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/PortugueseПереклад на українську/Ukrainian

 

Block or disable background button with Flash

Send to a Friend:





Send to a friend:

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






Comment Pages

Write a Comment