Skip to main content
marker1k
Participant
October 11, 2018
Answered

[Animate CC 2017] Movie clip and its nested button click problem

  • October 11, 2018
  • 2 replies
  • 257 views

Hello.

I'm trying to make expandable banner in Animate CC 2017.

It consists of collapsed and expanded movie clip symbols and nested close button in expanded symbol.

When it is expanded there are two actions user can do: collapse banner by clicking close button or open URL by clicking on the expanded symbol area.

The problem is that when the close button is clicked there are two actions: banner is collapsed and URL is opened.

How to separate this clicks? Is there any analog of z-index?

This topic has been closed for replies.
Correct answer kglad

use your event.stopImmediatePropagation() in your close button listener.

2 replies

marker1k
marker1kAuthor
Participant
October 12, 2018

Thank you, it works.

kglad
Community Expert
Community Expert
October 12, 2018

you're welcome.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
October 11, 2018

use your event.stopImmediatePropagation() in your close button listener.