Is there an easy way to disable an event listener if a layer's opacity is set to 0?
layer.ignoreEvents = true
I've try that and it doesn't work.
So the record button ignores events when the replay button opacity is 0.
What are you expecting to happen?
When ReplayButton is clicked, I want it's opacity to be 0 while not firing any RecordingButton events(which is placed on top of Replaybutton)
RecordingButton.ignoreEvents = true should work too - if you're still having trouble, please share your project so we can help.
Thanks Andrew Nalband, I figured out the issue. The ReplayButton was never tapped because the RecordingButton was sitting on top of it with 0 opacity.