Skip to main content
eugener2418576
Inspiring
November 22, 2018
Answered

What's going on with my timeline?

  • November 22, 2018
  • 1 reply
  • 494 views

Hi guys,

Simple question, wondering about 'actions'.

I have 3 buttons. When user clicks one of them, this.play();

Btn3 gets clicked on the first question and Btn1 gets clicked on the second question.

However, button 1 and 3 are both visible on both questions. So when we click Btn3 on the second question, it still does play().

I'm wondering about actions and the timeline because I have specified above each section what I want - but it's still reading it from previous actions.

Please let me know if you have any insights!

This topic has been closed for replies.
Correct answer kglad

yes, among the ways you can do that is to use removeEventListener() to deactivate a button when you no longer want it to respond.  but it would be better to remove it or fade it so it doesn't mislead users into thinking it should still be active.

1 reply

kglad
Community Expert
Community Expert
November 22, 2018

eugener2418576  wrote

Hi guys,

Simple question, wondering about 'actions'.

I have 3 buttons. When user clicks one of them, this.play();

Btn3 gets clicked on the first question and Btn1 gets clicked on the second question.

However, button 1 and 3 are both visible on both questions. So when we click Btn3 on the second question, it still does play().

that is exactly what should happen.  what do you want to happen?

eugener2418576
Inspiring
November 22, 2018

I'm wondering why the actions is carrying over to the other actions - or does it not matter where I add the actions to the timeline? Is there a way I can have the actions only run once?

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
November 22, 2018

yes, among the ways you can do that is to use removeEventListener() to deactivate a button when you no longer want it to respond.  but it would be better to remove it or fade it so it doesn't mislead users into thinking it should still be active.