Flash


Hide “hand” cursor from button

Let’s say you have few buttons and you want to disable their actions if a popup window comes up. In this case, you can cover the whole thing with an invisible button and keep its on release action empty and hide the hand cursor. In this way, even if you try to click/mouse over the other buttons, it won't work.

To make a button invisible do the following:

  1. make the graphic and covert it into button symbol
  2. give it an instance name
  3. Inside the button timeline, only keep the keyframe under “hit” state.
  4. put this code on the button itself.
           
              on(release)
             {

              }

To hide the “hand” cursor from button:

1. Set the useHandCursor property of the button instance to false

       Button.useHandCursor = false;