3 Replies Latest reply on Oct 2, 2012 8:18 AM by joel_pau

    How can i control when my animation starts/stops with external JS

    nmyzter

      I am making a web app that will allow you to go through "pages" by clicking and dragging or sliding your finger (touch devices).

       

      I am wanting to make a seperate animation on Edge for each page and play it when the current page is on witht the relevant edge comp.

       

      So far my code allows me to know what page is being viewed and that the animation should be played, however I can not figure out how to play the comp.

       

      ie.

       

      WHEN page = 1, play composition "page1".

           If currentPage is not currentPage, stop composition "page 1".

       

      Please could you help me as I've been racking my brain all day to figure this out.