2 Replies Latest reply on Jun 24, 2016 3:26 AM by Ekks-O

    Pause function in adobe animate CC

    Ekks-O Level 1

      Hello, I'm trying to make a pause function in Animate CC (for HTML5 ads purposes)

       

      The principle is simple, like stop anim, wait for 3 seconds, hit play again.

       

      This code doesn't seem to work.

       

      function fonctionPause(tps){
      
        this.stop();
        function lecture(){
        this.play();
        }
        setTimeout(lecture, tps);
      
      
      }
      
      
      fonctionPause(3000);
      

       

      Can somebody give me an hand ?

       

      Thanks.