1 Reply Latest reply on Jun 26, 2013 5:00 PM by elainecc

    How to reset a composition from external script?

    rizkysyazuli Level 1

      Hi,

       

      I'm making an HTML presentation slide and each slide contains an Edge Animate comps.

      The problem is when I switch back and forth into an already opened slide, it shows a quick flash of the comps complete state.

       

      Here's the working example (see the last three slides):

      http://jakartamonorail.com/infographic/comparison.php

       

      Here's my code:

       

      theSlideCompleteCallbackFunction(slideID) {

       

          AdobeEdge.bootstrapCallback(function(slideID) {

              AdobeEdge.getComposition(slideID).getStage().play(0);

          });

       

      }

       

      Pls advise on how to fully reset the previous/next comps animation when switching slides.

       

      Thx.

        • 1. Re: How to reset a composition from external script?
          elainecc Adobe Employee

          Hi, rizkysyazuli-

           

          You're going to want to reset the current slide when you're on your way out in order to prep it for playing on the way back in.  So, on your way out:

           

          AdobeEdge.getComposition(currentSlideID).getStage().stop(0);

          AdobeEdge.getComposition(newSlideID).getStage().play(0);

           

          Something to that effect.  Hopefully that gets you pointed in the right direction.

           

          Thanks,

           

          -Elaine

          1 person found this helpful