2 Replies Latest reply on Oct 12, 2012 9:17 AM by AmintaAdobe

    How can i reset my Edge animation externaly

    nmyzter Level 1

      I have made an application that allows me to swipe left and right through pages, when I get to say page "2" animation 2 plays... When it ends, it stops.

       

       

      What I am trying to figure out, is how to reset the animation (to the beginning) when I tell it to i.e when the page is changed.

       

      My code for playing is as follows:

       

      var play = "edge_page" + page;

                      console.log(play);   

                var comp = $.Edge.getComposition(play);

       

                var stage = comp.getStage();

       

                stage.play("idle");

       

      Thanks

      Neil Stewart