Skip to main content
Participant
May 24, 2021
Answered

Button hover state stops working after running this.stop();

  • May 24, 2021
  • 2 replies
  • 735 views

I am new to Animate and I have tried looking to see anyone else has had this issue but couldn't find anything...

 

I have a button that works as expected throughout my animation and the hover state works until a frame that I've added this:

this.stop();

I need to use this.stop(); to stop the animation until/unless a user clicks on a second button, at which point it runs a brief animation that slides an info panel in. I noticed that the button hover state stops working after this.stop(); runs...

 

Would this.stop(); prevent button hover states from working? Is there any way to keep the button hover state from breaking/stopping? Thanks!

This topic has been closed for replies.
Correct answer kglad

Would this.stop(); prevent button hover states from working?

no.  there some else causing the problem.  open your control panel when testing and look for an error message.

2 replies

hdc50060Author
Participant
May 24, 2021

There was a camera layer in my animation which I don't recall adding, but maybe that happened at some point by accident? I tried deleting the camera layer and tested the animation. Everything is working fine now including the hover state.

kglad
Community Expert
Community Expert
May 24, 2021

yes, i'm sorry.  i meant console.

 

and glad you found the problem

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
May 24, 2021

Would this.stop(); prevent button hover states from working?

no.  there some else causing the problem.  open your control panel when testing and look for an error message.

hdc50060Author
Participant
May 24, 2021

Hi @kglad, thank you for your reply. Do you mean the console or something else? There are no error messages in the console so I'm not sure what else could be causing the button hover state to stop working.