Skip to main content
Inspiring
March 15, 2007
Question

Avoiding onRelease event in parts of movieclip that are not visible

  • March 15, 2007
  • 3 replies
  • 215 views
Hi,

I have a background movieclip that has an onRelease event to go to the next page.

When i show i popup on top of this background movieclip, all the popup appears with the hand cursor and if i click it the background gets clicked, though it is not visible.

How can i disable this behavior? In the popup i have buttons, so setting an empty onRelease event to the popup would disable this buttons.
This topic has been closed for replies.

3 replies

Inspiring
March 15, 2007
this is exactly what i posted but using a dummy button instead of a movieclip.
March 15, 2007
When you show the pop up, Use a dummy button with zero alpha behind the pop up graphic , Make the button hand cursor is false.

<button>.useHandCursor = false;

This dummy button will protect you form clicking on the background movieclip.
Inspiring
March 15, 2007
I found a way to get this.

I set the background of the popup to be a movieclip with and empty onrelease event and with useHandCursor set to false.

If nobody says anything else i will set this as the answer.