5 Replies Latest reply on Dec 31, 2014 8:58 AM by joel_pau

    sym.stop(); on timeline doesn't stop it when after adding click-triggered script further on the timeline

    stijn_fi

      I got autoplay checked. At 4000ms there's a sym.stop(); on the timeline. When I add a click-triggered script that plays an animation starting at 4000ms, the sym.stop(); at 4000ms doesn't seem to work anymore (it just continues the timeline -> plays the animation that should only start after it is triggered by click). I don't get it, so it would be great if someone could take a look at it. It probably is something I overlooked:I just started using Adobe Edge.

       

      Timeline-trigger at 0ms:

      var pageAnimating = 1;

       

      Timeline-trigger at 4000ms:

      sym.stop();

      var pageAnimating = 0;

      var page = "start";

       

      That works fine:

      http://stijnlinderman.nl/stuff/stops/stops.html

       

      But when I add this click-triggered scripts to one of the text-elements:

      if (pageAnimating = 0) {

        if (page = "start") {

        sym.play(4000);

        var pageAnimating = 1;

        } else (page = "faculty") {

        sym.play(7000);

        var pageAnimating = 1;

        } else (page = "muziek") {

        sym.play(9000);

        var pageAnimating = 1;

        }

      }

       

      It doesn't stop anymore at 4000ms:

      http://stijnlinderman.nl/stuff/doesntstop/doesntstop.html

      http://stijnlinderman.nl/stuff/doesntstop/doesntstop.html

       

      Here's the small package:

      http://stijnlinderman.nl/stuff/1.rar

       

      Thanks in advance!