Skip to main content
max_kelly
Participant
February 6, 2017
Answered

Very Buggy Timeline with Animate CC

  • February 6, 2017
  • 1 reply
  • 624 views

Live URL: IP_concept_model-v9

1. When I try clicking my buttons out of order, for example the Implement button, the close button does not work.

If I click on some of the Mission button first and then go to Implement it does close properly but the closing animation is the wrong one.
This is all laid out in the timeline and I have double check all my frame numbers in the Actions panel as well as the JavaScript code.

2. Upon closing animation, the fade out somehow jumps to show the Mission fading out sequence instead of the one it's currently on.

I have tried augmenting my frame numbers to start at 0 versus 1 but this does not affect my results.

All of my staging goto's look like this Mission one on Actions frame 2:

this.stop();

this.missionBtn.addEventListener("click", goMission.bind(this));

function goMission()

{

  createjs.Sound.stop();

  this.gotoAndPlay(2);

}

    This topic has been closed for replies.
    Correct answer kglad

    you can then expect missionBtn to work in frame 1 and never again.

    one way to resolve, missionBtn should exist in all frames.  it doesn't have to be visible/clickable in all frames, but if it continues to exist, your code will continue to work.

    1 reply

    kglad
    Community Expert
    Community Expert
    February 7, 2017

    you almost certainly have buggy code, not animate has a buggy timeline.

    is there any frame where missionBtn does not exist?

    AMULI
    Inspiring
    February 7, 2017

    Indeed, in frame 2 the Mission layer is empty.

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    February 7, 2017

    you can then expect missionBtn to work in frame 1 and never again.

    one way to resolve, missionBtn should exist in all frames.  it doesn't have to be visible/clickable in all frames, but if it continues to exist, your code will continue to work.